/* Copyright 2006-2008 Google Inc. All Rights Reserved. */ (function(){
var aa=aa||{},l=this;var ca=function(a,b){var c=a.split("."),d=l,e;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);while(c.length&&(e=c.shift()))if(!c.length&&ba(b))d[e]=b;else d=d[e]?d[e]:(d[e]={})},
da=function(a,b){var c=a.split("."),d=b||l;for(var e;e=c.shift();)if(d[e])d=d[e];else return null;return d},
ea=function(){},
fa=function(){throw Error("unimplemented abstract method");},
ga=function(a){a.getInstance=function(){return a.Q0||(a.Q0=new a)}};
var ia=function(a){var b=typeof a;if(b=="object")if(a){if(typeof a.length=="number"&&typeof a.splice!="undefined"&&!ha(a,"length"))return"array";if(typeof a.call!="undefined")return"function"}else return"null";else if(b=="function"&&typeof a.call=="undefined")return"object";return b};
if(Object.prototype.propertyIsEnumerable)var ha=function(a,b){return Object.prototype.propertyIsEnumerable.call(a,b)};
else ha=function(a,b){if(b in a)for(var c in a)if(c==b&&Object.prototype.hasOwnProperty.call(a,b))return true;return false};
var ba=function(a){return typeof a!="undefined"};
var ja=function(a){return ba(a)&&!(a===null)},
ka=function(a){return ia(a)=="array"},
la=function(a){var b=ia(a);return b=="array"||b=="object"&&typeof a.length=="number"},
ma=function(a){return typeof a=="string"};
var na=function(a){return typeof a=="number"},
oa=function(a){return ia(a)=="function"},
pa=function(a){var b=ia(a);return b=="object"||b=="array"||b=="function"},
sa=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(qa)){var b=a[qa];if(b)return b}a[qa]||(a[qa]=++ra);return a[qa]},
qa="closure_hashCode_",ra=0,ta=function(a){var b=ia(a);if(b=="object"||b=="array"){if(a.qa)return a.qa();var c=b=="array"?[]:{};for(var d in a)c[d]=ta(a[d]);return c}return a},
m=function(a,b){var c=a.O_;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);c&&d.unshift.apply(d,c);c=d}b=a.Q_||b;a=a.P_||a;var e,f=b||l;e=c?function(){var g=Array.prototype.slice.call(arguments);g.unshift.apply(g,c);return a.apply(f,g)}:function(){return a.apply(f,
arguments)};
e.O_=c;e.Q_=b;e.P_=a;return e},
ua=function(a){var b=Array.prototype.slice.call(arguments,1);b.unshift(a,null);return m.apply(null,b)},
va=function(a,b){for(var c in b)a[c]=b[c]},
n=Date.now||function(){return(new Date).getTime()},
wa=function(a,b){ca(a,b)},
xa=function(a,b,c){a[b]=c},
p=function(a,b){function c(){}
c.prototype=b.prototype;a.b=b.prototype;a.prototype=new c;a.prototype.constructor=a};
Function.prototype.bind=function(a){if(arguments.length>1){var b=Array.prototype.slice.call(arguments,1);b.unshift(this,a);return m.apply(null,b)}else return m(this,a)};
Function.prototype.partial=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this,null);return m.apply(null,a)};
Function.prototype.inherits=function(a){p(this,a)};
Function.prototype.mixin=function(a){va(this.prototype,a)};var ya=function(a,b){this.x=ba(a)?a:0;this.y=ba(b)?b:0};
ya.prototype.qa=function(){return new ya(this.x,this.y)};
ya.prototype.toString=function(){return"("+this.x+", "+this.y+")"};
var za=function(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)},
Aa=function(a,b){return new ya(a.x-b.x,a.y-b.y)};var q=function(a,b){this.width=a;this.height=b},
Ba=function(a,b){if(a==b)return true;if(!a||!b)return false;return a.width==b.width&&a.height==b.height};
q.prototype.qa=function(){return new q(this.width,this.height)};
q.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};
q.prototype.tK=function(){return this.width*this.height};
q.prototype.kz=function(){return this.width/this.height};
q.prototype.isEmpty=function(){return!this.tK()};
q.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
q.prototype.jm=function(a){return this.width<=a.width&&this.height<=a.height};
q.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
q.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
q.prototype.scale=function(a){this.width*=a;this.height*=a;return this};
q.prototype.Zw=function(a){var b=this.kz()>a.kz()?a.width/this.width:a.height/this.height;return this.scale(b)};var Ca=function(a,b){return a.indexOf(b)==0},
Da=function(a,b){var c=a.length-b.length;return c>=0&&a.lastIndexOf(b,c)==c},
Ea=function(a){for(var b=1;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a},
Fa=function(a){return/^[\s\xa0]*$/.test(a)},
Ga=function(a){return Fa(a==null?"":String(a))};
var Ha=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")},
Ia=function(a){return a.replace(/\xa0|\s/g," ")},
Ja=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};
var Ka=function(a){return a.replace(/[\s\xa0]+$/,"")},
La=function(a,b){var c=String(a).toLowerCase(),d=String(b).toLowerCase();return c<d?-1:c==d?0:1},
Ma=/(\.\d+)|(\d+)|(\D+)/g,Na=function(a,b){if(a==b)return 0;if(!a)return-1;if(!b)return 1;var c=a.toLowerCase().match(Ma),d=b.toLowerCase().match(Ma),e=Math.min(c.length,d.length);for(var f=0;f<e;f++){var g=c[f],h=d[f];if(g!=h){var i=parseInt(g,10);if(!isNaN(i)){var j=parseInt(h,10);if(!isNaN(j)&&i-j)return i-j}return g<h?-1:1}}if(c.length!=d.length)return c.length-d.length;return a<b?-1:1},
Oa=/^[a-zA-Z0-9\-_.!~*'()]*$/,Pa=function(a){a=String(a);if(!Oa.test(a))return encodeURIComponent(a);return a},
Qa=function(a){return decodeURIComponent(a.replace(/\+/g," "))},
Ra=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")},
s=function(a,b){if(b)return a.replace(Sa,"&amp;").replace(Ta,"&lt;").replace(Va,"&gt;").replace(Wa,"&quot;");else{if(!Xa.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(Sa,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(Ta,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(Va,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(Wa,"&quot;");return a}},
Sa=/&/g,Ta=/</g,Va=/>/g,Wa=/\"/g,Xa=/[&<>\"]/,ab=function(a){if(Ya(a,"&"))return"document"in l&&!Ya(a,"<")?Za(a):$a(a);return a},
Za=function(a){var b=l.document.createElement("a");b.innerHTML=a;b.normalize&&b.normalize();a=b.firstChild.nodeValue;b.innerHTML="";return a},
$a=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(c.charAt(0)=="#"){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return b}})},
bb=function(a,b){return a.replace(/  /g," &#160;").replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")},
cb=function(a,b){var c=b.length;for(var d=0;d<c;d++){var e=c==1?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a},
db=function(a,b,c){if(c)a=ab(a);if(a.length>b)a=a.substring(0,b-3)+"...";if(c)a=s(a);return a},
eb=function(a,b,c){if(c)a=ab(a);if(a.length>b){var d=Math.floor(b/2),e=a.length-d;d+=b%2;a=a.substring(0,d)+"..."+a.substring(e)}if(c)a=s(a);return a},
Ya=function(a,b){return a.indexOf(b)!=-1},
fb=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
var gb=function(a,b,c){var d=ba(c)?a.toFixed(c):String(a),e=d.indexOf(".");if(e==-1)e=d.length;return(new Array(Math.max(0,b-e)+1)).join("0")+d};
var ib=function(a,b){var c=0,d=Ja(String(a)).split("."),e=Ja(String(b)).split("."),f=Math.max(d.length,e.length);for(var g=0;c==0&&g<f;g++){var h=d[g]||"",i=e[g]||"",j=new RegExp("(\\d*)(\\D*)","g"),k=new RegExp("(\\d*)(\\D*)","g");do{var o=j.exec(h)||["","",""],r=k.exec(i)||["","",""];if(o[0].length==0&&r[0].length==0)break;var u=o[1].length==0?0:parseInt(o[1],10),C=r[1].length==0?0:parseInt(r[1],10);c=hb(u,C)||hb(o[2].length==0,r[2].length==0)||hb(o[2],r[2])}while(c==0)}return c},
hb=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};
n();var jb={},kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb=function(){var a=false,b=false,c=false,d=false,e=false,f=false,g=false,h=false,i=false,j="";if(l.navigator){var k=l.navigator,o=k.userAgent;a=o.indexOf("Opera")==0;b=!a&&o.indexOf("MSIE")!=-1;c=!a&&o.indexOf("WebKit")!=-1;i=c&&o.indexOf("Mobile")!=-1;d=!a&&!c&&k.product=="Gecko";e=d&&k.vendor=="Camino";var r,u;if(a)r=l.opera.version();else{if(d)u=/rv\:([^\);]+)(\)|;)/;else if(b)u=/MSIE\s+([^\);]+)(\)|;)/;else if(c)u=/WebKit\/(\S+)/;if(u){u.test(o);r=RegExp.$1}}j=
k.platform||"";f=j.indexOf("Mac")!=-1;g=j.indexOf("Win")!=-1;h=j.indexOf("Linux")!=-1}kb=a;lb=b;mb=d;nb=e;ob=c;pb=i;qb=r;rb=j;sb=f;tb=g;ub=h};
vb();var wb=kb,t=lb,xb=mb,yb=ob,zb=pb;var Ab=function(a){return ib(qb,a)>=0};var Bb=function(a,b,c){if(a.indexOf)return a.indexOf(b,c);if(Array.indexOf)return Array.indexOf(a,b,c);var d=c==null?0:c<0?Math.max(0,a.length+c):c;for(var e=d;e<a.length;e++)if(e in a&&a[e]===b)return e;return-1},
Cb=function(a,b,c){if(a.forEach)a.forEach(b,c);else if(Array.forEach)Array.forEach(a,b,c);else{var d=a.length,e=ma(a)?a.split(""):a;for(var f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)}},
Db=function(a,b,c){var d=a.length,e=ma(a)?a.split(""):a;for(var f=d-1;f>=0;--f)f in e&&b.call(c,e[f],f,a)},
Eb=function(a,b,c){if(a.filter)return a.filter(b,c);if(Array.filter)return Array.filter(a,b,c);var d=a.length,e=[],f=0,g=ma(a)?a.split(""):a;for(var h=0;h<d;h++)if(h in g){var i=g[h];if(b.call(c,i,h,a))e[f++]=i}return e},
Fb=function(a,b,c){if(a.map)return a.map(b,c);if(Array.map)return Array.map(a,b,c);var d=a.length,e=[],f=0,g=ma(a)?a.split(""):a;for(var h=0;h<d;h++)if(h in g)e[f++]=b.call(c,g[h],h,a);return e},
Gb=function(a,b,c,d){if(a.reduce)return d?a.reduce(m(b,d),c):a.reduce(b,c);var e=c;Cb(a,function(f,g){e=b.call(d,e,f,g,a)});
return e},
Hb=function(a,b,c){if(a.some)return a.some(b,c);if(Array.some)return Array.some(a,b,c);var d=a.length,e=ma(a)?a.split(""):a;for(var f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return true;return false},
Ib=function(a,b,c){if(a.every)return a.every(b,c);if(Array.every)return Array.every(a,b,c);var d=a.length,e=ma(a)?a.split(""):a;for(var f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return false;return true},
Kb=function(a,b,c){var d=Jb(a,b,c);return d<0?null:ma(a)?a.charAt(d):a[d]},
Jb=function(a,b,c){var d=a.length,e=ma(a)?a.split(""):a;for(var f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1},
Lb=function(a,b){if(a.contains)return a.contains(b);return Bb(a,b)>-1};
var Mb=function(a){if(!ka(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0},
Nb=function(a,b){Lb(a,b)||a.push(b)},
Pb=function(a,b,c){Ob(a,c,0,b)},
Rb=function(a,b){var c=Bb(a,b),d;if(d=c!=-1)Qb(a,c);return d},
Qb=function(a,b){return Array.prototype.splice.call(a,b,1).length==1},
Sb=function(a){if(ka(a))return a.concat();else{var b=[];for(var c=0,d=a.length;c<d;c++)b[c]=a[c];return b}},
Tb=function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];ka(c)?a.push.apply(a,c):a.push(c)}},
Ob=function(a){return Array.prototype.splice.apply(a,Ub(arguments,1))},
Ub=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},
Wb=function(a,b,c){var d=0,e=a.length-1,f=c||Vb;while(d<=e){var g=d+e>>1,h=f(b,a[g]);if(h>0)d=g+1;else if(h<0)e=g-1;else return g}return-(d+1)},
Vb=function(a,b){return a>b?1:a<b?-1:0},
Xb=function(a,b,c){var d=Wb(a,b,c);if(d<0){Pb(a,b,-(d+1));return true}return false},
Yb=function(a,b,c){var d=Wb(a,b,c);return d>=0?Qb(a,d):false},
Zb=function(){var a=[];for(var b=0;b<arguments.length;b++){var c=arguments[b];ka(c)?a.push.apply(a,Zb.apply(null,c)):a.push(c)}return a};var $b=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},
ac=function(a){var b=0;for(var c in a)b++;return b},
bc=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b},
cc=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b};
var dc=function(a,b){for(var c in a)if(a[c]==b)return true;return false},
ec=function(a){for(var b in a)return false;return true},
gc=function(a){var b=cc(a);for(var c=b.length-1;c>=0;c--)fc(a,b[c])},
fc=function(a,b){var c;if(c=b in a)delete a[b];return c},
ic=function(a,b,c){if(b in a)throw Error('The object already contains the key "'+b+'"');hc(a,b,c)},
jc=function(a,b,c){if(b in a)return a[b];return c},
hc=function(a,b,c){a[b]=c},
kc=function(a){var b={};for(var c in a)b[c]=a[c];return b},
lc=function(a){var b={},c=cc(a);for(var d=0,e=c.length;d<e;d++){var f=c[d];b[a[f]]=f}return b},
mc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nc=function(a){var b,c;for(var d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var e=0;e<mc.length;e++){b=mc[e];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}},
oc=function(){var a=arguments.length;if(a==1&&ka(arguments[0]))return oc.apply(null,arguments[0]);if(a%2)throw Error("Uneven number of arguments");var b={};for(var c=0;c<a;c+=2)b[arguments[c]]=arguments[c+1];return b},
pc=function(){var a=arguments.length;if(a==1&&ka(arguments[0]))return pc.apply(null,arguments[0]);var b={};for(var c=0;c<a;c++)b[arguments[c]]=true;return b};var qc,rc=function(a,b){a.className=b},
tc=function(a){var b=a.className;return b&&typeof b.split=="function"?b.split(" "):[]},
uc=function(a){var b=tc(a),c=1;for(var d=1;d<arguments.length;d++)if(Lb(b,arguments[d]))c&=0;else{b.push(arguments[d]);c&=1}a.className=b.join(" ");return Boolean(c)},
vc=function(a){var b=tc(a),c=Ub(arguments,1),d=0;for(var e=0;e<b.length;e++)if(Lb(c,b[e])){Ob(b,e--,1);d++}a.className=b.join(" ");return d==c.length},
wc=function(a,b,c){var d=tc(a),e=false;for(var f=0;f<d.length;f++)if(d[f]==b){Ob(d,f--,1);e=true}if(e){d.push(c);a.className=d.join(" ")}return e};
var xc=function(a,b,c){c?uc(a,b):vc(a,b)};var zc=function(){qc||(qc=new yc);return qc},
Bc=function(a){return a?new yc(Ac(a)):zc()},
Cc=function(){return zc().Mb()},
v=function(a){return ma(a)?document.getElementById(a):a},
Dc=function(a,b,c){return zc().xO(a,b,c)},
Ec=Dc,Gc=function(a,b){$b(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in Fc)a.setAttribute(Fc[d],c);else a[d]=c})},
Fc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder"},Hc=function(a){var b=a||l||window,c=b.document;if(yb&&!Ab("500")&&!zb){if(typeof b.innerHeight=="undefined")b=window;var d=b.innerHeight,e=b.document.documentElement.scrollHeight;if(b==b.top)if(e<d)d-=15;return new q(b.innerWidth,d)}var f=Bc(c),g=f.jO()=="CSS1Compat"&&(!wb||wb&&Ab("9.50"))?c.documentElement:c.body;return new q(g.clientWidth,
g.clientHeight)},
Ic=function(a){var b=a||l||window;return Bc(b.document).zf()},
Jc=function(a){return Bc(a).WC()},
w=function(){var a=zc();return a.o.apply(a,arguments)},
x=function(a){return zc().createElement(a)},
Kc=function(a){return zc().createTextNode(a)},
Lc=function(a){return zc().lS(a)},
y=function(a,b){a.appendChild(b)},
Mc=function(a){var b;while(b=a.firstChild)a.removeChild(b)},
Nc=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)},
Oc=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},
Pc=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},
Rc=function(a){return Qc(a.firstChild,true)},
Sc=function(a){return Qc(a.nextSibling,true)};
var Qc=function(a,b){while(a&&a.nodeType!=1)a=b?a.nextSibling:a.previousSibling;return a};
var Tc=yb&&ib(qb,"521")<=0,Uc=function(a,b){if(typeof a.contains!="undefined"&&!Tc&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);while(b&&a!=b)b=b.parentNode;return b==a},
Ac=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},
Vc=function(a){var b;b=yb?a.document||a.contentWindow.document:a.contentDocument||a.contentWindow.document;return b},
z=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&a.firstChild.nodeType==3){while(a.lastChild!=a.firstChild)a.removeChild(a.lastChild);a.firstChild.data=b}else{while(a.hasChildNodes())a.removeChild(a.lastChild);var c=Ac(a);a.appendChild(c.createTextNode(b))}},
Xc=function(a,b){var c=[];Wc(a,b,c,true);return c.length?c[0]:undefined},
Wc=function(a,b,c,d){if(a!=null)for(var e=0,f;f=a.childNodes[e];e++){if(b(f)){c.push(f);if(d)return}Wc(f,b,c,d)}},
Yc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Zc={IMG:" ",BR:"\n"},$c=function(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){var c=a.tabIndex;return na(c)&&c>=0}return false},
ad=function(a,b){if(b)a.tabIndex=0;else a.removeAttribute("tabIndex")},
cd=function(a){var b;if(t&&"innerText"in a)b=Ha(a.innerText);else{var c=[];bd(a,c,true);b=c.join("")}b=b.replace(/\xAD/g,"");b=b.replace(/ +/g," ");if(b!=" ")b=b.replace(/^\s*/,"");return b},
dd=function(a){var b=[];bd(a,b,false);return b.join("")},
bd=function(a,b,c){if(!(a.nodeName in Yc))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Zc)b.push(Zc[a.nodeName]);else{var d=a.firstChild;while(d){bd(d,b,c);d=d.nextSibling}}},
ed=function(a){if(a&&typeof a.length=="number")if(pa(a))return typeof a.item=="function"||typeof a.item=="string";else if(oa(a))return typeof a.item=="function";return false},
yc=function(a){this.Kb=a||l.document||document};
yc.prototype.Mb=function(){return this.Kb};
yc.prototype.f=function(a){return ma(a)?this.Kb.getElementById(a):a};
yc.prototype.xO=function(a,b,c){var d=a||"*",e=c||this.Kb,f=e.getElementsByTagName(d);if(b){var g=[];for(var h=0,i;i=f[h];h++){var j=i.className;typeof j.split=="function"&&Lb(j.split(" "),b)&&g.push(i)}return g}else return f};
yc.prototype.o=function(a,b){if(t&&b&&b.name)a="<"+a+' name="'+s(b.name)+'">';var c=this.createElement(a);b&&Gc(c,b);if(arguments.length>2){function d(g){if(g)this.appendChild(c,ma(g)?this.createTextNode(g):g)}
for(var e=2;e<arguments.length;e++){var f=arguments[e];la(f)&&!(pa(f)&&f.nodeType>0)?Cb(ed(f)?Sb(f):f,d,this):d.call(this,f)}}return c};
yc.prototype.createElement=function(a){return this.Kb.createElement(a)};
yc.prototype.createTextNode=function(a){return this.Kb.createTextNode(a)};
yc.prototype.lS=function(a){var b=this.Kb.createElement("div");b.innerHTML=a;if(b.childNodes.length==1)return b.firstChild;else{var c=this.Kb.createDocumentFragment();while(b.firstChild)c.appendChild(b.firstChild);return c}};
yc.prototype.jO=function(){if(this.Kb.compatMode)return this.Kb.compatMode;if(yb){var a=this.o("div",{style:"position:absolute;width:0;height:0;width:1"}),b=a.style.width=="1px"?"BackCompat":"CSS1Compat";return this.Kb.compatMode=b}return"BackCompat"};
yc.prototype.WC=function(){var a=this.Kb;if(a.parentWindow)return a.parentWindow;if(yb&&!Ab("500")&&!zb){var b=a.createElement("script");b.innerHTML="document.parentWindow=window";var c=a.documentElement;c.appendChild(b);c.removeChild(b);return a.parentWindow}return a.defaultView};
yc.prototype.zf=function(){var a=this.Kb,b,c;if(!yb&&a.compatMode=="CSS1Compat"){b=a.documentElement.scrollLeft;c=a.documentElement.scrollTop}else{b=a.body.scrollLeft;c=a.body.scrollTop}return new ya(b,c)};
yc.prototype.appendChild=y;yc.prototype.Qg=Mc;yc.prototype.removeNode=Oc;yc.prototype.yk=Rc;yc.prototype.lP=Sc;yc.prototype.contains=Uc;var fd=function(a){this.TE=a||100;this.Ei=[]};
fd.prototype.Bn=0;fd.prototype.add=function(a){this.Ei[this.Bn]=a;this.Bn=(this.Bn+1)%this.TE};
fd.prototype.get=function(a){a=this.nF(a);return this.Ei[a]};
fd.prototype.X=function(a,b){a=this.nF(a);this.Ei[a]=b};
fd.prototype.S=function(){return this.Ei.length};
fd.prototype.isEmpty=function(){return this.Ei.length==0};
fd.prototype.clear=function(){this.Ei.length=0;this.Bn=0};
fd.prototype.vb=function(){return this.jP(this.S())};
fd.prototype.jP=function(a){var b=this.S(),c=this.S()-a,d=[];for(var e=c;e<b;e++)d[e]=this.get(e);return d};
fd.prototype.fd=function(){var a=[],b=this.S();for(var c=0;c<b;c++)a[c]=c;return a};
fd.prototype.Eb=function(a){return a<this.S()};
fd.prototype.rh=function(a){var b=this.S();for(var c=0;c<b;c++)if(this.get(c)==a)return true;return false};
fd.prototype.nF=function(a){if(a>=this.Ei.length)throw Error("Out of bounds exception");if(this.Ei.length<this.TE)return a;return(this.Bn+Number(a))%this.TE};var gd=function(){this.FV=n()},
hd=new gd;gd.prototype.X=function(a){this.FV=a};
gd.prototype.reset=function(){this.X(n())};
gd.prototype.get=function(){return this.FV};var id=function(a){this.Kw=a||"";this.mZ=hd};
id.prototype.EH=true;id.prototype.JH=true;id.prototype.GH=true;id.prototype.os=false;id.prototype.lm=function(){throw Error("Must override formatRecord");};
var kd=function(a){var b=new Date(a.sC());return jd(b.getFullYear()-2000)+jd(b.getMonth()+1)+jd(b.getDate())+" "+jd(b.getHours())+":"+jd(b.getMinutes())+":"+jd(b.getSeconds())+"."+jd(Math.floor(b.getMilliseconds()/10))},
jd=function(a){if(a<10)return"0"+a;return String(a)},
ld=function(a,b){var c=a.sC()-b,d=c/1000,e=d.toFixed(3),f=0;if(d<1)f=2;else while(d<100){f++;d*=10}while(f-- >0)e=" "+e;return e},
md=function(a){id.call(this,a)};
p(md,id);md.prototype.os=true;md.prototype.lm=function(a){var b;switch(a.Mp().value){case nd.value:b="dbg-sh";break;case od.value:b="dbg-sev";break;case pd.value:b="dbg-w";break;case qd.value:b="dbg-i";break;case rd.value:default:b="dbg-f";break}var c=[];c.push(this.Kw," ");this.EH&&c.push("[",kd(a),"] ");this.JH&&c.push("[",bb(ld(a,this.mZ.get())),"s] ");this.GH&&c.push("[",s(a.Ju()),"] ");c.push('<span class="',b,'">',Ra(bb(s(a.rC()))));this.os&&a.ZB()&&c.push("<br>",Ra(bb(a.$B())));c.push("</span><br>");
return c.join("")};
var sd=function(a){id.call(this,a)};
p(sd,id);sd.prototype.lm=function(a){var b=[];b.push(this.Kw," ");this.EH&&b.push("[",kd(a),"] ");this.JH&&b.push("[",ld(a,this.mZ.get()),"s] ");this.GH&&b.push("[",a.Ju(),"] ");b.push(a.rC(),"\n");this.os&&a.ZB()&&b.push(a.$B(),"\n");return b.join("")};if("StopIteration"in l)var td=l.StopIteration;else td=Error("StopIteration");var ud=function(){};
ud.prototype.Va=function(){throw td;};
ud.prototype.__iterator__=function(){return this};
var vd=function(a){if(a instanceof ud)return a;if(typeof a.__iterator__=="function")return a.__iterator__(false);if(la(a)){var b=0,c=new ud;c.Va=function(){while(true){if(b>=a.length)throw td;if(!(b in a)){b++;continue}return a[b++]}};
return c}throw Error("Not implemented");},
wd=function(a,b,c){if(la(a))try{Cb(a,b,c)}catch(d){if(d!==td)throw d;}else{a=vd(a);try{while(true)b.call(c,a.Va(),undefined,a)}catch(d){if(d!==td)throw d;}}},
xd=function(a,b,c){a=vd(a);try{while(true)if(b.call(c,a.Va(),undefined,a))return true}catch(d){if(d!==td)throw d;}return false};var yd=function(a){if(typeof a.S=="function")return a.S();if(la(a)||ma(a))return a.length;return ac(a)},
zd=function(a){if(typeof a.vb=="function")return a.vb();if(ma(a))return a.split("");if(la(a)){var b=[],c=a.length;for(var d=0;d<c;d++)b.push(a[d]);return b}return bc(a)},
Ad=function(a){if(typeof a.fd=="function")return a.fd();if(typeof a.vb=="function")return undefined;if(la(a)||ma(a)){var b=[],c=a.length;for(var d=0;d<c;d++)b.push(d);return b}return cc(a)},
Bd=function(a,b){if(typeof a.contains=="function")return a.contains(b);if(typeof a.rh=="function")return a.rh(b);if(la(a)||ma(a))return Lb(a,b);return dc(a,b)},
Cd=function(a){if(typeof a.isEmpty=="function")return a.isEmpty();if(la(a)||ma(a))return a.length==0;return ec(a)},
Dd=function(a){if(typeof a.clear=="function")a.clear();else la(a)?Mb(a):gc(a)},
Ed=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(la(a)||ma(a))Cb(a,b,c);else{var d=Ad(a),e=zd(a),f=e.length;for(var g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)}},
Fd=null,Gd=null,Hd=function(a,b,c){if(typeof a.some=="function")return a.some(b,c);if(la(a)||ma(a))return Hb(a,b,c);var d=Ad(a),e=zd(a),f=e.length;for(var g=0;g<f;g++)if(b.call(c,e[g],d&&d[g],a))return true;return false},
Id=function(a,b,c){if(typeof a.every=="function")return a.every(b,c);if(la(a)||ma(a))return Ib(a,b,c);var d=Ad(a),e=zd(a),f=e.length;for(var g=0;g<f;g++)if(!b.call(c,e[g],d&&d[g],a))return false;return true};var Jd=function(a){this.H={};this.Ra=[];var b=arguments.length;if(b>1){if(b%2)throw Error("Uneven number of arguments");for(var c=0;c<b;c+=2)this.X(arguments[c],arguments[c+1])}else a&&this.Nl(a)};
Jd.prototype.Ya=0;Jd.prototype.Bo=0;Jd.prototype.S=function(){return this.Ya};
Jd.prototype.vb=function(){this.ap();var a=[];for(var b=0;b<this.Ra.length;b++){var c=this.Ra[b];a.push(this.H[c])}return a};
Jd.prototype.fd=function(){this.ap();return this.Ra.concat()};
Jd.prototype.Eb=function(a){return Kd(this.H,a)};
Jd.prototype.rh=function(a){for(var b=0;b<this.Ra.length;b++){var c=this.Ra[b];if(Kd(this.H,c)&&this.H[c]==a)return true}return false};
Jd.prototype.isEmpty=function(){return this.Ya==0};
Jd.prototype.clear=function(){this.H={};this.Ra.length=0;this.Ya=0;this.Bo=0};
Jd.prototype.remove=function(a){if(Kd(this.H,a)){delete this.H[a];this.Ya--;this.Bo++;this.Ra.length>2*this.Ya&&this.ap();return true}return false};
Jd.prototype.ap=function(){if(this.Ya!=this.Ra.length){var a=0,b=0;while(a<this.Ra.length){var c=this.Ra[a];if(Kd(this.H,c))this.Ra[b++]=c;a++}this.Ra.length=b}if(this.Ya!=this.Ra.length){var d={},a=0,b=0;while(a<this.Ra.length){var c=this.Ra[a];if(!Kd(d,c)){this.Ra[b++]=c;d[c]=1}a++}this.Ra.length=b}};
Jd.prototype.get=function(a,b){if(Kd(this.H,a))return this.H[a];return b};
Jd.prototype.X=function(a,b){if(!Kd(this.H,a)){this.Ya++;this.Ra.push(a);this.Bo++}this.H[a]=b};
Jd.prototype.Nl=function(a){var b,c;if(a instanceof Jd){b=a.fd();c=a.vb()}else{b=cc(a);c=bc(a)}for(var d=0;d<b.length;d++)this.X(b[d],c[d])};
Jd.prototype.qa=function(){return new Jd(this)};
Jd.prototype.__iterator__=function(a){this.ap();var b=0,c=this.Ra,d=this.H,e=this.Bo,f=this,g=new ud;g.Va=function(){while(true){if(e!=f.Bo)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw td;var h=c[b++];return a?h:d[h]}};
return g};
if(Object.prototype.hasOwnProperty)var Kd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
else Kd=function(a,b){return b in a&&a[b]!==Object.prototype[b]};
var Ld=function(a,b){if(typeof a.Eb=="function")return a.Eb(b);if(la(a))return b<a.length;return b in a},
Md=function(a,b,c){if(typeof a.get=="function")return a.get(b,c);if(Ld(a,b))return a[b];return c},
Nd=function(a,b,c){if(typeof a.X=="function")a.X(b,c);else a[b]=c};
Fd=Nd;var Od=function(a){this.H=new Jd;a&&this.Nl(a)},
Pd=function(a){var b=typeof a;return b=="object"?"o"+sa(a):b.substr(0,1)+a};
Od.prototype.S=function(){return this.H.S()};
Od.prototype.add=function(a){this.H.X(Pd(a),a)};
Od.prototype.Nl=function(a){var b=zd(a),c=b.length;for(var d=0;d<c;d++)this.add(b[d])};
Od.prototype.ya=function(a){var b=zd(a),c=b.length;for(var d=0;d<c;d++)this.remove(b[d])};
Od.prototype.remove=function(a){return this.H.remove(Pd(a))};
Od.prototype.clear=function(){this.H.clear()};
Od.prototype.isEmpty=function(){return this.H.isEmpty()};
Od.prototype.contains=function(a){return this.H.Eb(Pd(a))};
Od.prototype.intersection=function(a){var b=new Od,c=zd(a);for(var d=0;d<c.length;d++){var e=c[d];this.contains(e)&&b.add(e)}return b};
Od.prototype.vb=function(){return this.H.vb()};
Od.prototype.qa=function(){return new Od(this)};
Od.prototype.equals=function(a){return this.S()!=yd(a)?false:this.hT(a)};
Od.prototype.hT=function(a){var b=yd(a);if(this.S()>b)return false;if(!(a instanceof Od)&&b>5)a=new Od(a);return Id(this,function(c){return Bd(a,c)})};
Od.prototype.__iterator__=function(){return this.H.__iterator__(false)};
var Qd=function(a,b){if(typeof a.add=="function")a.add(b);else if(la(a))a[a.length]=b;else throw Error('The collection does not know how to add "'+b+'"');};
Gd=Qd;var Rd=function(a){var b=[];for(var c=0;c<a.length;c++)ka(a[c])?b.push(Rd(a[c])):b.push(a[c]);return"[ "+b.join(", ")+" ]"},
Ud=function(a,b){try{var c=Sd(a),d="Message: "+s(c.message)+'\nUrl: <a href="view-source:'+c.fileName+'" target="_new">'+c.fileName+"</a>\nLine: "+c.lineNumber+"\n\nBrowser stack:\n"+s(c.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+s(Td(b)+"-> ");return d}catch(e){return"Exception trying to expose exception! You win, we lose. "+e}},
Sd=function(a){var b=da("document.location.href");return typeof a=="string"?{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"}:!a.lineNumber||!a.fileName||!a.stack?{message:a.message,name:a.name,lineNumber:a.lineNumber||a.line||"Not available",fileName:a.fileName||a.sourceURL||b,stack:a.stack||"Not available"}:a},
Td=function(a){return Vd(a||arguments.callee.caller,[])},
Vd=function(a,b){var c=[];if(Lb(b,a))c.push("[...circular reference...]");else if(a&&b.length<50){c.push(Wd(a)+"(");var d=a.arguments;for(var e=0;e<d.length;e++){e>0&&c.push(", ");var f,g=d[e];switch(typeof g){case "object":f=g?"object":"null";break;case "string":f=g;break;case "number":f=String(g);break;case "boolean":f=g?"true":"false";break;case "function":f=Wd(g);f=f?f:"[fn]";break;case "undefined":default:f=typeof g;break}if(f.length>40)f=f.substr(0,40)+"...";c.push(f)}b.push(a);c.push(")\n");
try{c.push(Vd(a.caller,b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")},
Wd=function(a){var b=String(a);if(!Xd[b]){var c=/function ([^\(]+)/.exec(b);if(c){var d=c[1];Xd[b]=d}else Xd[b]="[Anonymous]"}return Xd[b]},
Yd=function(a,b,c,d){if(da("document.all"))return"";var e=b||l,f=c||"",g=d||0;if(e==a)return f;for(var h in e){if(h=="Packages"||h=="sun"||h=="netscape"||h=="java")continue;if(e[h]==a)return f+h;if((typeof e[h]=="function"||typeof e[h]=="object")&&e[h]!=l&&e[h]!=da("document")&&e.hasOwnProperty(h)&&g<6){var i=Yd(a,e[h],f+h+".",g+1);if(i)return i}}return""},
Xd={};var $d=function(a,b,c){this.d3=Zd++;this.As=n();this.Kg=a;this.o1=b;this.f1=c};
$d.prototype.fB=null;$d.prototype.eB=null;var Zd=0;$d.prototype.Ju=function(){return this.f1};
$d.prototype.ZB=function(){return this.fB};
$d.prototype.pX=function(a){this.fB=a};
$d.prototype.$B=function(){return this.eB};
$d.prototype.qX=function(a){this.eB=a};
$d.prototype.Mp=function(){return this.Kg};
$d.prototype.tl=function(a){this.Kg=a};
$d.prototype.rC=function(){return this.o1};
$d.prototype.sC=function(){return this.As};var ae=function(a){this.Kd=a;this.wa=null;this.pa={};this.iv=[]};
ae.prototype.Kg=null;var be=function(a,b){this.name=a;this.value=b};
be.prototype.toString=function(){return this.name};
var ce=new be("OFF",Infinity),nd=new be("SHOUT",1200),od=new be("SEVERE",1000),pd=new be("WARNING",900),qd=new be("INFO",800),de=new be("CONFIG",700),rd=new be("FINE",500),ee=new be("FINER",400),fe=new be("FINEST",300),ge=new be("ALL",0),he=[ce,nd,od,pd,qd,de,rd,ee,fe,ge],ie=null,je=function(){ie={};for(var a=0,b;b=he[a];a++){ie[b.value]=b;ie[b.name]=b}},
ke=function(a){ie||je();return ie[a]||null};
ae.prototype.getName=function(){return this.Kd};
ae.prototype.TJ=function(a){this.iv.push(a)};
ae.prototype.JV=function(a){return Rb(this.iv,a)};
ae.prototype.Ka=function(){return this.wa};
ae.prototype.tl=function(a){this.Kg=a};
ae.prototype.Mp=function(){return this.Kg};
ae.prototype.Kv=function(a){if(this.Kg)return a.value>=this.Kg.value;if(this.wa)return this.wa.Kv(a);return false};
ae.prototype.log=function(a,b,c){if(!this.Kv(a))return;var d=new $d(a,String(b),this.Kd);if(c){d.pX(c);d.qX(Ud(c,arguments.callee.caller))}this.JT(d)};
ae.prototype.HY=function(a,b){this.log(od,a,b)};
ae.prototype.Co=function(a,b){this.log(pd,a,b)};
ae.prototype.Wh=function(a,b){this.log(qd,a,b)};
ae.prototype.da=function(a,b){this.log(rd,a,b)};
ae.prototype.pB=function(a,b){this.log(ee,a,b)};
ae.prototype.lu=function(a,b){this.log(fe,a,b)};
ae.prototype.JT=function(a){if(!this.Kv(a.Mp()))return;var b=this;while(b){b.TK(a);b=b.Ka()}};
ae.prototype.TK=function(a){for(var b=0;b<this.iv.length;b++)this.iv[b](a)};
ae.prototype.$X=function(a){this.wa=a};
ae.prototype.MJ=function(a,b){this.pa[a]=b};
var le={},me=null,ne=function(){if(!me){me=new ae("");le[""]=me;me.tl(de)}};
var oe=function(){ne();return me},
qe=function(a){ne();return a in le?le[a]:pe(a)},
pe=function(a){var b=new ae(a),c=a.split("."),d=c[c.length-1];c.length=c.length-1;var e=c.join("."),f=qe(e);f.MJ(d,b);b.$X(f);le[a]=b;return b};var se=function(a,b){this.Kk=a||"";this.Kw=b||"";this.In=[];this.Yw=new fd(500);this.xV=m(this.WJ,this);this.D0=new md(this.Kw);this.z0={};this.$W(true);this.Ia=re(this.Kk,"enabled")=="1";l.setInterval(m(this.sW,this),7500)};
se.prototype.RI="LOGGING";se.prototype.sb=null;se.prototype.Dy=false;se.prototype.eE=false;se.prototype.xz=null;se.prototype.Sv=n();se.prototype.ae=function(){this.Ia&&this.Bw()};
se.prototype.jb=function(){return this.Ia};
se.prototype.Ha=function(a){this.Ia=a;if(this.Ia){this.Bw();this.sb&&this.Do()}this.ZG("enabled",a?1:0)};
se.prototype.$W=function(a){if(a==this.eE)return;this.eE=a;var b=oe();a?b.TJ(this.xV):b.JV(this.xV)};
se.prototype.jL=function(){this.Yw.clear();this.sb&&this.Do()};
se.prototype.WJ=function(a){if(this.z0[a.Ju()])return;var b=this.D0.lm(a);this.B_(b)};
se.prototype.B_=function(a){if(this.Ia){this.Bw();this.Yw.add(a);this.Ey(a)}else this.Yw.add(a)};
se.prototype.Ey=function(a){this.In.push(a);l.clearTimeout(this.xz);if(n()-this.Sv>750)this.Ns();else this.xz=l.setTimeout(m(this.Ns,this),250)};
se.prototype.Ns=function(){this.Sv=n();if(this.sb){var a=this.sb.document.body,b=a&&a.scrollHeight-(a.scrollTop+a.clientHeight)<=100;this.sb.document.write(this.In.join(""));this.In.length=0;b&&this.sb.scrollTo(0,1000000)}};
se.prototype.TI=function(){var a=this.Yw.vb();for(var b=0;b<a.length;b++)this.Ey(a[b])};
se.prototype.Bw=function(){if(this.sb&&!this.sb.closed||this.Dy)return;var a=this.lO("dbg","0,0,800,500").split(","),b=Number(a[0]),c=Number(a[1]),d=Number(a[2]),e=Number(a[3]);this.Dy=true;this.sb=window.open("","dbg"+this.Kk,"width="+d+",height="+e+",toolbar=no,resizable=yes,scrollbars=yes,left="+b+",top="+c+",status=no,screenx="+b+",screeny="+c);if(!this.sb)if(!this.V1){alert("Logger popup was blocked");this.V1=true}this.Dy=false;this.sb&&this.Do()};
se.prototype.Cm=function(){return"*{font:normal 14px monospace;}.dbg-sev{color:#F00}.dbg-w{color:#E92}.dbg-sh{background-color:#fd4;font-weight:bold;color:#000}.dbg-i{color:#666}.dbg-f{color:#999}.dbg-ev{color:#0A0}.dbg-m{color:#990}"};
se.prototype.Do=function(){if(!this.sb)return;this.sb.document.open();var a="<style>"+this.Cm()+'</style><hr><div class="dbg-ev" style="text-align:center">'+this.RI+"<br><small>Logger: "+this.Kk+"</small></div><hr>";this.Ey(a);this.TI()};
se.prototype.ZG=function(a,b){a+=this.Kk;document.cookie=a+"="+encodeURIComponent(b)+";expires="+(new Date(n()+2592000000)).toUTCString()};
se.prototype.lO=function(a,b){return re(this.Kk,a,b)};
var re=function(a,b,c){var d=b+a,e=String(document.cookie),f=e.indexOf(d+"=");if(f!=-1){var g=e.indexOf(";",f);return decodeURIComponent(e.substring(f+d.length+1,g==-1?e.length:g))}else return c||""};
se.prototype.sW=function(){if(!this.sb||this.sb.closed)return;var a=this.sb.screenX||this.sb.screenLeft||0,b=this.sb.screenY||this.sb.screenTop||0,c=this.sb.outerWidth||800,d=this.sb.outerHeight||500;this.ZG("dbg",a+","+b+","+c+","+d)};var te=function(a,b){se.call(this,a,b)};
p(te,se);te.prototype.Ns=function(){this.Sv=n();if(this.sb){var a=this.Se.f("log"),b=a.scrollHeight-(a.scrollTop+a.offsetHeight)<=100;for(var c=0;c<this.In.length;c++){var d=this.Se.o("div",{className:"logmsg"});d.innerHTML=this.In[c];a.appendChild(d)}this.In.length=0;this.DG();if(b)a.scrollTop=a.scrollHeight}};
te.prototype.Do=function(){if(!this.sb)return;var a=this.sb.document;a.open();a.write(this.JO());a.close();(t?a.body:this.sb).onresize=m(this.DG,this);this.Se=new yc(a);this.Se.f("openbutton").onclick=m(this.MU,this);this.Se.f("closebutton").onclick=m(this.lL,this);this.Se.f("clearbutton").onclick=m(this.jL,this);this.TI()};
te.prototype.MU=function(){var a=this.Se.f("optionsarea");a.innerHTML="";var b=ue(),c=this.Se;for(var d=0;d<b.length;d++){var e=qe(b[d]),f=e.Kg?e.Kg.name:"INHERIT",g=c.o("div",{},this.wO("sel"+b[d],f),c.o("span",{},b[d]||"(root)"));a.appendChild(g)}this.Se.f("options").style.display="block";return false};
te.prototype.wO=function(a,b){var c=this.Se,d=c.o("select",{id:a}),e=he;for(var f=0;f<e.length;f++){var g=e[f],h=c.o("option",{},g.name);if(b==g.name)h.selected=true;d.appendChild(h)}d.appendChild(c.o("option",{selected:b=="INHERIT"},"INHERIT"));return d};
te.prototype.lL=function(){this.Se.f("options").style.display="none";var a=ue(),b=this.Se;for(var c=0;c<a.length;c++){var d=qe(a[c]),e=b.f("sel"+a[c]),f=e.options[e.selectedIndex].text;f=="INHERIT"?d.tl(null):d.tl(ke(f))}return false};
te.prototype.DG=function(){var a=this.Se,b=a.f("log"),c=a.f("head");b.style.top=c.offsetHeight+"px";b.style.height=a.Mb().body.offsetHeight-c.offsetHeight-(t?4:0)+"px"};
var ue=function(){var a=cc(le);a.sort();return a};
te.prototype.Cm=function(){return te.b.Cm.call(this)+"html,body{height:100%;width:100%;margin:0px;padding:0px;background-color:#FFF;overflow:hidden}*{}.logmsg{border-bottom:1px solid #CCC;padding:2px;font:medium monospace;}#head{position:absolute;width:100%;font:x-small arial;border-bottom:2px solid #999;background-color:#EEE;}#head p{margin:0px 5px;}#log{position:absolute;width:100%;overflow:auto;background-color:#FFF;}#options{position:absolute;right:0px;width:50%;height:100%;border-left:1px solid #999;background-color:#DDD;display:none;padding-left: 5px;font:normal small arial;overflow:auto;}#openbutton,#closebutton{text-decoration:underline;color:#00F;cursor:pointer;position:absolute;top:0px;right:5px;font:x-small arial;}#clearbutton{text-decoration:underline;color:#00F;cursor:pointer;position:absolute;top:0px;right:50px;font:x-small arial;}select{font:x-small arial;margin-right:10px;}hr{border:0;height:5px;background-color:#8c8;color:#8c8;}"};
te.prototype.JO=function(){return'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><title>Logging: '+this.Kk+"</title><style>"+this.Cm()+'</style></head><body><div id="log"></div><div id="head"><p><b>Logging: '+this.Kk+"</b></p><p>"+this.RI+'</p><span id="clearbutton">clear</span><span id="openbutton">options</span></div><div id="options"><big><b>Options:</b></big><div id="optionsarea"></div><span id="closebutton">save and close</span></div></body></html>'};var ve=function(){};
ve.prototype.Zt=false;ve.prototype.$m=function(){return this.Zt};
ve.prototype.xb=ve.prototype.$m;ve.prototype.i=function(){if(!this.Zt){this.C();this.Zt=true}};
ve.prototype.C=function(){};var A=function(a,b){this.type=a;this.target=b;this.currentTarget=this.target};
p(A,ve);A.prototype.C=function(){delete this.type;delete this.target;delete this.currentTarget};
A.prototype.ei=false;A.prototype.ml=true;A.prototype.stopPropagation=function(){this.ei=true};
A.prototype.preventDefault=function(){this.ml=false};var we=function(a,b){a&&this.ae(a,b)};
p(we,A);var xe=[1,4,2];we.prototype.type=null;we.prototype.target=null;we.prototype.currentTarget=null;we.prototype.relatedTarget=null;we.prototype.offsetX=0;we.prototype.offsetY=0;we.prototype.clientX=0;we.prototype.clientY=0;we.prototype.screenX=0;we.prototype.screenY=0;we.prototype.button=0;we.prototype.keyCode=0;we.prototype.charCode=0;we.prototype.ctrlKey=false;we.prototype.altKey=false;we.prototype.shiftKey=false;we.prototype.metaKey=false;we.prototype.Ud=null;we.prototype.ae=function(a,b){this.type=
a.type;this.target=a.target||a.srcElement;this.currentTarget=b;this.relatedTarget=a.relatedTarget?a.relatedTarget:this.type==ye?a.fromElement:this.type==ze?a.toElement:null;this.offsetX=typeof a.layerX=="number"?a.layerX:a.offsetX;this.offsetY=typeof a.layerY=="number"?a.layerY:a.offsetY;this.clientX=typeof a.clientX=="number"?a.clientX:a.pageX;this.clientY=typeof a.clientY=="number"?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||
0;this.charCode=a.charCode||(this.type==Ae?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Ud=a;delete this.ml;delete this.ei};
we.prototype.Xm=function(a){return t?this.type==B?a==0:!!(this.Ud.button&xe[a]):yb&&!Ab("420")?this.Ud.button==1&&a==0:this.Ud.button==a};
we.prototype.stopPropagation=function(){this.ei=true;if(this.Ud.stopPropagation)this.Ud.stopPropagation();else this.Ud.cancelBubble=true};
we.prototype.preventDefault=function(){this.ml=false;if(this.Ud.preventDefault)this.Ud.preventDefault();else{this.Ud.returnValue=false;try{this.Ud.keyCode=-1}catch(a){}}};
we.prototype.sm=function(){return this.Ud};
we.prototype.C=function(){we.b.C.call(this);this.Ud=null};var Be=function(a,b){ve.call(this);this.Mg=b;this.Qc=[];this.SL(a)};
p(Be,ve);Be.prototype.Mt=null;Be.prototype.Yt=null;Be.prototype.$n=function(a){this.Mt=a};
Be.prototype.aH=function(a){this.Yt=a};
Be.prototype.Sc=function(){if(this.Qc.length)return this.Qc.pop();return this.sh()};
Be.prototype.Je=function(a){this.Qc.length<this.Mg?this.Qc.push(a):this.sf(a)};
Be.prototype.SL=function(a){if(a>this.Mg)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(var b=0;b<a;b++)this.Qc.push(this.sh())};
Be.prototype.sh=function(){return this.Mt?this.Mt():{}};
Be.prototype.sf=function(a){if(this.Yt)this.Yt(a);else if(oa(a.i))a.i();else for(var b in a)delete a[b]};
Be.prototype.C=function(){Be.b.C.call(this);var a=this.Qc;while(a.length)this.sf(a.pop());delete this.Qc};var Ce=function(){},
De=0;Ce.prototype.Jv=null;Ce.prototype.listener=null;Ce.prototype.hG=null;Ce.prototype.src=null;Ce.prototype.type=null;Ce.prototype.Zj=null;Ce.prototype.Qm=null;Ce.prototype.key=0;Ce.prototype.kl=false;Ce.prototype.zt=false;Ce.prototype.ae=function(a,b,c,d,e,f){if(oa(a))this.Jv=true;else if(a&&a.handleEvent&&oa(a.handleEvent))this.Jv=false;else throw Error("Invalid listener argument");this.listener=a;this.hG=b;this.src=c;this.type=d;this.Zj=!!e;this.Qm=f;this.zt=false;this.key=++De;this.kl=false};
Ce.prototype.handleEvent=function(a){if(this.Jv)return this.listener.call(this.Qm||this.src,a);return this.listener.handleEvent.call(this.listener,a)};var Ee={},Fe={},Ge={},He=new Be(0,600);He.$n(function(){return{Ya:0}});
He.aH(function(a){a.Ya=0});
var Ie=new Be(0,600);Ie.$n(function(){return[]});
Ie.aH(function(a){a.length=0;delete a.Nq;delete a.iF});
var Je=new Be(0,600);Je.$n(function(){var a=function(b){return Ke.call(a.src,a.key,b)};
return a});
var Le=function(){return new Ce},
Me=new Be(0,600);Me.$n(Le);var Ne=function(){return new we},
Oe=function(){var a=null;if(t){a=new Be(0,600);a.$n(Ne)}return a},
Pe=Oe(),Qe="on",Re={},D=function(a,b,c,d,e){if(b)if(ka(b)){for(var f=0;f<b.length;f++)D(a,b[f],c,d,e);return null}else{var g=!!d,h=Fe;b in h||(h[b]=He.Sc());h=h[b];if(!(g in h)){h[g]=He.Sc();h.Ya++}h=h[g];var i=sa(a),j,k;if(h[i]){j=h[i];for(var f=0;f<j.length;f++){k=j[f];if(k.listener==c&&k.Qm==e){if(k.kl)break;return j[f].key}}}else{j=h[i]=Ie.Sc();h.Ya++}var o=Je.Sc();o.src=a;k=Me.Sc();k.ae(c,o,a,b,g,e);var r=k.key;o.key=r;j.push(k);Ee[r]=k;Ge[i]||(Ge[i]=Ie.Sc());Ge[i].push(k);if(a.addEventListener){if(a==
l||!a.sA)a.addEventListener(b,o,g)}else a.attachEvent(Se(b),o);return r}else throw Error("Invalid event type");},
Te=function(a,b,c,d,e){if(ka(b)){for(var f=0;f<b.length;f++)Te(a,b[f],c,d,e);return null}var g=D(a,b,c,d,e),h=Ee[g];h.zt=true;return g},
Ue=function(a,b,c,d,e){if(ka(b)){for(var f=0;f<b.length;f++)Ue(a,b[f],c,d,e);return null}var g=!!d,h=Ve(a,b,g);if(!h)return false;for(var f=0;f<h.length;f++)if(h[f].listener==c&&h[f].Zj==g&&h[f].Qm==e)return We(h[f].key);return false},
We=function(a){if(!Ee[a])return false;var b=Ee[a];if(b.kl)return false;var c=b.src,d=b.type,e=b.hG,f=b.Zj;if(c.removeEventListener){if(c==l||!c.sA)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(Se(d),e);var g=sa(c),h=Fe[d][f][g];if(Ge[g]){var i=Ge[g];Rb(i,b);i.length==0&&delete Ge[g]}b.kl=true;h.iF=true;Xe(d,f,g,h);delete Ee[a];return true},
Xe=function(a,b,c,d){if(!d.Nq)if(d.iF){for(var e=0,f=0;e<d.length;e++){if(d[e].kl){Me.Je(d[e]);continue}if(e!=f)d[f]=d[e];f++}d.length=f;d.iF=false;if(f==0){Ie.Je(d);delete Fe[a][b][c];Fe[a][b].Ya--;if(Fe[a][b].Ya==0){He.Je(Fe[a][b]);delete Fe[a][b];Fe[a].Ya--}if(Fe[a].Ya==0){He.Je(Fe[a]);delete Fe[a]}}}},
Ye=function(a,b,c){var d=0,e=a==null,f=b==null,g=c==null;c=!!c;if(e)$b(Ge,function(o){for(var r=o.length-1;r>=0;r--){var u=o[r];if((f||b==u.type)&&(g||c==u.Zj)){We(u.key);d++}}});
else{var h=sa(a);if(Ge[h]){var i=Ge[h];for(var j=i.length-1;j>=0;j--){var k=i[j];if((f||b==k.type)&&(g||c==k.Zj)){We(k.key);d++}}}}return d},
Ve=function(a,b,c){var d=Fe;if(b in d){d=d[b];if(c in d){d=d[c];var e=sa(a);if(d[e])return d[e]}}return null},
Ze=function(a,b,c,d,e){var f=!!d,g=Ve(a,b,f);if(g)for(var h=0;h<g.length;h++)if(g[h].listener==c&&g[h].Zj==f&&g[h].Qm==e)return g[h];return null},
B="click",F="mousedown",$e="mouseup",ye="mouseover",ze="mouseout",af="mousemove",Ae="keypress",bf="keydown",cf="focus",df="resize",ef="contextmenu",Se=function(a){if(a in Re)return Re[a];return Re[a]=Qe+a},
gf=function(a,b,c,d){var e=1,f=Fe;if(b in f){f=f[b];if(c in f){f=f[c];var g=sa(a);if(f[g]){var h=f[g];if(h.Nq)h.Nq++;else h.Nq=1;try{var i=h.length;for(var j=0;j<i;j++){var k=h[j];if(k&&!k.kl)e&=ff(k,d)!==false}}finally{h.Nq--;Xe(b,c,g,h)}}}}return Boolean(e)},
ff=function(a,b){var c=a.handleEvent(b);a.zt&&We(a.key);return c},
hf=function(a,b){if(ma(b))b=new A(b,a);else if(b instanceof A)b.target=b.target||a;else{var c=b;b=new A(b.type,a);nc(b,c)}var d=1,e,f=b.type,g=Fe;if(!(f in g))return true;g=g[f];var h=true in g,i=false in g;if(h){e=[];for(var j=a;j;j=j.Pp())e.push(j);for(var k=e.length-1;!b.ei&&k>=0;k--){b.currentTarget=e[k];d&=gf(e[k],b.type,true,b)&&b.ml!=false}}if(i)if(h)for(var k=0;!b.ei&&k<e.length;k++){b.currentTarget=e[k];d&=gf(e[k],b.type,false,b)&&b.ml!=false}else for(var o=a;!b.ei&&o;o=o.Pp()){b.currentTarget=
o;d&=gf(o,b.type,false,b)&&b.ml!=false}return Boolean(d)},
Ke=function(a,b){if(!Ee[a])return true;var c=Ee[a],d=c.type,e=Fe;if(!(d in e))return true;e=e[d];var f;if(t){var g=b||da("window.event"),h=true in e;if(h){if(g.keyCode<0||g.returnValue!=undefined)return true;jf(g)}sa(c.src);var i=Pe.Sc();i.ae(g,this);f=true;try{if(h){var j=Ie.Sc();for(var k=i.currentTarget;k;k=k.parentNode)j.push(k);for(var o=j.length-1;!i.ei&&o>=0;o--){i.currentTarget=j[o];f&=gf(j[o],d,true,i)}for(var o=0;!i.ei&&o<j.length;o++){i.currentTarget=j[o];f&=gf(j[o],d,false,i)}}else f=
ff(c,i)}finally{if(j){j.length=0;Ie.Je(j)}i.i();Pe.Je(i)}return f}var r=new we(b,this);try{f=ff(c,r)}finally{r.i()}return f},
jf=function(a){var b=false;if(a.keyCode==0)try{a.keyCode=-1;return}catch(c){b=true}if(b||a.returnValue==undefined)a.returnValue=true};var kf;var lf=function(a){a=a.replace(/-/g,"_");kf=a},
mf=function(){if(kf==null)kf="en";return kf},
nf="DateTimeConstants",of="NumberFormatConstants",qf=function(a,b,c){pf[b]||(pf[b]={});pf[b][c]=a;if(kf==null)kf=c};
var pf={},rf=function(a,b){qf(a,nf,b)},
sf=function(a,b){qf(a,of,b)},
tf=function(a,b){var c=b?b:mf();if(!(a in pf))return undefined;return pf[a][c]},
uf={DECIMAL_SEP:".",GROUP_SEP:",",PERCENT:"%",ZERO_DIGIT:"0",PLUS_SIGN:"+",MINUS_SIGN:"-",EXP_SYMBOL:"E",PERMILL:"\u2030",INFINITY:"\u221e",NAN:"NaN",MONETARY_SEP:".",MONETARY_GROUP_SEP:",",DECIMAL_PATTERN:"#,##0.###",SCIENTIFIC_PATTERN:"0.###E0",PERCENT_PATTERN:"#,##0%",CURRENCY_PATTERN:"\u00a4#,##0.00",DEF_CURRENCY_CODE:"USD"},vf={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:["J","F","M","A","M","J","J","A","S","O","N","D"],MONTHS:["January","February","March","April",
"May","June","July","August","September","October","November","December"],SHORTMONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],WEEKDAYS:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],SHORTWEEKDAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],NARROWWEEKDAYS:["S","M","T","W","T","F","S"],SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, yyyy","MMMM d, yyyy",
"MMM d, yyyy","M/d/yy"],TIMEFORMATS:["h:mm:ss a v","h:mm:ss a z","h:mm:ss a","h:mm a"],ZONESTRINGS:null},wf=rf,xf=sf;var yf=function(){},
Af=function(a){if(typeof a=="number")return zf(a);var b=new yf;b.timeZoneId=a[0];b.standardOffset=-a[1];b.tzNames=a[2];b.transitions=a[3];return b},
zf=function(a){var b=new yf;b.standardOffset=a;b.timeZoneId=Bf(a);var c=Cf(a);b.tzNames=[c,c];b.transitions=[];return b},
Df=function(a){var b=["GMT"];b.push(a<=0?"+":"-");a=Math.abs(a);b.push(gb(Math.floor(a/60)%100,2),":",gb(a%60,2));return b.join("")},
Bf=function(a){if(a==0)return"Etc/GMT";var b=["Etc/GMT",a<0?"-":"+"];a=Math.abs(a);b.push(Math.floor(a/60)%100);a=a%60;a!=0&&b.push(":",gb(a,2));return b.join("")},
Cf=function(a){if(a==0)return"UTC";var b=["UTC",a<0?"+":"-"];a=Math.abs(a);b.push(Math.floor(a/60)%100);a=a%60;a!=0&&b.push(":",a);return b.join("")};
yf.prototype.OB=function(a){var b=a.getTime()/1000/3600,c=0;while(c<this.transitions.length&&b>=this.transitions[c])c+=2;return c==0?0:this.transitions[c-1]};
yf.prototype.GO=function(a){return Df(this.cj(a))};
yf.prototype.eP=function(a){return this.tzNames[this.fE(a)?3:1]};
yf.prototype.cj=function(a){return this.standardOffset-this.OB(a)};
yf.prototype.BP=function(a){var b=-this.cj(a),c=[b<0?"-":"+"];b=Math.abs(b);c.push(gb(Math.floor(b/60)%100,2),gb(b%60,2));return c.join("")};
yf.prototype.Sp=function(a){return this.tzNames[this.fE(a)?2:0]};
yf.prototype.fE=function(a){return this.OB(a)>0};var Ef=function(){this.fa=tf("DateTimeConstants",mf());this.zb=[]},
Ff=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvzZ]+/];Ef.prototype.pe=function(a){while(a)for(var b=0;b<Ff.length;++b){var c=a.match(Ff[b]);if(c){var d=c[0];a=a.substring(d.length);if(b==0)if(d=="''")d="'";else{d=d.substring(1,d.length-1);d=d.replace(/\'\'/,"'")}this.zb.push({text:d,type:b});break}}};
Ef.prototype.Qi=function(a,b){b||(b=Af(a.getTimezoneOffset()));var c=(a.getTimezoneOffset()-b.cj(a))*60000,d=c?new Date(a.getTime()+c):a,e=d;if(d.getTimezoneOffset()!=a.getTimezoneOffset()){c+=c>0?-86400000:86400000;e=new Date(a.getTime()+c)}var f=[];for(var g=0;g<this.zb.length;++g){var h=this.zb[g].text;1==this.zb[g].type?f.push(this.EN(h,a,d,e,b)):f.push(h)}return f.join("")};
Ef.prototype.$f=function(a){var b;if(a<4)b=this.fa.DATEFORMATS[a];else if(a<8)b=this.fa.TIMEFORMATS[a-4];else if(a<12)b=this.fa.DATEFORMATS[a-8]+" "+this.fa.TIMEFORMATS[a-8];else this.$f(10);return this.pe(b)};
Ef.prototype.DN=function(a,b){var c=b.getFullYear()>0?1:0;return a>=4?this.fa.ERANAMES[c]:this.fa.ERAS[c]};
Ef.prototype.ON=function(a,b){var c=b.getFullYear();if(c<0)c=-c;return a==2?gb(c%100,2):String(c)};
Ef.prototype.HN=function(a,b){var c=b.getMonth();switch(a){case 5:return this.fa.NARROWMONTHS[c];case 4:return this.fa.MONTHS[c];case 3:return this.fa.SHORTMONTHS[c];default:return gb(c+1,a)}};
Ef.prototype.xN=function(a,b){return gb(b.getHours()||24,a)};
Ef.prototype.FN=function(a,b){var c=b.getTime()%1000/1000;return c.toFixed(Math.min(3,a)).substr(2)+(a>3?gb(0,a-3):"")};
Ef.prototype.BN=function(a,b){var c=b.getDay();return a>=4?this.fa.WEEKDAYS[c]:this.fa.SHORTWEEKDAYS[c]};
Ef.prototype.yN=function(a,b){var c=b.getHours();return this.fa.AMPMS[c>=12&&c<24?1:0]};
Ef.prototype.wN=function(a,b){return gb(b.getHours()%12||12,a)};
Ef.prototype.uN=function(a,b){return gb(b.getHours()%12,a)};
Ef.prototype.vN=function(a,b){return gb(b.getHours(),a)};
Ef.prototype.KN=function(a,b){var c=b.getDay();switch(a){case 5:return this.fa.STANDALONENARROWWEEKDAYS[c];case 4:return this.fa.STANDALONEWEEKDAYS[c];case 3:return this.fa.STANDALONESHORTWEEKDAYS[c];default:return gb(c,1)}};
Ef.prototype.LN=function(a,b){var c=b.getMonth();switch(a){case 5:return this.fa.STANDALONENARROWMONTHS[c];case 4:return this.fa.STANDALONEMONTHS[c];case 3:return this.fa.STANDALONESHORTMONTHS[c];default:return gb(c+1,a)}};
Ef.prototype.IN=function(a,b){var c=Math.floor(b.getMonth()/3);return a<4?this.fa.SHORTQUARTERS[c]:this.fa.QUARTERS[c]};
Ef.prototype.AN=function(a,b){return gb(b.getDate(),a)};
Ef.prototype.GN=function(a,b){return gb(b.getMinutes(),a)};
Ef.prototype.JN=function(a,b){return gb(b.getSeconds(),a)};
Ef.prototype.MN=function(a,b,c){return a<4?c.BP(b):c.GO(b)};
Ef.prototype.NN=function(a,b,c){return a<4?c.Sp(b):c.eP(b)};
Ef.prototype.EN=function(a,b,c,d,e){var f=a.length;switch(a.charAt(0)){case "G":return this.DN(f,c);case "y":return this.ON(f,c);case "M":return this.HN(f,c);case "k":return this.xN(f,d);case "S":return this.FN(f,d);case "E":return this.BN(f,c);case "a":return this.yN(f,d);case "h":return this.wN(f,d);case "K":return this.uN(f,d);case "H":return this.vN(f,d);case "c":return this.KN(f,c);case "L":return this.LN(f,c);case "Q":return this.IN(f,c);case "d":return this.AN(f,c);case "m":return this.GN(f,
d);case "s":return this.JN(f,d);case "v":return e.timeZoneId;case "z":return this.NN(f,b,e);case "Z":return this.MN(f,b,e);default:return""}};var Gf=function(){this.fa=tf("DateTimeConstants",mf());this.zb=[]};
Gf.prototype.Vf=0;Gf.prototype.Xk=0;Gf.prototype.wA=0;Gf.prototype.Ob=0;Gf.prototype.vc=0;Gf.prototype.wc=0;Gf.prototype.Rq=0;var Hf=80;Gf.prototype.pe=function(a){var b=false,c="";for(var d=0;d<a.length;d++){var e=a.charAt(d);if(e==" "){if(c.length>0){this.zb.push({text:c,count:0,abutStart:false});c=""}this.zb.push({text:" ",count:0,abutStart:false});while(d+1<a.length&&a.charAt(d+1)==" ")d++}else if(b)if(e=="'")if(d+1<a.length&&a.charAt(d+1)=="'"){c+=e;++d}else b=false;else c+=e;else if("GyMdkHmsSEDahKzZv".indexOf(e)>=
0){if(c.length>0){this.zb.push({text:c,count:0,abutStart:false});c=""}var f=this.kP(a,d);this.zb.push({text:e,count:f,abutStart:false});d+=f-1}else if(e=="'")if(d+1<a.length&&a.charAt(d+1)=="'"){c+="'";d++}else b=true;else c+=e}c.length>0&&this.zb.push({text:c,count:0,abutStart:false});this.WT()};
Gf.prototype.$f=function(a){var b;if(a<4)b=this.fa.DATEFORMATS[a];else if(a<8)b=this.fa.TIMEFORMATS[a-4];else if(a<12){b=this.fa.DATEFORMATS[a-8];b+=" ";b+=this.fa.TIMEFORMATS[a-8]}else return this.$f(10);return this.pe(b)};
Gf.prototype.parse=function(a,b,c){return this.LS(a,b,c,false)};
Gf.prototype.LS=function(a,b,c,d){var e=new If,f=[b],g=-1,h=0,i=0;for(var j=0;j<this.zb.length;++j)if(this.zb[j].count>0){if(g<0&&this.zb[j].abutStart){g=j;h=b;i=0}if(g>=0){var k=this.zb[j].count;if(j==g){k-=i;i++;if(k==0)return 0}if(!this.bI(a,f,this.zb[j],k,e)){j=g-1;f[0]=h;continue}}else{g=-1;if(!this.bI(a,f,this.zb[j],0,e))return 0}}else{g=-1;if(this.zb[j].text.charAt(0)==" "){var o=f[0];this.QH(a,f);if(f[0]>o)continue}else if(a.indexOf(this.zb[j].text,f[0])==f[0]){f[0]+=this.zb[j].text.length;
continue}return 0}return e.PK(c,d)?f[0]-b:0};
Gf.prototype.kP=function(a,b){var c=a.charAt(b),d=b+1;while(d<a.length&&a.charAt(d)==c)++d;return d-b};
Gf.prototype.Lv=function(a){if(a.count<=0)return false;var b="MydhHmsSDkK".indexOf(a.text.charAt(0));return b>0||b==0&&a.count<3};
Gf.prototype.WT=function(){var a=false;for(var b=0;b<this.zb.length;b++)if(this.Lv(this.zb[b])){if(!a&&b+1<this.zb.length&&this.Lv(this.zb[b+1])){a=true;this.zb[b].abutStart=true}}else a=false};
Gf.prototype.QH=function(a,b){var c=a.substring(b[0]).match(/^\s+/);if(c)b[0]+=c[0].length};
Gf.prototype.bI=function(a,b,c,d,e){this.QH(a,b);var f=b[0],g=c.text.charAt(0),h=-1;if(this.Lv(c))if(d>0){if(f+d>a.length)return false;h=this.Kn(a.substring(0,f+d),b)}else h=this.Kn(a,b);switch(g){case "G":e.era=this.Uk(a,b,this.fa.ERAS);return true;case "M":return this.tZ(a,b,e,h);case "E":return this.rZ(a,b,e);case "a":e.ampm=this.Uk(a,b,this.fa.AMPMS);return true;case "y":return this.uZ(a,b,f,h,c,e);case "d":e.day=h;return true;case "S":return this.sZ(h,b,f,e);case "h":if(h==12)h=0;case "K":case "H":case "k":e.Ob=
h;return true;case "m":e.vc=h;return true;case "s":e.wc=h;return true;case "z":case "Z":case "v":return this.zZ(a,b,e);default:return false}};
Gf.prototype.uZ=function(a,b,c,d,e,f){var g;if(d<0){g=a.charAt(b[0]);if(g!="+"&&g!="-")return false;b[0]++;d=this.Kn(a,b);if(d<0)return false;if(g=="-")d=-d}if(g==null&&b[0]-c==2&&e.count==2)f.tY(d);else f.Vf=d;return true};
Gf.prototype.tZ=function(a,b,c,d){if(d<0){d=this.Uk(a,b,this.fa.MONTHS);if(d<0)d=this.Uk(a,b,this.fa.SHORTMONTHS);if(d<0)return false;c.Xk=d;return true}else{c.Xk=d-1;return true}};
Gf.prototype.rZ=function(a,b,c){var d=this.Uk(a,b,this.fa.WEEKDAYS);if(d<0)d=this.Uk(a,b,this.fa.SHORTWEEKDAYS);if(d<0)return false;c.dayOfWeek=d;return true};
Gf.prototype.sZ=function(a,b,c,d){var e=b[0]-c;d.Rq=e<3?a*Math.pow(10,3-e):Math.round(a/Math.pow(10,e-3));return true};
Gf.prototype.zZ=function(a,b,c){if(a.indexOf("GMT",b[0])==b[0]){b[0]+=3;return this.KF(a,b,c)}return this.KF(a,b,c)};
Gf.prototype.KF=function(a,b,c){if(b[0]>=a.length){c.tzOffset=0;return true}var d=1;switch(a.charAt(b[0])){case "-":d=-1;case "+":b[0]++}var e=b[0],f=this.Kn(a,b);if(f==0&&b[0]==e)return false;var g;if(b[0]<a.length&&a.charAt(b[0])==":"){g=f*60;b[0]++;e=b[0];f=this.Kn(a,b);if(f==0&&b[0]==e)return false;g+=f}else{g=f;if(g<24&&b[0]-e<=2)g*=60;else g=g%100+g/100*60}g*=d;c.tzOffset=-g;return true};
Gf.prototype.Kn=function(a,b){var c=a.substring(b[0]).match(/^\d+/);if(!c)return-1;b[0]+=c[0].length;return parseInt(c[0],10)};
Gf.prototype.Uk=function(a,b,c){var d=0,e=-1,f=a.substring(b[0]).toLowerCase();for(var g=0;g<c.length;++g){var h=c[g].length;if(h>d&&f.indexOf(c[g].toLowerCase())==0){e=g;d=h}}if(e>=0)b[0]+=d;return e};
var If=function(){};
If.prototype.tY=function(a){var b=new Date,c=b.getFullYear()-Hf,d=c%100;this.ambiguousYear=a==d;a+=Math.floor(c/100)*100+(a<d?100:0);return this.Vf=a};
If.prototype.PK=function(a,b){if(this.era!=undefined&&this.Vf!=undefined&&this.era==0&&this.Vf>0)this.Vf=-(this.Vf-1);this.Vf!=undefined&&a.setFullYear(this.Vf);var c=a.getDate();a.setDate(1);this.Xk!=undefined&&a.setMonth(this.Xk);this.day!=undefined?a.setDate(this.day):a.setDate(c);if(this.Ob==undefined)this.Ob=a.getHours();if(this.ampm!=undefined&&this.ampm>0)if(this.Ob<12)this.Ob+=12;a.setHours(this.Ob);this.vc!=undefined&&a.setMinutes(this.vc);this.wc!=undefined&&a.setSeconds(this.wc);this.Rq!=
undefined&&a.setMilliseconds(this.Rq);if(b&&(this.Vf!=undefined&&this.Vf!=a.getFullYear()||this.Xk!=undefined&&this.Xk!=a.getMonth()||this.wA!=undefined&&this.wA!=a.getDate()||this.Ob>=24||this.vc>=60||this.wc>=60||this.Rq>=1000))return false;if(this.tzOffset!=undefined){var d=a.getTimezoneOffset();a.setTime(a.getTime()+(this.tzOffset-d)*60*1000)}if(this.ambiguousYear){var e=new Date;e.setFullYear(e.getFullYear()-Hf);a.getTime()<e.getTime()&&a.setFullYear(e.getFullYear()+100)}if(this.dayOfWeek!=undefined)if(this.day==
undefined){var f=(7+this.dayOfWeek-a.getDay())%7;if(f>3)f-=7;var g=a.getMonth();a.setDate(a.getDate()+f);if(a.getMonth()!=g)a.setDate(a.getDate()+(f>0?-7:7))}else if(this.dayOfWeek!=a.getDay())return false;return true};var Jf={AED:"\u062f.\u0625",ARS:"$",AUD:"$",BDT:"\u09f3",BRL:"R$",CAD:"$",CHF:"Fr.",CLP:"$",CNY:"\u00a5",COP:"$",CRC:"\u20a1",CUP:"$",CZK:"K\u010d",DKK:"kr",DOP:"$",EGP:"\u00a3",EUR:"\u20ac",GBP:"\u00a3",HKD:"$",HRK:"kn",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",INR:"Rs",IQD:"\u0639\u062f",ISK:"kr",JMD:"$",JPY:"\u00a5",KRW:"\u20a9",KWD:"\u062f.\u0643",LKR:"Rs",LVL:"Ls",MNT:"\u20ae",MXN:"$",MYR:"RM",NOK:"kr",NZD:"$",PAB:"B/.",PEN:"S/.",PHP:"P",PKR:"Rs.",PLN:"z\u0142",RON:"L",RUB:"\u0440\u0443\u0431",SAR:"\u0633.\u0631",
SEK:"kr",SGD:"$",SKK:"Sk",SYP:"SYP",THB:"\u0e3f",TRY:"YTL",TWD:"NT$",USD:"$",UYU:"$",VEF:"Bs.F",VND:"\u20ab",XAF:"FCFA",XCD:"$",YER:"YER",ZAR:"R"};var Kf=function(){this.fa=tf("NumberFormatConstants",mf())};
Kf.prototype.$f=function(a,b){switch(a){case 1:this.pe(this.fa.DECIMAL_PATTERN,b);break;case 2:this.pe(this.fa.SCIENTIFIC_PATTERN,b);break;case 3:this.pe(this.fa.PERCENT_PATTERN,b);break;case 4:this.pe(this.fa.CURRENCY_PATTERN,b);break;default:throw Error("Unsupported pattern type.");}};
Kf.prototype.pe=function(a,b){this.A1=a;this.MS=b||this.fa.DEF_CURRENCY_CODE;this.d0=Jf[this.MS];this.iw=40;this.Qf=1;this.UE=3;this.Tq=0;this.mw=0;this.On="";this.Hw="";this.An="-";this.uw="";this.ar=1;this.ZC=3;this.gM=false;this.wq=false;this.Ay=false;this.WU(this.A1)};
Kf.prototype.parse=function(a,b){var c=b||[0],d=c[0],e=0,f=a.indexOf(this.On,c[0])==c[0],g=a.indexOf(this.An,c[0])==c[0];if(f&&g)if(this.On.length>this.An.length)g=false;else if(this.On.length<this.An.length)f=false;if(f)c[0]+=this.On.length;else if(g)c[0]+=this.An.length;if(a.indexOf(this.fa.INFINITY,c[0])==c[0]){c[0]+=this.fa.INFINITY.length;e=Infinity}else e=this.VU(a,c);if(f){if(!(a.indexOf(this.Hw,c[0])==c[0])){c[0]=d;return 0}c[0]+=this.Hw.length}else if(g){if(!(a.indexOf(this.uw,c[0])==c[0])){c[0]=
d;return 0}c[0]+=this.uw.length}return g?-e:e};
Kf.prototype.VU=function(a,b){var c=false,d=false,e=false,f=1,g=this.wq?this.fa.MONETARY_SEP:this.fa.DECIMAL_SEP,h=this.wq?this.fa.MONETARY_GROUP_SEP:this.fa.GROUP_SEP,i=this.fa.EXP_SYMBOL,j="";for(;b[0]<a.length;b[0]++){var k=a.charAt(b[0]),o=this.UB(k);if(o>=0&&o<=9){j+=o;e=true}else if(k==g.charAt(0)){if(c||d)break;j+=".";c=true}else if(k==h.charAt(0)||"\u00a0"==h.charAt(0)&&k==" "&&b[0]+1<a.length&&this.UB(a.charAt(b[0]+1))>=0){if(c||d)break;continue}else if(k==i.charAt(0)){if(d)break;j+="E";
d=true}else if(k=="+"||k=="-")j+=k;else if(k==this.fa.PERCENT.charAt(0)){if(f!=1)break;f=100;if(e){b[0]++;break}}else if(k==this.fa.PERMILL.charAt(0)){if(f!=1)break;f=1000;if(e){b[0]++;break}}else break}return parseFloat(j)/f};
Kf.prototype.Qi=function(a){if(isNaN(a))return this.fa.NAN;var b=[],c=a<0||a==0&&1/a<0;b.push(c?this.An:this.On);if(isFinite(a)){a*=c?-1:1;a*=this.ar;this.Ay?this.vZ(a,b):this.Qx(a,this.Qf,b)}else b.push(this.fa.INFINITY);b.push(c?this.uw:this.Hw);return b.join("")};
Kf.prototype.Qx=function(a,b,c){var d=Math.pow(10,this.UE);a=Math.round(a*d);var e=Math.floor(a/d),f=Math.floor(a-e*d),g=this.Tq>0||f>0,h="",i=e;while(i>1.0E20){h="0"+h;i=Math.round(i/10)}h=i+h;var j=this.wq?this.fa.MONETARY_SEP:this.fa.DECIMAL_SEP,k=this.wq?this.fa.MONETARY_GROUP_SEP:this.fa.GROUP_SEP,o=this.fa.ZERO_DIGIT.charCodeAt(0),r=h.length;if(e>0||b>0){for(var u=r;u<b;u++)c.push(this.fa.ZERO_DIGIT);for(var u=0;u<r;u++){c.push(String.fromCharCode(o+h.charAt(u)*1));r-u>1&&this.ZC>0&&(r-u)%this.ZC==
1&&c.push(k)}}else g||c.push(this.fa.ZERO_DIGIT);if(this.gM||g)c.push(j);var C=""+(f+d),E=C.length;while(C.charAt(E-1)=="0"&&E>this.Tq+1)E--;for(var u=1;u<E;u++)c.push(String.fromCharCode(o+C.charAt(u)*1))};
Kf.prototype.bz=function(a,b){b.push(this.fa.EXP_SYMBOL);if(a<0){a=-a;b.push(this.fa.MINUS_SIGN)}var c=""+a;for(var d=c.length;d<this.mw;d++)b.push(this.fa.ZERO_DIGIT);b.push(c)};
Kf.prototype.vZ=function(a,b){if(a==0){this.Qx(a,this.Qf,b);this.bz(0,b);return}var c=Math.floor(Math.log(a)/Math.log(10));a/=Math.pow(10,c);var d=this.Qf;if(this.iw>1&&this.iw>this.Qf){while(c%this.iw!=0){a*=10;c--}d=1}else if(this.Qf<1){c++;a/=10}else{c-=this.Qf-1;a*=Math.pow(10,this.Qf-1)}this.Qx(a,d,b);this.bz(c,b)};
Kf.prototype.UB=function(a){var b=a.charCodeAt(0);if(48<=b&&b<58)return b-48;else{var c=this.fa.ZERO_DIGIT.charCodeAt(0);return c<=b&&b<c+10?b-c:-1}};
Kf.prototype.rr=function(a,b){var c="",d=false,e=a.length;for(;b[0]<e;b[0]++){var f=a.charAt(b[0]);if(f=="'"){if(b[0]+1<e&&a.charAt(b[0]+1)=="'"){b[0]++;c+="'"}else d=!d;continue}if(d)c+=f;else switch(f){case "#":case "0":case ",":case ".":case ";":return c;case "\u00a4":this.wq=true;if(b[0]+1<e&&a.charAt(b[0]+1)=="\u00a4"){b[0]++;c+=this.MS}else c+=this.d0;break;case "%":if(this.ar!=1)throw Error("Too many percent/permill");this.ar=100;c+=this.fa.PERCENT;break;case "\u2030":if(this.ar!=1)throw Error("Too many percent/permill");
this.ar=1000;c+=this.fa.PERMILL;break;default:c+=f}}return c};
Kf.prototype.XU=function(a,b){var c=-1,d=0,e=0,f=0,g=-1,h=a.length;for(var i=true;b[0]<h&&i;b[0]++){var j=a.charAt(b[0]);switch(j){case "#":if(e>0)f++;else d++;g>=0&&c<0&&g++;break;case "0":if(f>0)throw Error('Unexpected "0" in pattern "'+a+'"');e++;g>=0&&c<0&&g++;break;case ",":g=0;break;case ".":if(c>=0)throw Error('Multiple decimal separators in pattern "'+a+'"');c=d+e+f;break;case "E":if(this.Ay)throw Error('Multiple exponential symbols in pattern "'+a+'"');this.Ay=true;this.mw=0;while(b[0]+1<
h&&a.charAt(b[0]+1)=="0"){b[0]++;this.mw++}if(d+e<1||this.mw<1)throw Error('Malformed exponential pattern "'+a+'"');i=false;break;default:b[0]--;i=false;break}}if(e==0&&d>0&&c>=0){var k=c;k==0&&k++;f=d-k;d=k-1;e=1}if(c<0&&f>0||c>=0&&(c<d||c>d+e)||g==0)throw Error('Malformed pattern "'+a+'"');var o=d+e+f;this.UE=c>=0?o-c:0;if(c>=0){this.Tq=d+e-c;if(this.Tq<0)this.Tq=0}var r=c>=0?c:o;this.Qf=r-d;if(this.Ay){this.iw=d+this.Qf;if(this.UE==0&&this.Qf==0)this.Qf=1}this.ZC=Math.max(0,g);this.gM=c==0||c==
o};
Kf.prototype.WU=function(a){var b=[0];this.On=this.rr(a,b);var c=b[0];this.XU(a,b);var d=b[0]-c;this.Hw=this.rr(a,b);if(b[0]<a.length&&a.charAt(b[0])==";"){b[0]++;this.An=this.rr(a,b);b[0]+=d;this.uw=this.rr(a,b)}};var Lf=function(a,b,c){var d=new Ef;d.pe(a);return d.Qi(b,c)},
Mf=function(a,b,c){var d=new Ef;d.$f(a);return d.Qi(b,c)},
Nf=function(a){var b=new Ef;b.$f(a);return b},
Of=function(a,b,c,d){var e=new Gf;e.pe(a);return e.parse(b,c,d)},
Pf=function(a,b){var c=new Kf;c.$f(a);return c.Qi(b)};var Qf=function(a,b,c,d){this.top=ba(a)?Number(a):undefined;this.right=ba(b)?Number(b):undefined;this.bottom=ba(c)?Number(c):undefined;this.left=ba(d)?Number(d):undefined},
Rf=function(){var a=new Qf(arguments[0].y,arguments[0].x,arguments[0].y,arguments[0].x);for(var b=1;b<arguments.length;b++){var c=arguments[b];a.top=Math.min(a.top,c.y);a.right=Math.max(a.right,c.x);a.bottom=Math.max(a.bottom,c.y);a.left=Math.min(a.left,c.x)}return a};
Qf.prototype.qa=function(){return new Qf(this.top,this.right,this.bottom,this.left)};
Qf.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};
Qf.prototype.contains=function(a){return Sf(this,a)};
Qf.prototype.expand=function(a,b,c,d){if(pa(a)){this.top-=a.top;this.right+=a.right;this.bottom+=a.bottom;this.left-=a.left}else{this.top-=a;this.right+=b;this.bottom+=c;this.left-=d}return this};
var Sf=function(a,b){if(!a||!b)return false;return b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom};var Tf=function(a,b,c,d,e){if(/[;=]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/;/.test(b))throw Error('Invalid cookie value "'+b+'"');ba(c)||(c=-1);var f=e?";domain="+e:"",g=d?";path="+d:"",h;if(c<0)h="";else if(c==0){var i=new Date(1970,1,1);h=";expires="+i.toUTCString()}else{var j=new Date((new Date).getTime()+c*1000);h=";expires="+j.toUTCString()}document.cookie=a+"="+b+f+g+h},
Uf=function(a,b){var c=a+"=",d=String(document.cookie).split(/\s*;\s*/);for(var e=0,f;f=d[e];e++)if(f.indexOf(c)==0)return f.substr(c.length);return b},
Wf=function(a,b,c){var d=Vf(a);Tf(a,"",0,b,c);return d},
Vf=function(a){var b={};return Uf(a,b)!==b};var Xf="dialogopen",Yf="dialogclose",Zf=function(a,b){if(ma(b))b=new A(b,a);else b.target=b.target||a;return gf(l,b.type,false,b)};function $f(a,b){var c=v(b);if(c)c.style.visibility=a?"":"hidden"}
function ag(a,b){return function(c){if(!c)c=window.event;if(c&&!c.target)c.target=c.srcElement;b.call(a,c)}}
function bg(a,b,c){if(a.addEventListener)a.addEventListener(b,c,false);else a.attachEvent&&a.attachEvent("on"+b,c)}
function cg(a,b,c){if(a.removeEventListener)a.removeEventListener(b,c,false);else a.detachEvent&&a.detachEvent("on"+b,c)}
function dg(a){if(window.event){a.cancelBubble=true;a.returnValue=false}else if(a){a.cancelBubble=true;if(a.preventDefault){a.preventDefault();a.stopPropagation()}}}
var eg=[],fg=0;function gg(a){Nb(eg,a);fg||(fg=window.setInterval(hg,10))}
function ig(a){Rb(eg,a);eg.length==0&&jg()}
function jg(){fg&&window.clearInterval(fg);fg=0}
function hg(){var a=n();for(var b=0;b<eg.length;b++)eg[b](a)}
function kg(a,b){if(!(a&&b))return;Mc(a);y(a,b)}
function lg(a,b){var c=[],d=0,e=0,f=b||20,g=/[-.,?!\/\\#]/,h=-1;for(var i=0;i<a.length;i++){var j=a.charAt(i);if(j.search(/\s/)==0){d=0;continue}else if(j=="<"){while(j&&j!=">")j=a.charAt(++i);continue}if(d>=f){var k=a.substring(e,i);if(h>=e&&h<i){c.push(k.substring(0,h-e+1));d=i-h-1;e=h+1}else{c.push(a.substring(e,i));d=0;e=i}}if(j=="&")while(j&&j!=";")j=a.charAt(++i);else if(j.search(g)==0)h=i;d++}if(c.length){var o=xb?"<wbr />":"&shy;";c.push(a.substring(e));return c.join(o)}else return a}
var mg,ng,og;(function(){var a="(?:(?:(?:\\d{1,3}\\.){3}\\d{1,3})|(?:(?:[a-z0-9\\-]+\\.)+(?:aero|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|travel|[a-z]{2})\\b))",b="a-z0-9/~?&;=%@+$#_\\-",c="/(?:["+b+",:\\.]*["+b+"])?",d="\\b(?:https?://)?"+a+"(?::\\d+)?(?:"+c+")?",e="\\b[a-z0-9_.+\\-]+@"+a;mg=new RegExp("("+a+")","gi");ng=new RegExp("("+e+")","gi");og=new RegExp("("+d+")","gi")})();
function pg(a){var b=a.match(ng);return!!b&&b==a}
function qg(a){var b=a.split(/\s/);for(var c=0;c<b.length;c++){var d=b[c];if(d.search(ng)>=0){d=d.replace(ng,'<a href="mailto:$1">$1</a>');b[c]=d}else if(d.search(og)>=0){d=d.replace(og,'<a href="http://$1" rel="nofollow">$1</a>');d=d.replace(/http:\/\/(https?:\/\/)/,"$1");b[c]=d}}return b.join(" ")}
function rg(){this.t1=0;this.xw={};this.nL=m(this.aJ,this);bg(window,"unload",this.nL)}
rg.prototype.kf=function(a){a.__d=this.t1++;this.xw[a.__d]=a};
rg.prototype.mf=function(a){delete this.xw[a.__d]};
rg.prototype.aJ=function(){for(var a in this.xw){var b=this.xw[a];b&&b.Da&&b.Da()}cg(window,"unload",this.nL)};
function sg(){Zf(l,"gphotounload");Ye();_features.geotagging&&typeof GUnload!="undefined"&&GUnload()}
D(l,"unload",sg);function tg(a,b){var c=a.match(/(\{\w*\})/g);if(!c)return a;for(var d=0;d<c.length;d++){var e=c[d],f=new RegExp(e,"g"),g=e.substring(1,e.length-1);a=a.replace(f,b[g]!=undefined?b[g]:"")}return a}
if("a".replace(/(a)/g,function(){return"b"})=="b")tg=function(a,
b){return a.replace(/\{(\w*)\}/g,function(c,d){return b[d]!=undefined?b[d]:""})};
var ug=x("div");function vg(a,b){ug.innerHTML=tg(a,b);var c=ug.firstChild;c&&ug.removeChild(ug.firstChild);return c}
var wg={},xg={};function G(a){a=a||"_";var b=wg[a]||0,c=a||"";if(b)c+="_"+b;wg[a]=b+1;return c}
function yg(a,b){xg[a]=b}
function zg(a){xg[a]&&delete xg[a];if(wg[a]==1)wg[a]=0}
function Ag(a){var b=[];for(var c=1;c<arguments.length;c++)b.push(arguments[c]);b.push(a);xg[a]&&xg[a].apply(this,b)}
function Bg(a){var b=a.split(/\,/);if(b.length!=3)return null;var c=parseInt(b[0],10),d=parseInt(b[1],10),e=parseInt(b[2],10);if(c<1)return null;if(d<1||d>12)return null;var f=new Date(e,d-1,c);return f}
function Cg(a,b){window._loadDateTimeConstants();var c=tf(nf);return Lf(c.DATEFORMATS[b],a)}
function Dg(a,b){if(b<0||b>3)return a;var c=Bg(a);if(c==null)return a;return Cg(c,b)}
function Eg(a,b,c,d){if(d<0||d>3)return;if(typeof a!="number")return;if(typeof b!="number")return;if(typeof c!="number")return;if(a<1)return;if(b<1||b>12)return;var e=new Date(c,b-1,a);document.write(Cg(e,d))}
function Fg(){var a=Dc("div","lhcl_wrap");Cb(a,function(b){vc(b,"lhcl_wrap");Gg(b)})}
function Gg(a){Hg(a,0,"",0)}
function Hg(a,b,c,d){if(!a)return;if(b<1&&t){a.style.wordWrap="break-word";return}var e=-1;if(b>0){a.innerHTML="g";for(var f=1;f<b;f++)a.innerHTML=a.innerHTML+"<br />g";e=a.offsetHeight;a.innerHTML=c;if(a.offsetWidth<=d&&a.offsetHeight<=e)return}if(!a.hasChildNodes())return;var g=a.firstChild;if(g.nodeValue.length<1)return;var h=0,i=0,j=g.nodeValue.length,k=5,o=a.style.width;if(o&&o.length>0){var r=parseInt(o,10);k=Math.max(5,Math.floor(r/15))}while(h<j){var u=Math.min(g.nodeValue.length,i+k),C=g.nodeValue.substring(i,
u).search(/\s/);if(C>-1||u<j){var E=C>-1?C+1:u,O=C>-1?C+1:k,Ua=g.splitText(E);if(e>0){a.removeChild(Ua);if(a.offsetHeight>e){a.innerHTML=a.innerHTML+"&#8230;";h=j}else{var sc=x("wbr");a.appendChild(sc);a.appendChild(Ua);g=Ua;i=0;h+=O}}else{var sc=x("wbr");a.insertBefore(sc,Ua);g=Ua;i=0;h+=O}}else h=j}if(e>0)while(a.offsetHeight>e&&a.childNodes.length>2){a.removeChild(a.lastChild);a.removeChild(a.lastChild);a.innerHTML=a.innerHTML+"&#8230;"}}
Rf=function(a,b){return new Qf(Math.min(a.top,b.top),Math.max(a.right,b.right),Math.max(a.bottom,b.bottom),Math.min(a.left,b.left))};
function Ig(){Tf("_lh_backLink",location.pathname+location.search+location.hash)}
function Jg(){var a=v("lhid_flash_inter_frame");if(!a){a=vg('<iframe src="javascript:void 0" style="position:absolute; display: none; z-index:5;" id="lhid_flash_inter_frame" frameborder="0" scrolling="no"></iframe>',{});document.body.firstChild?document.body.insertBefore(a,document.body.firstChild):document.body.appendChild(a)}}
function Kg(a){var b=v("lhid_flash_inter_frame");if(b){if(document.body.firstChild!=b){document.body.removeChild(b);document.body.insertBefore(b,document.body.firstChild)}Lg(b,Mg(a));Ng(b,Og(a));H(b,true)}}
function Pg(){var a=v("lhid_flash_inter_frame");a&&H(a,false)}
;oe().tl(rd);var Qg=null,Rg=function(){Qg&&Qg.Ha(!Qg.jb())};var Sg="Radera den h\u00e4r videon",Tg="Ta bort den h\u00e4r bilden",Ug="Servern fungerar inte f\u00f6r tillf\u00e4llet. F\u00f6rs\u00f6k igen senare.",Vg="L\u00e4gg till en kommentar",Wg="Det uppstod ett fel vid kommunikationen med servern. Kontrollera anslutningen och f\u00f6rs\u00f6k igen.";var Xg=function(a){return a+" bildpunkter"};
var Yg=function(a){return"foton som har m\u00e4rkts med etiketten "+a},
Zg="Avbryt",$g="Ett fel har uppst\u00e5tt. F\u00f6rs\u00f6k igen senare.";var I=function(a){this.r=a};
p(I,ve);var ah=new Be(0,100);I.prototype.e=function(a,b,c,d,e){if(ka(b)){for(var f=0;f<b.length;f++)this.e(a,b[f],c,d,e);return}var g=D(a,b,c||this,d||false,e||this.r||this);if(this.Ra)this.Ra[g]=true;else if(this.Gd){this.Ra=ah.Sc();this.Ra[this.Gd]=true;this.Gd=null;this.Ra[g]=true}else this.Gd=g};
I.prototype.ka=function(a,b,c,d,e){if(!this.Gd&&!this.Ra)return;if(ka(b)){for(var f=0;f<b.length;f++)this.ka(a,b[f],c,d,e);return}var g=Ze(a,b,c||this,d||false,e||this.r||this);if(g){var h=g.key;We(h);if(this.Ra)fc(this.Ra,h);else if(this.Gd==h)this.Gd=null}};
I.prototype.ya=function(){if(this.Ra){for(var a in this.Ra){We(a);delete this.Ra[a]}ah.Je(this.Ra);this.Ra=null}else this.Gd&&We(this.Gd)};
I.prototype.C=function(){I.b.C.call(this);this.ya()};
I.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var J=function(){};
p(J,ve);J.prototype.sA=true;J.prototype.Fw=null;J.prototype.Pp=function(){return this.Fw};
J.prototype.yx=function(a){this.Fw=a};
J.prototype.addEventListener=function(a,b,c,d){D(this,a,b,c,d)};
J.prototype.removeEventListener=function(a,b,c,d){Ue(this,a,b,c,d)};
J.prototype.dispatchEvent=function(a){return hf(this,a)};
J.prototype.C=function(){J.b.C.call(this);Ye(this);this.Fw=null};var bh=function(a){J.call(this);this.g=a;var b=t?"propertychange":yb&&a.tagName=="TEXTAREA"?"keypress":"input";this.bw=D(this.g,b,this)};
p(bh,J);bh.prototype.handleEvent=function(a){var b=a.sm();if(b.type=="propertychange"&&b.propertyName=="value"||b.type=="input"||b.type=="keypress"){if(t){var c=b.srcElement;if(c!=Ac(c).activeElement)return}var d=new we(b);d.type="input";try{this.dispatchEvent(d)}finally{d.i()}}};
bh.prototype.C=function(){bh.b.C.call(this);We(this.bw);delete this.g};var ch=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
ch.prototype.qa=function(){return new ch(this.left,this.top,this.width,this.height)};
ch.prototype.jI=function(){var a=this.left+this.width,b=this.top+this.height;return new Qf(this.top,isNaN(a)?undefined:a,isNaN(b)?undefined:b,this.left)};
ch.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
var dh=function(a,b){if(a==b)return true;if(!a||!b)return false;return a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height};
ch.prototype.intersection=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top),e=Math.min(this.top+this.height,a.top+a.height);if(d<=e){this.left=b;this.top=d;this.width=c-b;this.height=e-d;return true}}return false};
var gh=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),f=Math.min(a.top+a.height,b.top+b.height);if(e<=f)return true}return false};
ch.prototype.intersects=function(a){return gh(this,a)};
ch.prototype.contains=function(a){return this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};var hh,K=function(a,b,c){ma(b)?ih(a,c,b):$b(b,ua(ih,a))},
ih=function(a,b,c){a.style[jh(c)]=b},
kh=function(a,b){var c=Ac(a);if(c.defaultView&&c.defaultView.getComputedStyle){var d=c.defaultView.getComputedStyle(a,"");if(d)return d[b]}return null};
var lh=function(a,b){return kh(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style[b]};
var Lg=function(a,b,c){var d,e;if(b instanceof ya){d=b.x;e=b.y}else{d=b;e=c}a.style.left=typeof d=="number"?Math.round(d)+"px":d;a.style.top=typeof e=="number"?Math.round(e)+"px":e},
mh=function(a){return new ya(a.offsetLeft,a.offsetTop)},
nh=function(a){var b;b=a?a.nodeType==9?a:Ac(a):Cc();if(t&&b.compatMode!="CSS1Compat")return b.body;return b.documentElement},
Mg=function(a){var b=Ac(a),c=xb&&b.getBoxObjectFor&&lh(a,"position")=="absolute"&&(a.style.top==""||a.style.left=="");if(typeof hh=="undefined")hh=nb&&!Ab("1.8.0.11");var d=new ya(0,0),e=nh(b);if(a==e)return d;var f=null,g;if(a.getBoundingClientRect&&!c){g=a.getBoundingClientRect();var h=Bc(b).zf();d.x=g.left+h.x;d.y=g.top+h.y}else if(b.getBoxObjectFor&&!c&&!hh){g=b.getBoxObjectFor(a);var i=b.getBoxObjectFor(e);d.x=g.screenX-i.screenX;d.y=g.screenY-i.screenY}else{f=a;do{d.x+=f.offsetLeft;d.y+=f.offsetTop;
if(yb&&lh(f,"position")=="fixed"){d.x+=b.body.scrollLeft;d.y+=b.body.scrollTop;break}f=f.offsetParent}while(f&&f!=a);if(wb||yb&&lh(a,"position")=="absolute")d.y-=b.body.offsetTop;f=a.offsetParent;while(f&&f!=b.body){d.x-=f.scrollLeft;if(!wb||f.tagName!="TR")d.y-=f.scrollTop;f=f.offsetParent}}if(xb&&a.getBoundingClientRect){var j=lh(a,"position");if(j=="static"||j=="relative"){d.x=Math.floor(d.x);d.y=Math.floor(d.y)}}return d};
var ph=function(a,b){var c=oh(a),d=oh(b);return new ya(c.x-d.x,c.y-d.y)},
oh=function(a){var b=new ya;if(a.nodeType==1)if(a.getBoundingClientRect){var c=a.getBoundingClientRect();b.x=c.left;b.y=c.top}else{var d=Bc(a).zf(),e=Mg(a);b.x=e.x-d.x;b.y=e.y-d.y}else{b.x=a.clientX;b.y=a.clientY}return b},
qh=function(a,b,c){var d=Mg(a);if(b instanceof ya){c=b.y;b=b.x}var e=b-d.x,f=c-d.y;Lg(a,a.offsetLeft+e,a.offsetTop+f)},
Ng=function(a,b,c){var d;if(b instanceof q){d=b.height;b=b.width}else{if(c==undefined)throw Error("missing height argument");d=c}a.style.width=typeof b=="number"?Math.round(b)+"px":b;a.style.height=typeof d=="number"?Math.round(d)+"px":d},
Og=function(a){if(lh(a,"display")!="none")return new q(a.offsetWidth,a.offsetHeight);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="";var f=a.offsetWidth,g=a.offsetHeight;b.display=c;b.position=e;b.visibility=d;return new q(f,g)},
rh=function(a){var b=Mg(a),c=Og(a);return new ch(b.x,b.y,c.width,c.height)},
jh=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
var sh=function(a,b){var c=a.style;if("opacity"in c)c.opacity=b;else if("MozOpacity"in c)c.MozOpacity=b;else if("filter"in c)c.filter="alpha(opacity="+b*100+")"},
th=function(a,b){var c=a.style;if(t)c.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+b+'", sizingMethod="crop")';else{c.backgroundImage="url("+b+")";c.backgroundPosition="top left";c.backgroundRepeat="no-repeat"}},
H=function(a,b){a.style.display=b?"":"none"};
var uh=function(a){return a?ma(a)||a.nodeType==3?true:Hb(a,uh):false},
vh=xb&&!Ab("1.9"),wh=function(a){return"rtl"==lh(a,"direction")},
xh=xb?"MozUserSelect":yb?"WebkitUserSelect":null,yh=function(a,b,c){var d=!c?a.getElementsByTagName("*"):null,e=xh;if(e){var f=b?"none":"";a.style[e]=f;if(d)for(var g=0,h;h=d[g];g++)h.style[e]=f}else if(t||wb){var f=b?"on":"";a.setAttribute("unselectable",f);if(d)for(var g=0,h;h=d[g];g++)h.setAttribute("unselectable",f)}};var zh=function(){};
zh.prototype.er=0;zh.prototype.nP=function(){return":"+(this.er++).toString(36)};
var Ah=new zh;var L=function(a){J.call(this);this.O=a||Bc();this.Un=Bh};
p(L,J);L.prototype.rS=Ah;var Bh=null,Ch="disable",Dh="enable",Eh="unhighlight",Fh="action",Gh="change",Hh="Component already rendered",Ih="Unable to set parent component",Jh=function(a,b){switch(a){case 1:return b?Ch:Dh;case 2:return b?"highlight":Eh;case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close";default:}throw Error("Invalid component state");};
L.prototype.Gb=null;L.prototype.O=null;L.prototype.Hb=false;L.prototype.g=null;L.prototype.Un=null;L.prototype.j=null;L.prototype.wa=null;L.prototype.pa=null;L.prototype.qe=null;L.prototype.Cy=null;L.prototype.N=function(){return this.Gb||(this.Gb=this.rS.nP())};
L.prototype.$r=function(a){if(this.wa&&this.wa.qe){fc(this.wa.qe,this.Gb);ic(this.wa.qe,a,this)}this.Gb=a};
L.prototype.f=function(){return this.g};
L.prototype.xc=function(a){this.g=a};
L.prototype.xl=function(a){if(this==a)throw Error(Ih);if(a&&this.wa&&this.wa.EB(this.Gb))throw Error(Ih);this.wa=a};
L.prototype.Ka=function(){return this.wa};
L.prototype.Pp=function(){return this.wa};
L.prototype.yx=function(){throw Error("Method not supported");};
L.prototype.la=function(){return this.Hb};
L.prototype.o=function(){this.g=this.O.createElement("div")};
L.prototype.U=function(a){this.Sn(a)};
L.prototype.Sn=function(a,b){if(this.Hb)throw Error(Hh);this.g||this.o();a?a.insertBefore(this.g,b||null):this.O.Mb().body.appendChild(this.g);if(!this.wa||this.wa.la())this.A()};
L.prototype.va=function(a){if(this.Hb)throw Error(Hh);else if(a&&this.mb(a)){this.Cy=true;if(!this.O||this.O.Mb()!=Ac(a))this.O=Bc(a);this.ra(a);this.A()}else throw Error("Invalid element to decorate");};
L.prototype.mb=function(){return true};
L.prototype.ra=function(a){this.g=a};
L.prototype.A=function(){this.Hb=true;this.Vd(function(a){!a.la()&&a.f()&&a.A()})};
L.prototype.D=function(){this.Vd(function(a){a.la()&&a.D()});
this.Hb=false};
L.prototype.C=function(){L.b.C.call(this);this.Hb&&this.D();this.Vd(function(a){a.i()});
!this.Cy&&this.g&&Oc(this.g);this.pa=null;this.qe=null;this.g=null;this.j=null;this.wa=null};
L.prototype.eb=function(){return this.j};
L.prototype.W=function(a){this.j=a};
L.prototype.ga=function(a,b){this.Jo(a,this.Ui(),b)};
L.prototype.Jo=function(a,b,c){if(a.Hb&&(c||!this.Hb))throw Error(Hh);if(b<0||b>this.Ui())throw Error("Child component index out of bounds");a.xl(this);if(!this.qe||!this.pa){this.qe={};this.pa=[]}ic(this.qe,a.N(),a);Pb(this.pa,a,b);if(c){this.g||this.o();var d=this.yf(b+1);a.Sn(this.Ja(),d?d.g:null)}else this.Hb&&!a.Hb&&a.g&&a.A()};
L.prototype.Ja=function(){return this.g};
L.prototype.Ok=function(){if(this.Un==null)this.Un=wh(this.Hb?this.g:this.O.Mb().body);return this.Un};
L.prototype.Ug=function(a){if(this.Hb)throw Error(Hh);this.Un=a};
L.prototype.wD=function(){return!!this.pa&&this.pa.length!=0};
L.prototype.Ui=function(){return this.pa?this.pa.length:0};
L.prototype.EB=function(a){return this.qe&&a?jc(this.qe,a)||null:null};
L.prototype.yf=function(a){return this.pa?this.pa[a]||null:null};
L.prototype.Vd=function(a,b){this.pa&&Cb(this.pa,a,b)};
L.prototype.Lk=function(a){return this.pa&&a?Bb(this.pa,a):-1};
L.prototype.removeChild=function(a,b){if(a){var c=ma(a)?a:a.N();a=this.EB(c);if(c&&a){fc(this.qe,c);Rb(this.pa,a);if(b){a.D();a.g&&Oc(a.g)}a.xl(null)}}if(!a)throw Error("Child is not in parent component");return a};
L.prototype.GV=function(a,b){return this.removeChild(this.yf(a),b)};
L.prototype.Qg=function(a){while(this.wD())this.GV(0,a)};var Kh=xb&&!Ab("1.9a"),Lh="activedescendant",Mh=function(a,b){if(xb){a.setAttribute("role",b);a.roleName=b}},
Nh=function(a,b,c){if(xb)Kh?a.setAttributeNS("http://www.w3.org/2005/07/aaa",b,c):a.setAttribute("aria-"+b,c)};var Oh=function(a,b,c){if(!t&&!(yb&&Ab("525")))return true;if(t&&!c&&(b==17||b==18))return false;if(a>=48&&a<=57)return true;if(a>=96&&a<=106)return true;if(a>=65&&a<=90)return true;if(a==27&&yb)return false;switch(a){case 13:case 27:case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return true;default:return false}},
Ph=function(a){if(a>=48&&a<=57)return true;if(a>=96&&a<=106)return true;if(a>=65&&a<=90)return true;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return true;default:return false}};var Qh=function(a){J.call(this);a&&this.ag(a)};
p(Qh,J);Qh.prototype.g=null;Qh.prototype.Cq=null;Qh.prototype.Rv=null;Qh.prototype.Dq=null;Qh.prototype.hn=-1;Qh.prototype.cn=-1;Qh.prototype.uE=0;var Rh={"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},Sh={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},Th={61:187,59:186},Uh=t||yb&&Ab("525");Qh.prototype.gj=function(a){if(Uh&&!Oh(a.keyCode,this.hn,a.shiftKey))this.handleEvent(a);else this.cn=xb&&a.keyCode in Th?Th[a.keyCode]:a.keyCode};
Qh.prototype.gR=function(){this.hn=-1};
Qh.prototype.handleEvent=function(a){var b=a.sm(),c,d;if(t&&a.type==Ae){c=this.cn;d=c!=13&&c!=27?b.keyCode:0}else if(yb&&a.type==Ae){c=this.cn;d=b.charCode>=0&&b.charCode<63232&&Ph(c)?b.charCode:0}else if(wb){c=this.cn;d=Ph(c)?b.keyCode:0}else{c=b.keyCode||this.cn;d=b.charCode||0;if(sb&&d==63&&!c)c=191}var e=c,f=b.keyIdentifier;if(c)if(c>=63232&&c in Rh)e=Rh[c];else{if(c==25&&a.shiftKey)e=9}else if(f&&f in Sh)e=Sh[f];var g=e==this.hn;this.hn=e;if(yb){if(g&&b.timeStamp-this.uE<50)return;this.uE=b.timeStamp}var h=
new Vh(e,d,g,b);try{this.dispatchEvent(h)}finally{h.i()}};
Qh.prototype.ag=function(a){this.Dq&&this.detach();this.g=a;this.Cq=D(this.g,Ae,this);this.Rv=D(this.g,bf,this.gj,false,this);this.Dq=D(this.g,"keyup",this.gR,false,this)};
Qh.prototype.detach=function(){if(this.Cq){We(this.Cq);We(this.Rv);We(this.Dq);this.Cq=null;this.Rv=null;this.Dq=null}this.g=null;this.hn=-1};
Qh.prototype.C=function(){Qh.b.C.call(this);this.detach()};
var Vh=function(a,b,c,d){we.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c};
p(Vh,we);var Wh=function(a){J.call(this);this.g=a;var b=xb?"DOMMouseScroll":"mousewheel";this.bw=D(this.g,b,this)};
p(Wh,J);Wh.prototype.handleEvent=function(a){var b=0,c=a.sm();if(c.type=="mousewheel"){b=-c.wheelDelta/40;if(yb)b/=3}else b=c.detail;if(b>100)b=3;else if(b<-100)b=-3;var d=new Xh(b,c);try{this.dispatchEvent(d)}finally{d.i()}};
Wh.prototype.C=function(){Wh.b.C.call(this);We(this.bw);delete this.bw};
var Xh=function(a,b){we.call(this,b);this.type="mousewheel";this.detail=a};
p(Xh,we);var Yh=function(a,b){a=Number(a);b=Number(b);this.start=a<b?a:b;this.end=a<b?b:a};
Yh.prototype.qa=function(){return new Yh(this.start,this.end)};
Yh.prototype.toString=function(){return"["+this.start+", "+this.end+"]"};var Zh=function(a,b,c){return Math.min(Math.max(a,b),c)},
$h=function(a,b){var c=a%b;return c*b<0?c+b:c};var bi=function(a,b){J.call(this);this.Nk=a||1;this.Bs=b||ai;this.wz=m(this.OZ,this);this.kn=n()};
p(bi,J);bi.prototype.enabled=false;var ai=l.window,ci=0.8;bi.prototype.Ta=null;bi.prototype.setInterval=function(a){this.Nk=a;if(this.Ta&&this.enabled){this.stop();this.start()}else this.Ta&&this.stop()};
bi.prototype.OZ=function(){if(this.enabled){var a=n()-this.kn;if(a>0&&a<this.Nk*ci){this.Ta=this.Bs.setTimeout(this.wz,this.Nk-a);return}this.EM();if(this.enabled){this.Ta=this.Bs.setTimeout(this.wz,this.Nk);this.kn=n()}}};
bi.prototype.EM=function(){this.dispatchEvent("tick")};
bi.prototype.start=function(){this.enabled=true;if(!this.Ta){this.Ta=this.Bs.setTimeout(this.wz,this.Nk);this.kn=n()}};
bi.prototype.stop=function(){this.enabled=false;if(this.Ta){this.Bs.clearTimeout(this.Ta);this.Ta=null}};
bi.prototype.C=function(){bi.b.C.call(this);this.stop();delete this.Bs};
var di=function(a,b,c){if(oa(a)){if(c)a=m(a,c)}else if(a&&typeof a.handleEvent=="function")a=m(a.handleEvent,a);else throw Error("Invalid listener argument");return ai.setTimeout(a,b||0)},
ei=function(a){ai.clearTimeout(a)};var fi=function(a,b,c,d){J.call(this);if(!ka(a)||!ka(b)){throw Error("Start and end parameters must be arrays");return}if(a.length!=b.length){throw Error("Start and end points must be the same length");return}this.Oj=a;this.bB=b;this.gm=c;this.IJ=d;this.ck=[]};
p(fi,J);var gi="begin",hi="animate",ii={},ji=null,ki=function(){ai.clearTimeout(ji);var a=n();for(var b in ii)ii[b].tA(a);ji=ec(ii)?null:ai.setTimeout(ki,20)},
li=function(a){var b=sa(a);b in ii||(ii[b]=a);ji||(ji=ai.setTimeout(ki,20))},
mi=function(a){var b=sa(a);delete ii[b];if(ji&&ec(ii)){ai.clearTimeout(ji);ji=null}};
fi.prototype.Ab=0;fi.prototype.vB=0;fi.prototype.He=0;fi.prototype.Zc=null;fi.prototype.cB=null;fi.prototype.Tv=null;fi.prototype.play=function(a){if(a||this.Ab==0){this.He=0;this.ck=this.Oj}else if(this.Ab==1)return false;mi(this);this.Zc=n();if(this.Ab==-1)this.Zc-=this.gm*this.He;this.cB=this.Zc+this.gm;this.Tv=this.Zc;this.He||this.rf(gi);this.rf("play");this.Ab==-1&&this.rf("resume");this.Ab=1;li(this);this.tA(this.Zc);return true};
fi.prototype.stop=function(a){mi(this);this.Ab=0;if(a)this.He=1;this.ny(this.He);this.rf("stop");this.rf("end")};
fi.prototype.pause=function(){if(this.Ab==1){mi(this);this.Ab=-1;this.rf("pause")}};
fi.prototype.C=function(){this.Ab!=0&&this.stop();this.rf("destroy");fi.b.C.call(this)};
fi.prototype.uM=function(){this.i()};
fi.prototype.tA=function(a){this.He=(a-this.Zc)/(this.cB-this.Zc);if(this.He>=1)this.He=1;this.vB=1000/(a-this.Tv);this.Tv=a;oa(this.IJ)?this.ny(this.IJ(this.He)):this.ny(this.He);if(this.He==1){this.Ab=0;mi(this);this.rf("finish");this.rf("end")}else this.Ab==1&&this.rf(hi)};
fi.prototype.ny=function(a){this.ck=new Array(this.Oj.length);for(var b=0;b<this.Oj.length;b++)this.ck[b]=(this.bB[b]-this.Oj[b])*a+this.Oj[b]};
fi.prototype.rf=function(a){this.dispatchEvent(new ni(a,this))};
var ni=function(a,b){A.call(this,a);this.coords=b.ck;this.x=b.ck[0];this.y=b.ck[1];this.z=b.ck[2];this.duration=b.gm;this.progress=b.He;this.fps=b.vB;this.state=b.Ab;this.anim=b};
p(ni,A);ni.prototype.eA=function(){return Fb(this.coords,Math.round)};var oi=function(a,b,c,d,e){fi.call(this,b,c,d,e);this.element=a};
p(oi,fi);var pi=function(a,b,c){oi.apply(this,arguments);if(b.length!=2||c.length!=2){throw Error("Start and end points must be 2D");return}var d=[gi,hi,"end"];D(this,d,this.zU,false,this)};
p(pi,oi);pi.prototype.zU=function(a){this.element.style.left=Math.round(a.x)+"px";this.element.style.top=Math.round(a.y)+"px"};
var qi=function(a,b,c,d){var e=[a.offsetLeft,a.offsetTop];D(this,gi,this.lY,false,this);pi.call(this,a,e,b,c,d)};
p(qi,pi);qi.prototype.lY=function(){this.Oj=[this.element.offsetLeft,this.element.offsetTop]};
var ri=function(a,b,c){oi.apply(this,arguments);if(b.length!=2||c.length!=2){throw Error("Start and end points must be 2D");return}var d=[gi,hi,"end"];D(this,d,this.Ke,false,this);this.fe=Math.max(this.bB[0],this.Oj[0]);this.Wc=Math.max(this.bB[1],this.Oj[1])};
p(ri,oi);ri.prototype.Ke=function(a){this.kL(Math.round(a.x),Math.round(a.y),this.fe,this.Wc);this.element.style.width=Math.round(a.x)+"px";this.element.style.marginLeft=Math.round(a.x)-this.fe+"px";this.element.style.marginTop=Math.round(a.y)-this.Wc+"px"};
ri.prototype.kL=function(a,b,c,d){this.element.style.clip="rect("+(d-b)+"px "+c+"px "+d+"px "+(c-a)+"px)"};
var si=function(a,b,c){oi.apply(this,arguments);if(b.length!=2||c.length!=2){throw Error("Start and end points must be 2D");return}var d=[gi,hi,"end"];D(this,d,this.vW,false,this)};
p(si,oi);si.prototype.vW=function(a){this.element.scrollLeft=Math.round(a.x);this.element.scrollTop=Math.round(a.y)};
var ti=function(a,b,c){oi.apply(this,arguments);if(b.length!=2||c.length!=2){throw Error("Start and end points must be 2D");return}var d=[gi,hi,"end"];D(this,d,this.Ke,false,this)};
p(ti,oi);ti.prototype.Ke=function(a){this.element.style.width=Math.round(a.x)+"px";this.element.style.height=Math.round(a.y)+"px"};
var ui=function(a,b,c,d,e){oi.call(this,a,[b],[c],d,e);var f=[gi,hi,"end"];D(this,f,this.hW,false,this)};
p(ui,oi);ui.prototype.hW=function(a){this.element.style.width=Math.round(a.x)+"px"};
var vi=function(a,b,c,d,e){oi.call(this,a,[b],[c],d,e);var f=[gi,hi,"end"];D(this,f,this.gW,false,this)};
p(vi,oi);vi.prototype.gW=function(a){this.element.style.height=Math.round(a.x)+"px"};
var wi=function(a,b,c,d,e){if(na(b))b=[b];if(na(c))c=[c];oi.call(this,a,b,c,d,e);if(b.length!=1||c.length!=1){throw Error("Start and end points must be 1D");return}var f=[gi,hi,"end"];D(this,f,this.eN,false,this)};
p(wi,oi);wi.prototype.eN=function(a){sh(this.element,a.x)};
wi.prototype.show=function(){this.element.style.display=""};
wi.prototype.hide=function(){this.element.style.display="none"};
var xi=function(a,b,c){wi.call(this,a,1,0,b,c)};
p(xi,wi);var yi=function(a,b,c){wi.call(this,a,0,1,b,c)};
p(yi,wi);var zi=function(a,b,c){wi.call(this,a,1,0,b,c);D(this,gi,this.show,false,this);D(this,"end",this.hide,false,this)};
p(zi,wi);var Ai=function(a,b,c){wi.call(this,a,0,1,b,c);D(this,gi,this.show,false,this)};
p(Ai,wi);var Bi=function(a,b,c){oi.apply(this,arguments);if(b.length!=3||c.length!=3){throw Error("Start and end points must be 3D");return}var d=[gi,hi,"end"];D(this,d,this.Tr,false,this)};
p(Bi,oi);Bi.prototype.Tr=function(a){var b="rgb("+a.eA().join(",")+")";this.element.style.backgroundColor=b};
var Ci=function(a,b,c){oi.apply(this,arguments);if(b.length!=3||c.length!=3){throw Error("Start and end points must be 3D");return}var d=[gi,hi,"end"];D(this,d,this.Tr,false,this)};
p(Ci,oi);Ci.prototype.Tr=function(a){var b="rgb("+a.eA().join(",")+")";this.element.style.color="rgb("+b+")"};var Di=function(a,b,c){this.target=a;this.handle=b||a;this.limits=c||new ch;this.Kb=a.ownerDocument||a.document;this.qc=Jc(this.Kb);D(this.handle,F,this.Zg,false,this)};
p(Di,J);var Ei="beforedrag";Di.prototype.screenX=0;Di.prototype.screenY=0;Di.prototype.YH=0;Di.prototype.ZH=0;Di.prototype.dm=0;Di.prototype.em=0;Di.prototype.Ia=true;Di.prototype.Li=false;Di.prototype.LD=0;Di.prototype.wU=0;Di.prototype.xu=function(){return this.Ia};
Di.prototype.Ha=function(a){this.Ia=a};
Di.prototype.C=function(){Di.b.C.call(this);Ue(this.handle,F,this.Zg,false,this);Ue(this.Kb,af,this.pw,false,this);Ue(this.Kb,$e,this.Bh,false,this);delete this.target;delete this.handle};
Di.prototype.Zg=function(a){if(this.Ia&&!this.Li){if(this.LD==0){this.XD(a);this.Li&&a.preventDefault()}D(this.Kb,af,this.pw,false,this);D(this.Kb,$e,this.Bh,false,this);this.screenX=this.YH=a.screenX;this.screenY=this.ZH=a.screenY;this.dm=this.target.offsetLeft;this.em=this.target.offsetTop;this.pageScroll=Bc(this.Kb).zf();this.wU=n()}};
Di.prototype.XD=function(a){var b=this.dispatchEvent(new Fi("start",this,a.clientX,a.clientY,a));if(b!==false)this.Li=true};
Di.prototype.Bh=function(a){Ue(this.Kb,af,this.pw,false,this);Ue(this.Kb,$e,this.Bh,false,this);if(this.Li){this.Li=false;var b=this.xE(this.dm),c=this.yE(this.em);this.dispatchEvent(new Fi("end",this,a.clientX,a.clientY,a,b,c))}};
Di.prototype.pw=function(a){if(this.Ia){var b=a.screenX-this.screenX,c=a.screenY-this.screenY,d=Bc(this.Kb).zf();b+=d.x-this.pageScroll.x;c+=d.y-this.pageScroll.y;this.dm+=b;this.em+=c;var e=this.xE(this.dm),f=this.yE(this.em);this.screenX=a.screenX;this.screenY=a.screenY;this.pageScroll=d;if(!this.Li){var g=this.YH-this.screenX,h=this.ZH-this.screenY,i=g*g+h*h;i>this.LD&&this.XD(a)}if(this.Li){var j=this.dispatchEvent(new Fi(Ei,this,a.clientX,a.clientY,a,e,f));if(j!==false){this.iM(e,f);this.dispatchEvent(new Fi("drag",
this,a.clientX,a.clientY,a,e,f));a.preventDefault()}}}};
Di.prototype.xE=function(a){var b=this.limits,c=typeof b.left!="undefined"?b.left:null,d=typeof b.width!="undefined"?b.width:0,e=c!=null?c+d:Infinity,f=c!=null?c:-Infinity;return Math.min(e,Math.max(f,a))};
Di.prototype.yE=function(a){var b=this.limits,c=typeof b.top!="undefined"?b.top:null,d=typeof b.height!="undefined"?b.height:0,e=c!=null?c+d:Infinity,f=c!=null?c:-Infinity;return Math.min(e,Math.max(f,a))};
Di.prototype.iM=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};
var Fi=function(a,b,c,d,e,f,g){A.call(this,a);this.type=a;this.clientX=c;this.clientY=d;this.browserEvent=e;this.left=ba(f)?f:b.dm;this.top=ba(g)?g:b.em;this.dragger=b};
p(Fi,A);var Gi=function(){J.call(this)};
p(Gi,J);Gi.prototype.ec=0;Gi.prototype.cf=0;Gi.prototype.ge=100;Gi.prototype.Ad=0;Gi.prototype.si=1;Gi.prototype.Fd=false;Gi.prototype.wj=false;Gi.prototype.fs=function(a){this.wj=a};
Gi.prototype.fs=function(a){this.wj=a};
Gi.prototype.hb=function(a){a=this.Rg(a);if(this.ec!=a){this.ec=a+this.Ad>this.ge?this.ge-this.Ad:a<this.cf?this.cf:a;!this.Fd&&!this.wj&&this.dispatchEvent(Gh)}};
Gi.prototype.sa=function(){return this.Rg(this.ec)};
Gi.prototype.Jj=function(a){a=this.Rg(a);if(this.Ad!=a){this.Ad=a<0?0:this.ec+a>this.ge?this.ge-this.ec:a;!this.Fd&&!this.wj&&this.dispatchEvent(Gh)}};
Gi.prototype.sg=function(){return this.oW(this.Ad)};
Gi.prototype.fo=function(a){if(this.cf!=a){var b=this.Fd;this.Fd=true;this.cf=a;if(a+this.Ad>this.ge)this.Ad=this.ge-this.cf;a>this.ec&&this.hb(a);if(a>this.ge){this.Ad=0;this.vl(a);this.hb(a)}this.Fd=b;!this.Fd&&!this.wj&&this.dispatchEvent(Gh)}};
Gi.prototype.Cc=function(){return this.Rg(this.cf)};
Gi.prototype.vl=function(a){a=this.Rg(a);if(this.ge!=a){var b=this.Fd;this.Fd=true;this.ge=a;a<this.ec&&this.hb(a-this.Ad);if(a<this.cf){this.Ad=0;this.fo(a);this.hb(this.ge)}if(a<this.cf+this.Ad)this.Ad=this.ge-this.cf;if(a<this.ec+this.Ad)this.Ad=this.ge-this.ec;this.Fd=b;!this.Fd&&!this.wj&&this.dispatchEvent(Gh)}};
Gi.prototype.Bc=function(){return this.Rg(this.ge)};
Gi.prototype.ke=function(a){if(this.si!=a){this.si=a;var b=this.Fd;this.Fd=true;this.vl(this.Bc());this.Jj(this.sg());this.hb(this.sa());this.Fd=b;!this.Fd&&!this.wj&&this.dispatchEvent(Gh)}};
Gi.prototype.Rg=function(a){if(this.si==null)return a;return this.cf+Math.round((a-this.cf)/this.si)*this.si};
Gi.prototype.oW=function(a){if(this.si==null)return a;return Math.round(a/this.si)*this.si};var M=function(a){L.call(this,a);this.Wa=new Gi;this.p=new I(this);this.p.e(this.Wa,Gh,this.xR)};
p(M,L);var Hi="vertical";M.prototype.fb="horizontal";M.prototype.Fv=false;M.prototype.dF=false;M.prototype.vz=10;M.prototype.vn=0;M.prototype.$=fa;M.prototype.o=function(){M.b.o.call(this);var a=this.O.o("div",{className:this.$(this.fb)});this.ra(a)};
M.prototype.Ot=fa;M.prototype.ra=function(a){M.b.ra.call(this,a);uc(a,this.$(this.fb));this.Ot();this.SW()};
M.prototype.A=function(){M.b.A.call(this);this.MI=new Di(this.dc);this.w0=new Di(this.we);this.wb=new Qh(this.f());this.rw=new Wh(this.f());var a=this.p=new I(this);a.e(this.MI,Ei,this.bD);a.e(this.w0,Ei,this.bD);a.e(this.wb,"key",this.gj);a.e(this.f(),F,this.Mm);a.e(this.rw,"mousewheel",this.rR);this.f().tabIndex=0;this.xo()};
M.prototype.D=function(){M.b.D.call(this);this.p.ya()};
M.prototype.bD=function(a){var b=a.dragger==this.MI?this.dc:this.we,c;if(this.fb==Hi){var d=this.f().clientHeight-b.offsetHeight;c=(d-a.top)/d*(this.Bc()-this.Cc())+this.Cc()}else{var e=this.f().clientWidth-b.offsetWidth;c=a.left/e*(this.Bc()-this.Cc())+this.Cc()}c=a.dragger==this.MI?Math.min(Math.max(c,this.Cc()),this.sa()+this.sg()):Math.min(Math.max(c,this.sa()),this.Bc());this.io(b,c);a.preventDefault()};
M.prototype.gj=function(a){var b=true;switch(a.keyCode){case 36:this.qt(this.Cc());break;case 35:this.qt(this.Bc());break;case 33:this.xn(this.Jh());break;case 34:this.xn(-this.Jh());break;case 37:case 40:this.xn(a.shiftKey?-this.Jh():-this.$u());break;case 39:case 38:this.xn(a.shiftKey?this.Jh():this.$u());break;default:b=false}b&&a.preventDefault()};
M.prototype.Mm=function(a){this.f().focus&&this.f().focus();if(!Uc(this.dc,a.target)&&!Uc(this.we,a.target))this.dF?this.qt(this.TC(a)):this.kZ(a)};
M.prototype.rR=function(a){var b=a.detail>0?-1:1;this.xn(b*this.$u());a.preventDefault()};
M.prototype.kZ=function(a){this.Px(a);this.gf=this.FB(this.TC(a));this.vS=this.fb==Hi?this.Uv<this.gf.offsetTop:this.Uv>this.gf.offsetLeft+this.gf.offsetWidth;var b=Ac(this.f());this.p.e(b,$e,this.kD,true);this.p.e(this.f(),af,this.Px);if(!this.mj){this.mj=new bi(200);this.p.e(this.mj,"tick",this.pD)}this.pD();this.mj.start()};
M.prototype.pD=function(){var a;if(this.fb==Hi){var b=this.Uv,c=this.gf.offsetTop;if(this.vS){if(b<c)a=this.Qh(this.gf)+this.Jh()}else{var d=this.gf.offsetHeight;if(b>c+d)a=this.Qh(this.gf)-this.Jh()}}else{var e=this.Uv,f=this.gf.offsetLeft;if(this.vS){var g=this.gf.offsetWidth;if(e>f+g)a=this.Qh(this.gf)+this.Jh()}else if(e<f)a=this.Qh(this.gf)-this.Jh()}ba(a)&&this.io(this.gf,a)};
M.prototype.kD=function(){this.mj&&this.mj.stop();var a=Ac(this.f());this.p.ka(a,$e,this.kD,true);this.p.ka(this.f(),af,this.Px)};
M.prototype.Ru=function(a){var b=ph(a,this.f());return this.fb==Hi?b.y:b.x};
M.prototype.Px=function(a){this.Uv=this.Ru(a)};
M.prototype.TC=function(a){var b=this.Cc(),c=this.Bc();if(this.fb==Hi){var d=this.dc.offsetHeight,e=this.f().clientHeight-d,f=this.Ru(a)-d/2;return(c-b)*(e-f)/e+b}else{var g=this.dc.offsetWidth,h=this.f().clientWidth-g,i=this.Ru(a)-g/2;return(c-b)*i/h+b}};
M.prototype.Qh=function(a){if(a==this.dc)return this.Wa.sa();else if(a==this.we)return this.Wa.sa()+this.Wa.sg();else throw Error("Illegal thumb element. Neither minThumb nor maxThumb");};
M.prototype.xn=function(a){var b=this.Qh(this.dc)+a,c=this.Qh(this.we)+a;b=Zh(b,this.Cc(),this.Bc()-this.vn);c=Zh(c,this.Cc()+this.vn,this.Bc());this.zH(b,c-b)};
M.prototype.io=function(a,b){var c=null;if(a==this.we&&b<=this.Wa.Bc()&&b>=this.Wa.sa()+this.vn)c=b-this.Wa.sa();var d=c||this.Wa.sg();if(a==this.dc&&b>=this.Cc()&&b<=this.Wa.sa()+d-this.vn){var e=d-(b-this.Wa.sa());if(this.Wa.Rg(b)+this.Wa.Rg(e)==this.Wa.Rg(b+e)){this.zH(b,e);c=null}}c!=null&&this.Wa.Jj(c)};
M.prototype.zH=function(a,b){if(this.Cc()<=a&&a<=this.Bc()-b&&this.vn<=b&&b<=this.Bc()-a){if(a==this.sa()&&b==this.sg())return;this.Wa.fs(true);this.Wa.Jj(0);this.Wa.hb(a);this.Wa.Jj(b);this.Wa.fs(false);this.xo();this.dispatchEvent(Gh)}};
M.prototype.Cc=function(){return this.Wa.Cc()};
M.prototype.fo=function(a){this.Wa.fo(a)};
M.prototype.Bc=function(){return this.Wa.Bc()};
M.prototype.vl=function(a){this.Wa.vl(a)};
M.prototype.FB=function(a){return a<=this.Wa.sa()+this.Wa.sg()/2?this.dc:this.we};
M.prototype.xR=function(){this.xo();this.uI();this.dispatchEvent(Gh)};
M.prototype.xo=function(){if(this.dc&&!this.Fv){var a=this.Xu(this.Qh(this.dc)),b=this.Xu(this.Qh(this.we));if(this.fb==Hi){this.dc.style.top=a.y+"px";this.we.style.top=b.y+"px"}else{this.dc.style.left=a.x+"px";this.we.style.left=b.x+"px"}}};
M.prototype.Xu=function(a){var b=new ya;if(this.dc){var c=this.Cc(),d=this.Bc(),e=(a-c)/(d-c);if(this.fb==Hi){var f=this.dc.offsetHeight,g=this.f().clientHeight-f,h=Math.round(e*g);b.y=g-h}else{var i=this.f().clientWidth-this.dc.offsetWidth,j=Math.round(e*i);b.x=j}}return b};
M.prototype.qt=function(a){a=Math.min(this.Bc(),Math.max(a,this.Cc()));this.kp&&this.kp.stop(true);var b,c=this.FB(a),d=this.Xu(a);b=this.fb==Hi?[c.offsetLeft,d.y]:[d.x,c.offsetTop];var e=new qi(c,b,100);this.kp=e;this.p.e(e,"end",this.XM);this.Fv=true;this.io(c,a);e.play(false)};
M.prototype.XM=function(){this.Fv=false};
M.prototype.gs=function(a){if(this.fb!=a){var b=this.$(this.fb),c=this.$(a);this.fb=a;if(this.f()){wc(this.f(),b,c);this.dc.style.left=this.dc.style.top="";this.we.style.left=this.we.style.top="";this.xo()}}};
M.prototype.Ak=function(){return this.fb};
M.prototype.C=function(){M.b.C.call(this);this.mj&&this.mj.i();delete this.mj;this.kp&&this.kp.i();this.p.i();delete this.p;delete this.kp;delete this.dc;this.Wa.i();if(this.wb){this.wb.i();delete this.wb}if(this.rw){this.rw.i();delete this.rw}};
M.prototype.Jh=function(){return this.vz};
M.prototype.YW=function(a){this.vz=a};
M.prototype.qI=1;M.prototype.$u=function(){return this.qI};
M.prototype.vY=function(a){this.qI=a};
M.prototype.ke=function(a){this.Wa.ke(a)};
M.prototype.SX=function(a){this.dF=a};
M.prototype.sa=function(){return this.Wa.sa()};
M.prototype.hb=function(a){this.io(this.dc,a)};
M.prototype.sg=function(){return this.Wa.sg()};
M.prototype.Jj=function(a){this.io(this.we,this.Wa.sa()+a)};
M.prototype.Y=function(a){H(this.f(),a);a&&this.xo()};
M.prototype.SW=function(){Mh(this.f(),"slider");this.uI()};
M.prototype.uI=function(){var a=this.f();if(a){Nh(a,"valuemin",this.Cc());Nh(a,"valuemax",this.Bc());Nh(a,"valuenow",this.sa())}};var Ii=function(a){M.call(this,a);this.Wa.Jj(0)};
p(Ii,M);var Ji="goog-slider-thumb";Ii.prototype.$=function(a){return"goog-slider-"+a};
Ii.prototype.Ot=function(){var a=this.f(),b=Xc(a,function(c){return c.nodeType==1&&Lb(tc(c),Ji)});
if(!b){b=this.aM();a.appendChild(b)}this.dc=b;this.we=this.dc};
Ii.prototype.aM=function(){var a=this.O.o("div",{"class":Ji});Mh(a,"button");return a};var Ki=function(a,b,c){J.call(this);this.Mi=v(a);this.r0=v(b);this.xp=c==true;this.Mi.tabIndex=0;D(this.Mi,B,this.HU,false,this);D(this.Mi,bf,this.IU,false,this);this.Yr(this.xp)};
p(Ki,J);Ki.prototype.C=function(){Ye(this.Mi);Ki.b.C.call(this)};
Ki.prototype.expand=function(){this.Yr(true)};
Ki.prototype.collapse=function(){this.Yr(false)};
Ki.prototype.kI=function(){this.Yr(!this.xp)};
Ki.prototype.Yr=function(a){this.r0.style.display=a?"":"none";this.j_(a);this.xp=a;this.dispatchEvent(new Li("toggle",this,this.xp))};
Ki.prototype.VS=function(){return this.xp};
Ki.prototype.j_=function(a){if(a){vc(this.Mi,"goog-zippy-collapsed");uc(this.Mi,"goog-zippy-expanded")}else{vc(this.Mi,"goog-zippy-expanded");uc(this.Mi,"goog-zippy-collapsed")}};
Ki.prototype.IU=function(a){if(a.keyCode==13||a.keyCode==32){this.kI();a.preventDefault();a.stopPropagation()}};
Ki.prototype.HU=function(){this.kI()};
var Li=function(a,b,c){A.call(this,a,b);this.expanded=c};
p(Li,A);var Mi=function(a,b,c){this.AE=a;this.Nk=b||0;this.r=c;this.ud=m(this.LM,this)};
p(Mi,ve);Mi.prototype.Gb=0;Mi.prototype.C=function(){Mi.b.C.call(this);this.stop();delete this.AE;delete this.r};
Mi.prototype.start=function(a){this.stop();this.Gb=di(this.ud,ba(a)?a:this.Nk)};
Mi.prototype.stop=function(){this.Jf()&&ei(this.Gb);this.Gb=0};
Mi.prototype.Jf=function(){return this.Gb!=0};
Mi.prototype.LM=function(){this.Gb=0;this.AE&&this.AE.call(this.r)};var N=function(a,b){var c;if(a instanceof N){this.Kj(b==null?a.LO():b);this.Bx(a.FP());this.Dx(a.bQ());this.mx(a.uu());this.Ax(a.Ou());this.ho(a.Oh());this.yl(a.Ck().qa());this.ox(a.dC())}else if(a&&(c=String(a).match(Ni()))){this.Kj(!!b);this.Bx(c[1],true);this.Dx(c[2],true);this.mx(c[3],true);this.Ax(c[4]);this.ho(c[5],true);this.yl(c[6]);this.ox(c[7],true)}else{this.Kj(!!b);this.Ld=new Oi(null,this,this.Gf)}};
N.prototype.ki="";N.prototype.zo="";N.prototype.fm="";N.prototype.hl=null;N.prototype.Bj="";N.prototype.mm="";N.prototype.gT=false;N.prototype.Gf=false;N.prototype.toString=function(){if(this.td)return this.td;var a=[];this.ki&&a.push(Pi(this.ki,Qi),":");if(this.fm){a.push("//");this.zo&&a.push(Pi(this.zo,Qi),"@");a.push(Ri(this.fm));this.hl!=null&&a.push(":",String(this.Ou()))}this.Bj&&a.push(Pi(this.Bj,Si));var b=String(this.Ld);b&&a.push("?",b);this.mm&&a.push("#",Pi(this.mm,Ti));return this.td=
a.join("")};
N.prototype.qa=function(){return Ui(this.ki,this.zo,this.fm,this.hl,this.Bj,this.Ld.qa(),this.mm,this.Gf)};
N.prototype.FP=function(){return this.ki};
N.prototype.Bx=function(a,b){this.Ch();delete this.td;this.ki=b?a?decodeURIComponent(a):"":a;if(this.ki)this.ki=this.ki.replace(/:$/,"");return this};
N.prototype.bQ=function(){return this.zo};
N.prototype.Dx=function(a,b){this.Ch();delete this.td;this.zo=b?a?decodeURIComponent(a):"":a;return this};
N.prototype.uu=function(){return this.fm};
N.prototype.mx=function(a,b){this.Ch();delete this.td;this.fm=b?a?decodeURIComponent(a):"":a;return this};
N.prototype.Ou=function(){return this.hl};
N.prototype.Ax=function(a){this.Ch();delete this.td;if(a){a=Number(a);if(isNaN(a)||a<0)throw Error("Bad port number "+a);this.hl=a}else this.hl=null;return this};
N.prototype.WR=function(){return this.hl!=null};
N.prototype.Oh=function(){return this.Bj};
N.prototype.ho=function(a,b){this.Ch();delete this.td;this.Bj=b?a?decodeURIComponent(a):"":a;return this};
N.prototype.yl=function(a){this.Ch();delete this.td;if(a instanceof Oi){this.Ld=a;this.Ld.oa=this;this.Ld.Kj(this.Gf)}else this.Ld=new Oi(a,this,this.Gf);return this};
N.prototype.xg=function(){return this.Ld.toString()};
N.prototype.Ck=function(){return this.Ld};
N.prototype.ua=function(a,b){this.Ch();delete this.td;this.Ld.X(a,b);return this};
N.prototype.ab=function(a){return this.Ld.get(a)};
N.prototype.dC=function(){return this.mm};
N.prototype.ox=function(a,b){this.Ch();delete this.td;this.mm=b?a?decodeURIComponent(a):"":a;return this};
N.prototype.Ch=function(){if(this.gT)throw Error("Tried to modify a read-only Uri");};
N.prototype.Kj=function(a){this.Gf=a;this.Ld&&this.Ld.Kj(a)};
N.prototype.LO=function(){return this.Gf};
var Vi=function(a,b){return a instanceof N?a.qa():new N(a,b)},
Ui=function(a,b,c,d,e,f,g,h){var i=new N(null,h);a&&i.Bx(a);b&&i.Dx(b);c&&i.mx(c);d&&i.Ax(d);e&&i.ho(e);f&&i.yl(f);g&&i.ox(g);return i};
var Ri=function(a){if(ma(a))return encodeURIComponent(a);return null},
Wi=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,Pi=function(a,b){var c=null;if(ma(a)){c=a;Wi.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,Xi)}return c},
Xi=function(a){var b=a.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)},
Yi=null,Ni=function(){Yi||(Yi=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/);return Yi},
Qi=/[#\/\?@]/g,Si=/[\#\?]/g,Ti=/#/g,Oi=function(a,b,c){this.oc=new Jd;this.oa=b||null;this.Gf=!!c;if(a){var d=a.split("&");for(var e=0;e<d.length;e++){var f=d[e].indexOf("="),g=null,h=null;if(f>=0){g=d[e].substring(0,f);h=d[e].substring(f+1)}else g=d[e];g=Qa(g);g=this.$i(g);this.add(g,h?Qa(h):"")}}};
Oi.prototype.Ya=0;Oi.prototype.S=function(){return this.Ya};
Oi.prototype.add=function(a,b){this.Wm();a=this.$i(a);if(this.Eb(a)){var c=this.oc.get(a);ka(c)?c.push(b):this.oc.X(a,[c,b])}else this.oc.X(a,b);this.Ya++;return this};
Oi.prototype.remove=function(a){a=this.$i(a);if(this.oc.Eb(a)){this.Wm();var b=this.oc.get(a);if(ka(b))this.Ya-=b.length;else this.Ya--;return this.oc.remove(a)}return false};
Oi.prototype.clear=function(){this.Wm();this.oc.clear();this.Ya=0};
Oi.prototype.isEmpty=function(){return this.Ya==0};
Oi.prototype.Eb=function(a){a=this.$i(a);return this.oc.Eb(a)};
Oi.prototype.rh=function(a){var b=this.vb();return Lb(b,a)};
Oi.prototype.fd=function(){var a=this.oc.vb(),b=this.oc.fd(),c=[];for(var d=0;d<b.length;d++){var e=a[d];if(ka(e))for(var f=0;f<e.length;f++)c.push(b[d]);else c.push(b[d])}return c};
Oi.prototype.vb=function(a){var b;if(a){var c=this.$i(a);if(this.Eb(c)){var d=this.oc.get(c);if(ka(d))return d;else{b=[];b.push(d)}}else b=[]}else{var e=this.oc.vb();b=[];for(var f=0;f<e.length;f++){var g=e[f];ka(g)?Tb(b,g):b.push(g)}}return b};
Oi.prototype.X=function(a,b){this.Wm();a=this.$i(a);if(this.Eb(a)){var c=this.oc.get(a);if(ka(c))this.Ya-=c.length;else this.Ya--}this.oc.X(a,b);this.Ya++;return this};
Oi.prototype.get=function(a,b){a=this.$i(a);if(this.Eb(a)){var c=this.oc.get(a);return ka(c)?c[0]:c}else return b};
Oi.prototype.toString=function(){if(this.td)return this.td;var a=[],b=0,c=this.oc.fd();for(var d=0;d<c.length;d++){var e=c[d],f=Pa(e),g=this.oc.get(e);if(ka(g))for(var h=0;h<g.length;h++){b>0&&a.push("&");a.push(f,"=",Pa(g[h]));b++}else{b>0&&a.push("&");a.push(f,"=",Pa(g));b++}}return this.td=a.join("")};
Oi.prototype.Wm=function(){delete this.td;this.oa&&delete this.oa.td};
Oi.prototype.qa=function(){var a=new Oi;a.oc=this.oc.qa();return a};
Oi.prototype.$i=function(a){var b=String(a);if(this.Gf)b=b.toLowerCase();return b};
Oi.prototype.Kj=function(a){var b=a&&!this.Gf;if(b){this.Wm();Ed(this.oc,function(c,d){var e=d.toLowerCase();if(d!=e){this.remove(d);this.add(e,c)}},
this)}this.Gf=a};
Oi.prototype.extend=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];Ed(b,function(c,d){this.add(d,c)},
this)}};var Zi="",$i=function(a){return a},
aj=typeof l._features!="undefined"&&!l._features.default144thumbnails?[72,94,110,128,160,220,288]:[72,94,110,144,160,220,288],bj=aj.length-1,cj="deletefailed";var dj=/\?.*$/,ej=/\/s\d+(?:-c)?\//,fj=function(a){return a.replace(dj,"").replace(ej,"/")},
gj=function(a){var b=fj(a),c=b.lastIndexOf("/"),d=b.substr(0,c),e=b.substr(c);return d+"/d"+e},
hj=function(a,b,c){var d=b instanceof q?Math.max(b.width,b.height):b;if(!d)return a;var e=a.lastIndexOf("/"),f=a.substr(0,e),g=a.substr(e),h="/s"+d+(c?"-c":"");return f+h+g},
lj=function(a,b){var c=a.qa();if(c.jm(b)||c.jm(ij))return c;c.Zw(b);return jj(c,kj)},
nj=function(a,b){var c=a.qa();if(c.jm(mj))return mj;var d=Math.min(c.width,c.height);c.width=d;c.height=d;if(Ba(c,a)&&c.jm(b))return c;c.Zw(b);return jj(c,[32,48,64,72,104,136,144,150,160])},
jj=function(a,b){var c=Math.floor(Math.max(a.width,a.height));if(c){var d=oj(c,b);return a.scale(d/c).floor()}else return a.floor()},
oj=function(a,b){var c=b[0];for(var d=1;d<b.length;d++)if(a>=b[d])c=b[d];else break;return c},
pj=function(a,b){var c="";if(a=="ready")c="img/experimental/video_ready"+b+".png";else if(a=="pending")c="img/experimental/video_pending"+b+".png";else if(a=="failed")c="img/experimental/video_failed"+b+".png";if(c){var d=document.getElementsByTagName("base")[0].href;c=d+c}return c},
kj=[32,48,64,72,94,104,110,128,144,150,160,200,220,288,320,400,512,576,640,720,800,912,1024,1152,1280,1440,1600],ij=new q(kj[0],kj[0]),mj=ij;var qj=function(a,b){this.Fa=a;this.B=b;this.lE=0;this.Nw=b.entry};
qj.prototype.Va=function(){if(this.lE>=this.Nw.length)return null;var a=this.Nw[this.lE];++this.lE;return this.Gi(a)};
qj.prototype.Gi=function(){return null};
qj.prototype.ZO=function(){return this.Nw?this.Nw.length:0};var rj=function(a,b,c,d){qj.call(this,a,b);this.Ci=c;if(!this.Ci)if(b.user)this.Ci=a.Zd(b.user,b.nickname);this.Ac=d};
p(rj,qj);rj.prototype.Gi=function(a){var b=a.author&&a.author[0]?null:this.Ci,c=this.Fa.Ze(a,b,this.Ac);c.Nd(a);return c};var sj=function(a){if(ma(a))this.oa=new N(a);else if(a instanceof N)this.oa=a;else throw Error("Undefined object: "+a);this.oa.ua("kind","photo");this.oa.ua("alt","jsonm");this.lg=null};
sj.prototype.toString=function(){return"Source: "+this.oa.Oh()};
sj.prototype.nX=function(a){this.zd=a};
sj.prototype.url=function(){return this.oa.toString()};
sj.prototype.ks=function(a){this.oa.ua("subjectid",a)};
sj.prototype.ob=function(){return this.oa.ab("subjectid")||""};
sj.prototype.Hv=function(){return false};
sj.prototype.XW=function(a,b){this.oa.ua("start-index",String(a));this.oa.ua("max-results",String(b))};
sj.prototype.AY=function(a){this.oa.ho(this.oa.Oh().replace(/(\/user\/).*(\/|$)/,"$1"+a+"$2"))};
sj.prototype.Af=function(a,b){var c=new this.zd(a,b);return c};
sj.prototype.Op=function(){var a={},b=this.ob();if(b)a.subjectid=b;return a};
sj.prototype.Xd=function(){return this.lg};var tj=function(a){sj.call(this,a);this.zd=rj};
p(tj,sj);tj.prototype.Ci=null;tj.prototype.Ac=null;tj.prototype.toString=function(){return"AlbumSource: "+this.oa.Oh()};
tj.prototype.zd=rj;tj.prototype.XN=function(a,b){var c=a.sc(b.user,b.gphoto$id,b.title,"");c.Uj(b);return c};
tj.prototype.Af=function(a,b){if(this.lg)this.lg.fh(b);else this.lg=this.XN(a,b);if(this.zd==rj){var c=a.Zd(b.user,b.nickname);return new this.zd(a,b,c,this.lg)}else return tj.b.Af.call(this,a,b)};var uj={0:"m\u00e5n",1:"tis",2:"ons",3:"tor",4:"fre",5:"l\u00f6r",6:"s\u00f6n"},vj={0:"januari",1:"februari",2:"mars",3:"april",4:"maj",5:"juni",6:"juli",7:"augusti",8:"september",9:"oktober",10:"november",11:"december"},wj=function(a,b){var c=a+(" "+b);return c},
xj=/^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$/,yj=/^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(\.([0-9]+))?)?)?$/,zj=/Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$/;var Aj=function(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},
Bj=function(a,b,c,d){var e=new Date(a,b,c),f=d||3,g=e.valueOf()+(f-(e.getDay()+6)%7)*86400000,h=(new Date((new Date(g)).getFullYear(),0,1)).valueOf();return Math.floor(Math.round((g-h)/86400000)/7)+1},
Fj=function(a){if(!a||!ma(a))return null;a=Ja(a);var b=a.indexOf("T")==-1?" ":"T",c=a.split(b),d=new Cj(0,0);d=Dj(d,c[0]);if(c.length==2)d=Ej(d,c[1]);return d},
Dj=function(a,b){if(!a)return null;var c=b.match(xj);if(!c)return null;var d=c[1],e=c[4],f=c[6],g=c[8],h=c[10],i=c[12]?c[12]:1;a.setFullYear(d);if(g){a.setDate(1);a.setMonth(0);var j=g-1;a.add(new Gj("d",j))}else if(h)Hj(a,h,i);else{if(e){a.setDate(1);a.setMonth(e-1)}f&&a.setDate(f)}return a},
Hj=function(a,b,c){a.setMonth(0);a.setDate(1);var d=a.getDay(),e=d||7;if(e<=4)var f=1-e;else f=8-e;var g=Number(c)+7*(Number(b)-1),h=f+g-1,i=new Gj("d",h);a.add(i)},
Ej=function(a,b){if(!a)return null;var c=b.match(zj),d=0;if(c){if(c[0]!="Z"){d=c[3]*60+Number(c[5]);d*=c[2]=="-"?1:-1}d-=a.getTimezoneOffset();b=b.substr(0,b.length-c[0].length)}c=b.match(yj);if(!c)return null;var e=c[1],f=c[3]||0,g=c[5]||0,h=c[7]?("0."+c[7])*1000:0;a.setHours(e);a.setMinutes(f);a.setSeconds(g);a.setMilliseconds(h);d!=0&&a.setTime(a.getTime()+d*60000);return a},
Gj=function(a,b,c,d,e,f){if(ma(a)){var g=a,h=b;this.years=g=="y"?h:0;this.months=g=="m"?h:0;this.days=g=="d"?h:0;this.Ob=g=="h"?h:0;this.vc=g=="n"?h:0;this.wc=g=="s"?h:0}else{this.years=a||0;this.months=b||0;this.days=c||0;this.Ob=d||0;this.vc=e||0;this.wc=f||0}};
Gj.prototype.Il=function(a){var b=Math.min(this.years,this.months,this.days,this.Ob,this.vc,this.wc),c=Math.max(this.years,this.months,this.days,this.Ob,this.vc,this.wc);if(b<0&&c>0)return null;if(!a&&b==0&&c==0)return"PT0S";var d=[];b<0&&d.push("-");d.push("P");if(this.years||a)d.push(Math.abs(this.years)+"Y");if(this.months||a)d.push(Math.abs(this.months)+"M");if(this.days||a)d.push(Math.abs(this.days)+"D");if(this.Ob||this.vc||this.wc||a){d.push("T");if(this.Ob||a)d.push(Math.abs(this.Ob)+"H");
if(this.vc||a)d.push(Math.abs(this.vc)+"M");if(this.wc||a)d.push(Math.abs(this.wc)+"S")}return d.join("")};
Gj.prototype.equals=function(a){return a.years==this.years&&a.months==this.months&&a.days==this.days&&a.Ob==this.Ob&&a.vc==this.vc&&a.wc==this.wc};
Gj.prototype.qa=function(){return new Gj(this.years,this.months,this.days,this.Ob,this.vc,this.wc)};
Gj.prototype.add=function(a){this.years+=a.years;this.months+=a.months;this.days+=a.days;this.Ob+=a.Ob;this.vc+=a.vc;this.wc+=a.wc};
var Ij=function(a,b,c){if(!this.R)if(na(a))this.R=new Date(a,b||0,c||1);else if(pa(a))this.R=new Date(a.getFullYear(),a.getMonth(),a.getDate());else{this.R=new Date(n());this.R.setHours(0);this.R.setMinutes(0);this.R.setSeconds(0);this.R.setMilliseconds(0)}this.qk=0;this.Cp=3};
Ij.prototype.qa=function(){var a=new Ij(this.R);a.qk=this.qk;a.Cp=this.Cp;return a};
Ij.prototype.getFullYear=function(){return this.R.getFullYear()};
Ij.prototype.Yp=function(){return this.getFullYear()};
Ij.prototype.getMonth=function(){return this.R.getMonth()};
Ij.prototype.getDate=function(){return this.R.getDate()};
Ij.prototype.getTime=function(){return this.R.getTime()};
Ij.prototype.getDay=function(){return this.R.getDay()};
Ij.prototype.QO=function(){return(this.R.getDay()+6)%7};
Ij.prototype.VC=function(){return(this.QO()-this.qk+7)%7};
Ij.prototype.getUTCFullYear=function(){return this.R.getUTCFullYear()};
Ij.prototype.getUTCMonth=function(){return this.R.getUTCMonth()};
Ij.prototype.getUTCDate=function(){return this.R.getUTCDate()};
Ij.prototype.getUTCDay=function(){return this.R.getDay()};
Ij.prototype.cC=function(){return this.qk};
Ij.prototype.wC=function(){return Aj(this.getFullYear(),this.getMonth())};
Ij.prototype.dQ=function(){return Bj(this.getFullYear(),this.getMonth(),this.getDate(),this.Cp)};
Ij.prototype.getTimezoneOffset=function(){return this.R.getTimezoneOffset()};
Ij.prototype.Yu=function(){var a,b=this.R.getTimezoneOffset();if(b==0)a="Z";else{var c=Math.abs(b)/60,d=Math.floor(c),e=(c-d)*60;a=(b>0?"-":"+")+gb(d,2)+":"+gb(e,2)}return a};
Ij.prototype.X=function(a){this.R=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
Ij.prototype.setFullYear=function(a){this.R.setFullYear(a)};
Ij.prototype.BH=function(a){this.setFullYear(a)};
Ij.prototype.setMonth=function(a){this.R.setMonth(a)};
Ij.prototype.setDate=function(a){this.R.setDate(a)};
Ij.prototype.setTime=function(a){this.R.setTime(a)};
Ij.prototype.setUTCFullYear=function(a){this.R.setUTCFullYear(a)};
Ij.prototype.setUTCMonth=function(a){this.R.setUTCMonth(a)};
Ij.prototype.setUTCDate=function(a){this.R.setUTCDate(a)};
Ij.prototype.tX=function(a){this.qk=a};
Ij.prototype.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+a.years*12,c=this.Yp()+Math.floor(b/12);b%=12;if(b<0)b+=12;var d=Aj(c,b),e=Math.min(d,this.getDate());this.setDate(1);this.BH(c);this.setMonth(b);this.setDate(e)}if(a.days)if(jb&&!yb)this.setDate(this.getDate()+a.days);else{var f=new Date(this.Yp(),this.getMonth(),this.getDate(),12),g=new Date(f.getTime()+a.days*86400000);this.setDate(1);this.BH(g.getFullYear());this.setMonth(g.getMonth());this.setDate(g.getDate())}};
Ij.prototype.Il=function(a,b){var c=[this.R.getFullYear(),gb(this.R.getMonth()+1,2),gb(this.R.getDate(),2)];return c.join(a?"-":"")+(b?this.Yu():"")};
Ij.prototype.equals=function(a){return this.Yp()==a.Yp()&&this.getMonth()==a.getMonth()&&this.getDate()==a.getDate()};
Ij.prototype.toString=function(){return this.Il()};
var Cj=function(a,b,c,d,e,f,g){this.R=na(a)?new Date(a,b||0,c||1,d||0,e||0,f||0,g||0):new Date(a?a.getTime():n());Ij.call(this)};
p(Cj,Ij);Cj.prototype.getHours=function(){return this.R.getHours()};
Cj.prototype.getMinutes=function(){return this.R.getMinutes()};
Cj.prototype.getSeconds=function(){return this.R.getSeconds()};
Cj.prototype.getMilliseconds=function(){return this.R.getMilliseconds()};
Cj.prototype.getUTCHours=function(){return this.R.getUTCHours()};
Cj.prototype.getUTCMinutes=function(){return this.R.getUTCMinutes()};
Cj.prototype.getUTCSeconds=function(){return this.R.getUTCSeconds()};
Cj.prototype.getUTCMilliseconds=function(){return this.R.getUTCMilliseconds()};
Cj.prototype.setHours=function(a){this.R.setHours(a)};
Cj.prototype.setMinutes=function(a){this.R.setMinutes(a)};
Cj.prototype.setSeconds=function(a){this.R.setSeconds(a)};
Cj.prototype.setMilliseconds=function(a){this.R.setMilliseconds(a)};
Cj.prototype.setUTCHours=function(a){this.R.setUTCHours(a)};
Cj.prototype.setUTCMinutes=function(a){this.R.setUTCMinutes(a)};
Cj.prototype.setUTCSeconds=function(a){this.R.setUTCSeconds(a)};
Cj.prototype.setUTCMilliseconds=function(a){this.R.setUTCMilliseconds(a)};
Cj.prototype.add=function(a){Ij.prototype.add.call(this,a);a.Ob&&this.setHours(this.R.getHours()+a.Ob);a.vc&&this.setMinutes(this.R.getMinutes()+a.vc);a.wc&&this.setSeconds(this.R.getSeconds()+a.wc)};
Cj.prototype.Il=function(a,b){if(a)return this.R.getFullYear()+"-"+gb(this.R.getMonth()+1,2)+"-"+gb(this.R.getDate(),2)+" "+gb(this.R.getHours(),2)+":"+gb(this.R.getMinutes(),2)+":"+gb(this.R.getSeconds(),2)+(b?this.Yu():"");return this.R.getFullYear()+gb(this.R.getMonth()+1,2)+gb(this.R.getDate(),2)+"T"+gb(this.R.getHours(),2)+gb(this.R.getMinutes(),2)+gb(this.R.getSeconds(),2)+(b?this.Yu():"")};
Cj.prototype.equals=function(a){return this.getTime()==a.getTime()};
Cj.prototype.toString=function(){return this.Il()};
Cj.prototype.qa=function(){var a=new Cj(this.R);a.qk=this.qk;a.Cp=this.Cp;return a};var P=function(a){J.call(this);this.Fa=a};
p(P,J);P.prototype.Pn=0;P.prototype.id="-1";P.prototype.kB="";P.prototype.aa=null;P.prototype.JD="";P.prototype.mg="";P.prototype.zv=true;P.prototype.isOwner=function(a){if(!a)return false;var b;if(this.Sa&&this.Sa.user){if(typeof a=="string")b=a;else if(a.name)b=a.name;return this.Sa.user==b}return false};
P.prototype.gd=function(){if(!this.Aj){var a,b="";if(this.Sa&&this.Sa.user){var c=this.Sa.user;if(typeof c=="string")a=c;else if(c.name){a=c.name;b=c.nickname||""}this.Aj=this.Fa.Zd(a,b)}}return this.Aj};
P.prototype.Uj=function(){};
P.prototype.Nd=function(a){this.Vk(a)};
P.prototype.fh=function(a){this.Vk(a)};
P.prototype.Vk=function(a){if(this.Sa)nc(this.Sa,a);else this.Sa=a;this.zv=true};
P.prototype.Mk=function(){if(this.zv&&this.Sa){this.zv=false;var a=this.Sa.link;if(a)for(var b=0;b<a.length;++b){var c=a[b],d=c.href||"";switch(c.rel){case "http://schemas.google.com/g/2005#feed":this.kB=d;break;case "alternate":this.JD=d;break;case "self":if(Ya(d,"/entry/"))this.mg=d;break;case "edit":this.p0=d;break}}}};
P.prototype.Tc=function(){return this.me};
P.prototype.Dc=function(){return this.Sa?this.Sa.title:""+this};
P.prototype.yu=function(){this.Mk();return this.kB};
P.prototype.xk=function(){this.Mk();return this.mg};
P.prototype.vm=function(){this.Mk();return this.JD};
P.prototype.XB=function(){this.Mk();return this.p0};
P.prototype.Qa=function(a){this.aa||this.ES(a);return this.aa};
P.prototype.ES=function(a){this.aa=this.Fa.BO(this,a)};
P.prototype.Rh=function(){return this.aa?this.aa.Rh():this.Fa.SB()};
P.prototype.N=function(){return this.id||"-1"};
P.prototype.Yh=function(){return Jj(this.lat,this.lon)};
P.prototype.thumbnail=function(a){var b="img/picasalogo.gif",c=new q(27,25),d=this.rm();if(d){var e=Math.min(a||0,aj.length),f=aj[e],g=new q(f,f);b=d.url||b;if("width"in d&&"height"in d){c.width=d.width;c.height=d.height;var h=lj(c,g);if(!Ba(c,h)){b=hj(b,h);c=h}}else{c=nj(g,g);b=hj(b,c,true)}}return{url:b,height:String(c.height),width:String(c.width)}};
P.prototype.i_=function(a){if(!this.aa)this.aa=a};
P.prototype.load=function(a){this.isLoaded()?a(this):this.pn(a)};
P.prototype.reload=function(a){this.pn(a)};
P.prototype.pn=function(a){var b=this.Rh();b.send(this.xk(),m(function(c){if(c.status==404){typeof this.ao!="undefined"&&this.ao();a(this);return}var d=c.zg();this.fh(d.entry);a(this)},
this))};
P.prototype.S=function(){if(this.Sa)return Number(this.Sa.numPhotos);return 0};
P.prototype.isLoaded=function(){return!!this.Sa};
P.prototype.Bg=function(a){var b=this.thumbnail(a);return b.url};
P.prototype.rm=function(){if(this.Sa){var a=this.Sa.media,b=a?a.content:null;if(b&&b.length)return b[0]}return null};
P.prototype.Lh=function(){var a=this.rm();if(a)return this.oF(a.url);return null};
P.prototype.Ti=function(){var a,b=this.thumbnail();if(b)a=b.width/b.height;return a||0};
P.prototype.pp=function(){this.Fa.pp(this)};
P.prototype.pM=function(a,b,c){this.jV(a,b,c)};
P.prototype.hV=function(a,b,c,d){this.Iw(this.XB(),Kj,a,"POST",b,c,d)};
P.prototype.jV=function(a,b,c){this.Iw(this.XB(),Lj,"","POST",a,b,c)};
P.prototype.Iw=function(a,b,c,d,e,f,g){if(this.Pn){++this.Pn;if(this.Pn>10){g&&g("Timed out attempting to post");return}di(m(function(){this.Iw(a,b,c,d,e,f,g)},
this),50);return}this.Pn=1;var h=m(function(i){this.iV(i,e,f)},
this);this.Rh().send(a,h,f?m(function(){f(this)},
this):null,g,d,c,b)};
P.prototype.iV=function(a,b,c){this.Pn=0;if(a.ye()>=400)c&&c(this);else{var d=a.zg();d&&"entry"in d&&this.fh(d.entry);b&&b(this)}};
var Nj=function(a){var b=null;if(a){var c;if("lat"in a&&"lon"in a)c=a.lat+" "+a.lon;var d=a.georss$where;if(d){var e=d.gml$Point;if(e)c=e.gml$pos}if(c)b=Mj(c);if(b&&d){var f=d.gml$Envelope;if(f){var g=f.gml$lowerCorner,h=f.gml$upperCorner;if(g&&h){var i=Mj(g),j=Mj(h);if(i&&j)b.bb={ll:i,ur:j}}}}}return b},
Mj=function(a){if(a){var b=a.split(" ");if(b.length==2){var c=Number(b[0]),d=Number(b[1]);if(Jj(c,d))return{lat:c,lon:d}}}return null},
Jj=function(a,b){if(ja(a)&&ja(b))if((na(a)||!Fa(a))&&(na(b)||!Fa(b))){var c=Number(a),d=Number(b);return!isNaN(c+d)}return false};
P.prototype.oF=function(a){return a.replace(/%2D/gi,"-").replace(/%2E/gi,".").replace(/%5F/gi,"_").replace(/%7E/gi,"~")};var Oj=function(a,b,c,d,e){P.call(this,a);this.username=b;this.id=c;this.title=d;this.name=d;this.ctitle=e;this.link="/lh/sredir?uname="+this.username+"&target=ALBUM&id="+this.id;this.prints=false};
p(Oj,P);Oj.prototype.type="Album";Oj.prototype.JX=function(a){if(a)this.link=a};
Oj.prototype.GX=function(a){this.kmlLink=a};
Oj.prototype.PX=function(a){this.mapLink=a};
Oj.prototype.wY=function(a){this.uploadlink=a};
Oj.prototype.HX=function(a){this.largepreview=a};
Oj.prototype.aP=function(){return this.Mq};
Oj.prototype.rm=function(){if(this.Sa&&this.Sa.media)return Oj.b.rm.call(this);var a="img/picasalogo.gif";if(this.largepreview)a=fj(this.largepreview);return{url:a}};
Oj.prototype.isOwner=function(a){var b;if(typeof a=="string")b=a;else if(a.name)b=a.name;return this.username==a};
Oj.prototype.gd=function(){if(!this.Aj)this.Aj=this.username&&!this.Sa?this.Fa.Zd(this.username,""):Oj.b.gd.call(this);return this.Aj};
Oj.prototype.toString=function(){return"[Album: "+this.title+", user: "+this.username+"]"};
Oj.prototype.xk=function(){this.Mk();if(!this.mg)this.mg=Ea("/data/entry/api/user/%s/albumid/%s?alt=jsonm",this.username,this.id);return this.mg};
Oj.prototype.Uj=function(a){this.Sa||this.Nd(a)};
Oj.prototype.Vk=function(a){Oj.b.Vk.call(this,a);this.link=this.vm()||this.link;this.title=this.title||this.Sa.title;this.ctitle=this.ctitle||this.Sa.gphoto$name;this.name=this.name||this.ctitle;this.Mq=this.Mq||this.Sa.location;var b=Nj(a);if(b){if(isNaN(this.lat))this.lat=b.lat;if(isNaN(this.lon))this.lon=b.lon;if(b.bb)this.bb=b.bb}};
Oj.prototype.Tc=function(){if(!this.me)this.me=new tj(this.yu());return this.me};
Oj.prototype.S=function(){if(this.Sa)return Number(this.Sa.totalResults||this.Sa.numPhotos);return 0};var Pj="complete",Qj="success",Rj="error",Sj="timeout";var Tj="itemsadded",Uj="totalchanged",Vj="too_many_results_requested",Wj="query_string_too_long";var Xj=function(a,b,c,d,e){this.aa=a;this.Ul=b;this.uc=c;this.Ya=d;this.Hh=e;this.g3=this.Ul.length;this.aa.addEventListener(Tj,m(this.load,this));for(var f=0;f<this.Ul.length;++f)this.aa.xT(this.Ul[f])};
Xj.prototype.Jt=false;Xj.prototype.Ym=function(){return this.Jt};
Xj.prototype.load=function(){if(this.Jt)return true;var a=[];for(var b=0;b<this.Ul.length;++b){var c=this.Ul[b];this.aa.Kq[c]||a.push(c)}if(a.length==0){this.Jt=true;this.aa.removeEventListener(Tj,this.load.bind,false,this);this.Hh(this.aa,this.uc,this.Ya);return true}else this.Ul=a;return false};var Yj=function(a,b,c,d){this.Fa=a;this.me=b;this.WZ=c||a.SB();this.p=new I(this);this.p.e(this.Fa,"deleteinitiated",this.DQ);this.p.e(this.Fa,"deletesucceeded",this.EQ);this.p.e(this.Fa,cj,this.CQ);this.Pb=[];this.Kq=[];this.bi=new Jd;this.Rb=na(d)?d:24;this.aW()};
p(Yj,J);var Zj="PENDING";Yj.prototype.Qe=null;Yj.prototype.Hi=0;Yj.prototype.Ow=null;Yj.prototype.PF=false;Yj.prototype.toString=function(){return"Feed: "+this.me};
Yj.prototype.dH=function(a){this.$M=a};
Yj.prototype.aW=function(){this.reset()};
Yj.prototype.Tc=function(){return this.me};
Yj.prototype.reset=function(){this.Qe=null;this.Hi=0;this.Ow=null;this.Pb=[];this.Kq=[]};
Yj.prototype.i=function(){Yj.b.i.call(this);this.reset()};
Yj.prototype.aY=function(a){this.PF=a};
Yj.prototype.Mj=function(a){this.W2=true;this.Rb=a};
Yj.prototype.Ye=function(){return this.Rb};
Yj.prototype.Rh=function(){return this.WZ};
Yj.prototype.lV=function(a,b,c){if(!b)return;this.fG(a,b);var d=this.ut(a);this.Kq[d]=c};
Yj.prototype.jN=function(a){return Bb(this.Pb,a)};
Yj.prototype.vg=function(a){if(a<this.Pb.length)return this.Pb[a];return null};
Yj.prototype.qu=function(){return this.Pb};
Yj.prototype.ut=function(a){return Math.floor(a/this.Rb)};
Yj.prototype.xT=function(a){this.Kq[a]=true;var b=a*this.Rb,c=b+1;if(c>1000)return;var d=Math.min(this.Rb,1000-c+1);if(d<=0)return;if(this.PF)for(var e=b;e<b+d;++e)this.Pb[e]=Zj;this.me.XW(c,d);this.WZ.send(this.me.url(),m(Yj.prototype.eG,this,a*this.Rb,this.Rb),m(this.Hm,this),m(this.oD,this))};
Yj.prototype.oD=function(a){if(a){var b=a.target;b&&Ue(b,Sj,m(this.oD,this))}var c={type:"error",status:"timeout",value:a?a.currentTarget.LC():""};this.dispatchEvent(c)};
Yj.prototype.Hm=function(a){var b;if(a){b=a.target;Ue(b,Rj,m(this.Hm,this))}var c,d;if(b){c=b.kc();var e=new N(b.UO());if(Vj==c)d=e.ab("start-index");else if(Wj==c){var f=e.ab("q");d=f?f.length:-1}}else c="unknown";var g={type:"error",status:c,value:""+d};this.dispatchEvent(g)};
Yj.prototype.eG=function(a,b,c){if(c.ye()==500){var d=c.kc(),e="";if(Vj==d)e=""+a;else if(Wj==d){var f=this.me.xg();e=""+f.length}this.dispatchEvent({type:"error",status:d,value:e});return}this.fG(a,c.zg())};
Yj.prototype.fG=function(a,b){if(b){var c=this.Qe,d=b.feed;this.Qe=Number(d.totalResults);this.Hi=Math.max(this.Hi,Number(d.crowdedLength||this.Qe));this.Ow=d.relatedKeyword;0==this.Qe&&this.dispatchEvent("noitems");this.UJ(a,d);c!=this.Qe&&this.dispatchEvent(Uj)}};
Yj.prototype.UJ=function(a,b){if(!b)return;var c=this.me.Af(this.Fa,b),d=Math.min(a+c.ZO(),this.Qe),e=d-a;this.Pb.length=Math.max(this.Pb.length,d);for(var f=0;f<e;++f){var g=a+f,h=c.Va();this.Mo(g,h)}Math.max(this.Hi,this.Pb.length);var i=this.me.Xd();i&&i.i_(this);this.dispatchEvent({type:Tj,offset:a,count:e,crowdedCount:this.Te()})};
Yj.prototype.Mo=function(a,b){if(this.Pb[a]&&this.Pb[a]!=Zj)return;this.$M&&this.$M(b,a);this.Pb[a]=b};
Yj.prototype.load=function(a,b,c){var d=this.ut(a),e=this.ut(a+b-1),f=[];for(var g=d;g<=e;++g)this.Kq[g]||f.push(g);if(f.length==0){c(this,a,b);return true}else{var h=new Xj(this,f,a,b,c);return h.Ym()}return false};
Yj.prototype.isLoaded=function(){return null!=this.Qe};
Yj.prototype.Te=function(){return Math.min(this.Hi||this.Qe,1000)};
Yj.prototype.gy=function(){return this.Qe||0};
Yj.prototype.CP=function(){return this.Ow};
Yj.prototype.DQ=function(a){var b=a.target,c=this.jN(b);c>=0&&this.remove(c)&&this.bi.X(b.id,[b,c])};
Yj.prototype.remove=function(a){var b=false;if(Qb(this.Pb,a)){b=true;--this.Hi}--this.Qe;this.dispatchEvent(Uj);return b};
Yj.prototype.EQ=function(a){var b=a.target;this.bi.remove(b.id)};
Yj.prototype.CQ=function(a){var b=a.target,c=this.bi.get(b.id);if(c){Pb(this.Pb,c[0],c[1]);this.bi.remove(b.id);++this.Hi}++this.Qe;this.dispatchEvent(Uj)};var $j=function(a,b,c,d){P.call(this,a);this.Nd(b);this.user=c;this.album=d};
p($j,P);$j.prototype.type="Tag";$j.prototype.toString=function(){var a="Tag "+this.t;if(this.user)a+=", user: "+this.user;if(this.album)a+=", album: "+this.album;return a};
var ak=function(a){var b=Gb(a,function(d,e){d.push(s(e.t));return d},
[]).join(","),c='<entry xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/"><category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/photos/2007#photo" /><media:group><media:keywords>'+b+"</media:keywords></media:group></entry>";return c};
$j.prototype.Nd=function(a){this.t=a.title;this.w=a.weight?a.weight:1};
var bk=function(a){var b=a.split(","),c=[];if(b)for(var d=0;d<b.length;d++){var e=Ja(b[d]);e.length>0&&c.push(e)}return c},
ck=function(a){a=Ia(a);var b=a.match(/[^,'" ][^, ]*|\"[^"]*(?:\"|$)|\'[^']*(?:\'|$)/g),c={},d=[];if(b)for(var e=0;e<b.length;e++){var f=cb(cb(Ia(b[e]),"'"),'"');if(f.length&&f!="'"&&f!='"'&&!c[f]){d.push(f);c[f]=1}}return d};var Q=function(a,b,c,d){P.call(this,a);this.CA=false;this.src="../img/picasaweblogo-en_US.gif";this.user=c;this.album=d;if(b){this.my(b);var e=b.author;if(!this.user&&e){var f=e[0],g=f.email,h=f.name||g;this.user=this.Fa.Zd(g,h)}if(!this.album&&this.user)this.album=this.Fa.sc(this.user.name,this.wf(),this.BB(),this.zB());this.jd=true}};
p(Q,P);Q.prototype.type="Photo";var dk=qe("gphoto.api.Photo");Q.prototype.J=function(a){dk.da(a)};
Q.prototype.Zl=false;Q.prototype.CA=false;Q.prototype.dG=false;Q.prototype.MA=false;Q.prototype.Yv=false;Q.prototype.qj="";Q.prototype.of="";Q.prototype.uv="";Q.prototype.Vt=0;Q.prototype.Db=[];var ek="photoDataReady";Q.prototype.B=null;Q.prototype.jd=false;Q.prototype.kG="";Q.prototype.isOwner=function(a){if(!a)return false;var b;if(typeof a=="string")b=a;else if(a.name)b=a.name;return this.user&&this.user.name==b};
Q.prototype.gd=function(){if(!this.Aj)this.Aj=this.user instanceof fk?this.user:Q.b.gd.call(this);return this.Aj};
Q.prototype.sc=function(){return this.album};
Q.prototype.wf=function(){return this.of};
Q.prototype.BB=function(){return this.lt};
Q.prototype.zB=function(){return this.lK};
Q.prototype.toString=function(){return"Photo "+this.t+", in album: "+this.album+", user: "+this.user};
Q.prototype.Qa=function(){return null};
Q.prototype.Nf=function(a){if(this.Zm())a(this);else{Te(this,ek,function(){a(this)},
false,this);this.Iq()}};
Q.prototype.Zm=function(){return this.Vt==2};
Q.prototype.TS=function(){return this.Vt==1};
Q.prototype.lx=function(a){this.Vt=a};
Q.prototype.xk=function(){this.Mk();if(!this.mg)this.mg=Ea("/data/entry/api/user/%s/albumid/%s/photoid/%s?alt=jsonm",this.user.name,this.album.id,this.id);return this.mg};
Q.prototype.Iq=function(){if(this.TS())return;if(this.Zm()){this.dispatchEvent(ek);return}if(!this.user.name){this.jd=true;this.B=null;this.ao();return}this.lx(1);var a=this.yu();a+="&nocache="+n();this.Rh().send(a,m(this.Ap,this))};
Q.prototype.nc=function(){return!!this.vsurl};
Q.prototype.xD=function(){return!!this.uv};
Q.prototype.aT=function(){var a=this.Dc().toLowerCase();return Da(a,".jpg")||Da(a,".jpeg")};
Q.prototype.thumbnail=function(a){var b=pj(this.videostatus,"");if(!b)return Q.b.thumbnail.call(this,a);var c=new q(288,216);return{url:b,height:String(c.height),width:String(c.width)}};
Q.prototype.Ap=function(a){try{this.lx(2);var b=a.ye();if(b>=400){this.ao();return}this.Nd(a.zg().feed)}catch(a){this.J(String(a));return}this.Zm()&&this.dispatchEvent(ek)};
Q.prototype.fh=function(a){P.prototype.fh.call(this,a);this.my(a);if(this.Sa&&a&&a.media)this.Sa.media.keywords=a.media.keywords;this.jd=true};
Q.prototype.my=function(a){P.prototype.fh.call(this,a);var b=a.media,c=b.content[0];this.s=this.oF(c.url);this.id=a.gphoto$id;this.w=Number(a.width||c.width);this.h=Number(a.height||c.height);this.Sr(s(b.description));this.t=s(b.title);this.gB=a.exif;this.y0=a.title;this.R=a.timestamp;this.qb=a.size;this.of=a.albumId||this.of;this.lt=a.albumTitle||this.lt;this.lK=a.albumCTitle||this.lK;this.snippet=a.snippet||"";this.snippetType=a.snippettype||"";this.truncated=a.truncated=="1";this.uV(a);var d=b.content[1];
if(d){this.vsurl=Pa(d.url);this.videostatus=a.videostatus;var e=b.content[2];if(e)this.uv=Pa(e.url)}this.kG=jc(b,"keywords");this.rb=b.thumbnail};
Q.prototype.Nd=function(a){if(!a)return;this.Vk(a);this.my(a);if(!this.user){var b=a.author[0],c=b.email,d=b.name||c;this.user=this.Fa.Zd(c,d)}this.Yv=!!a.ccOverride;this.qj=a.cc;this.Db=a.entry;this.dG=a.allowPrints;this.MA=a.allowDownloads;if(!this.album)this.album=this.Fa.sc(this.user.name,this.wf(),this.BB(),this.zB());if(this.fT())this.sc().prints=true;this.dl=Zi==a.uname||this.US();this.jd=true;Q.b.Nd.call(this,a);if(a.author){var e=a.author[0];if(!this.user.name)this.user.name=e.email;if(!this.user.nickname)this.user.nickname=
e.name}this.user.name||this.ao()};
Q.prototype.ao=function(){this.CA=true;this.dispatchEvent("deleted")};
Q.prototype.Ti=function(){if(na(this.w)&&na(this.h))return this.w/this.h;return 0};
Q.prototype.Lh=function(a){this.s&&a&&this.s.replace(/\/s\d{2,3}(-c)?\//,"/"+a+"/");return this.s};
Q.prototype.Dk=function(){if(!this.Kc){this.Kc=[];var a=bk(this.kG);for(var b=0;b<a.length;++b){var c=a[b];if(!c)continue;var d=this.Fa.Vu({title:c},this.user,this.album);this.Kc.push(d)}}return this.Kc};
Q.prototype.PV=function(a,b){this.Kc&&Rb(this.Kc,a);b&&this.Jw()};
Q.prototype.YJ=function(a,b,c){this.Kc||this.Dk();var d=this.Fa.Vu({title:a},b);this.Kc.push(d);c&&this.Jw();return d};
Q.prototype.Jw=function(a,b,c){var d=ak(this.Dk());this.hV(d,a,b,c);this.reload(function(){})};
Q.prototype.Hp=function(){return this.c};
Q.prototype.Sr=function(a){this.c=db(a,1024)};
Q.prototype.uV=function(a){var b=Nj(a);if(b){if(isNaN(this.lat))this.lat=b.lat;if(isNaN(this.lon))this.lon=b.lon;if(b.bb)this.bb=b.bb}};
Q.prototype.Gu=function(){return this.qj};
Q.prototype.hH=function(a){this.qj=a};
Q.prototype.iE=function(){return this.Yv};
Q.prototype.iH=function(a){this.Yv=a};
Q.prototype.DO=function(){return this.y0};
Q.prototype.UR=function(){return!!this.gB};
Q.prototype.aC=function(){return this.gB};
Q.prototype.co=function(a,b){this.gB[a]=b};
Q.prototype.getDate=function(){return this.R};
Q.prototype.eQ=function(){return this.w};
Q.prototype.zu=function(){return this.h};
Q.prototype.EO=function(){return this.qb};
Q.prototype.VR=function(){return!!(this.lat&&this.lon)};
Q.prototype.iO=function(){return this.Db};
Q.prototype.WO=function(){return this.lat};
Q.prototype.dP=function(){return this.lon};
Q.prototype.Dc=function(){return this.t};
Q.prototype.fT=function(){return this.dG};
Q.prototype.US=function(){return this.MA};
Q.prototype.IO=function(){return this.uv};var gk=function(a){sj.call(this,a);this.zd=rj};
p(gk,sj);gk.prototype.dY=function(a,b){a?this.oa.ua("q",a):this.oa.Ck().remove("q");ba(b)&&this.$G(b)};
gk.prototype.xg=function(){return this.oa.ab("q")||""};
gk.prototype.dX=function(a){var b=this.MB();if(b!=a){b=a||"G";this.oa.ua("psc",b);b=="G"&&this.oa.ua("access","public")}};
gk.prototype.eX=function(a){a?this.oa.ua("uname",a):this.oa.Ck().remove("uname")};
gk.prototype.MB=function(){return this.oa.ab("psc")||"G"};
gk.prototype.TR=function(){return!!this.oa.ab("psc")};
gk.prototype.$G=function(a){var b=this.Hv();if(b!=a){b=a;b?this.oa.ua("filter","1"):this.oa.Ck().remove("filter")}};
gk.prototype.Hv=function(){return this.oa.ab("filter")=="1"};
gk.prototype.Op=function(){var a=gk.b.Op.call(this);if(this.TR())a.psc=this.MB();var b=this.xg(),c=this.Dk();if(b)a.q=b;else if(c)a.tags=c;return a};
gk.prototype.Dk=function(){return this.oa.ab("tag")||""};
gk.prototype.eY=function(a,b){this.oa.ua("relatedTo",a+","+b)};var hk=function(a,b,c,d){qj.call(this,a,b);this.Ci=c;this.Ac=d};
p(hk,qj);hk.prototype.Gi=function(a){return this.Fa.Vu(a,this.Ci,this.Ac)};var ik=function(a){if(ma(a))this.oa=new N(a);else if(a instanceof N)this.oa=a;this.oa.ua("alt","jsonm");this.oa.ua("pp","1");this.zd=hk};
p(ik,sj);ik.prototype.toString=function(){return"TagSource: "+this.oa.Oh()};
ik.prototype.zd=hk;ik.prototype.Af=function(a,b){if(this.zd==hk){var c=a.Zd(b.user,b.nickname),d=null;return new this.zd(a,b,c,d)}else return ik.b.Af.call(this,a,b)};var jk=function(a,b,c){qj.call(this,a,b);this.Ci=c};
p(jk,qj);jk.prototype.Gi=function(a){var b=this.Fa.sc(this.Ci.name,a.gphoto$id,a.title,a.gphoto$name);b.Nd(a);return b};var kk=function(a,b){sj.call(this,a);this.Kl=b;this.oa.ua("kind","album");var c=this.oa.Oh().match(/\/user\/(.*)$/);if(c&&c.length>1){var d=c[1];if(d!=this.Kl){this.AY(this.Kl);var e=this.oa.Ck();if(e.Eb("authkey")){e.remove("authkey");e.remove("access")}}}this.zd=jk};
p(kk,sj);kk.prototype.toString=function(){return"UserSource: "+this.Kl};
kk.prototype.Af=function(a,b){if(this.zd===jk){if(!this.lg){var c=a.Zd(b.user,b.nickname);c.Uj(b);this.lg=c}return new this.zd(a,b,this.lg)}else return kk.b.Af.call(this,a,b)};var fk=function(a,b,c){P.call(this,a);this.name=b;this.nickname=c;this.icon="img/noportrait.jpg";this.galleryName=$i(this.nickname);this.loaded=false;this.HA=false;this.email=""};
p(fk,P);fk.prototype.type="User";var lk="userDataReady";fk.prototype.Tc=function(){if(!this.me)this.me=new kk(this.yu(),this.name);return this.me};
fk.prototype.Uj=function(a){fk.b.Uj.call(this,a);this.icon=a.icon;this.galleryName=a.title};
fk.prototype.isOwner=function(a){var b;if(typeof a=="string")b=a;else if(a.name)b=a.name;return this.name==b};
fk.prototype.gd=function(){return this};
fk.prototype.toString=function(){return"User "+this.nickname+", username: "+this.name};
fk.prototype.load=function(a){this.Nf(a)};
fk.prototype.Nf=function(a){if(this.HA)a(this);else{D(this,lk,function(){a(this)},
true,this);this.Iq()}};
fk.prototype.Iq=function(){if(this.HA){this.loaded=true;this.dispatchEvent({type:lk});return}var a=this.xk()||"/data/entry/api/user/"+this.name+"?alt=jsonm",b=this.Rh();b.send(a,m(fk.prototype.Im,this))};
fk.prototype.Nd=function(a){fk.b.Nd.call(this,a);this.icon=a.thumbnail||this.icon;this.galleryName=a.title;this.name=a.user;this.nickname=a.nickname};
fk.prototype.Im=function(a){var b=a.zg();if(b){this.HA=true;this.loaded=true;this.Nd(b.entry);this.dispatchEvent({type:lk})}};var mk=function(a){if(/^\s*$/.test(a))return false;var b=/\\["\\\/bfnrtu]/g,c=/"[^"\\\n\r\u2028\u2029\x00-\x1f\x7f-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,d=/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,e=/^[\],:{}\s\u2028\u2029]*$/;return e.test(a.replace(b,"@").replace(c,"]").replace(d,""))},
nk=function(a){var b=String(a);if(typeof b.parseJSON=="function")return b.parseJSON();if(mk(a))try{return eval("("+a+")")}catch(c){}throw Error("Invalid JSON string: "+a);},
ok=function(a){return eval("("+a+")")},
pk=function(){};
pk.prototype.IW=function(a){if(a!=null&&typeof a.toJSONString=="function")return a.toJSONString();var b=[];this.fx(a,b);return b.join("")};
pk.prototype.fx=function(a,b){switch(typeof a){case "string":this.PG(a,b);break;case "number":this.KW(a,b);break;case "boolean":b.push(a);break;case "undefined":b.push("null");break;case "object":if(a==null){b.push("null");break}if(ka(a)){this.JW(a,b);break}this.LW(a,b);break;default:throw Error("Unknown type: "+typeof a);}};
var qk={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"};pk.prototype.PG=function(a,b){b.push('"',a.replace(/[\\\"\x00-\x1f\x80-\uffff]/g,function(c){if(c in qk)return qk[c];var d=c.charCodeAt(0),e="\\u";if(d<16)e+="000";else if(d<256)e+="00";else if(d<4096)e+="0";return qk[c]=e+d.toString(16)}),
'"')};
pk.prototype.KW=function(a,b){b.push(isFinite(a)&&!isNaN(a)?a:"null")};
pk.prototype.JW=function(a,b){var c=a.length;b.push("[");var d="";for(var e=0;e<c;e++){b.push(d);this.fx(a[e],b);d=","}b.push("]")};
pk.prototype.LW=function(a,b){b.push("{");var c="";for(var d in a){b.push(c);this.PG(d,b);b.push(":");this.fx(a[d],b);c=","}b.push("}")};var rk=function(){if(!xb)return;this.ak={};this.Fy={};this.Mx=[]};
rk.prototype.Oa=qe("goog.net.xhrMonitor");rk.prototype.jG=function(a){if(!xb)return;var b=ma(a)?a:pa(a)?sa(a):"";this.Oa.lu("Pushing context: "+a+" ("+b+")");this.Mx.push(b)};
rk.prototype.UF=function(){if(!xb)return;var a=this.Mx.pop();this.Oa.lu("Popping context: "+a);this.e_(a)};
rk.prototype.YT=function(a){if(!xb)return;var b=sa(a);this.Oa.da("Opening XHR : "+b);for(var c=0;c<this.Mx.length;c++){var d=this.Mx[c];this.Ro(this.ak,d,b);this.Ro(this.Fy,b,d)}};
rk.prototype.XT=function(a){if(!xb)return;var b=sa(a);this.Oa.da("Closing XHR : "+b);delete this.Fy[b];for(var c in this.ak){Rb(this.ak[c],b);this.ak[c].length==0&&delete this.ak[c]}};
rk.prototype.e_=function(a){var b=this.Fy[a],c=this.ak[a];if(b&&c){this.Oa.lu("Updating dependent contexts");Cb(b,function(d){Cb(c,function(e){this.Ro(this.ak,d,e);this.Ro(this.Fy,e,d)},
this)},
this)}};
rk.prototype.Ro=function(a,b,c){a[b]||(a[b]=[]);Lb(a[b],c)||a[b].push(c)};
var sk=new rk;var uk=function(){return tk()};
var tk=null,vk=null,wk=null,xk=function(a,b){tk=a;vk=b;wk=null},
zk=function(){var a=yk();return a?new ActiveXObject(a):new XMLHttpRequest},
Ak=function(){var a=yk(),b={};if(a){b[0]=true;b[1]=true}return b};
xk(zk,Ak);var Bk=null,yk=function(){if(!Bk&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var b=0;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);Bk=c;return c}catch(d){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return Bk};var R=function(){J.call(this);this.headers=new Jd};
p(R,J);R.prototype.Oa=qe("goog.net.XhrIo");var Ck=[],Ek=function(a,b,c,d,e,f){var g=new R;Ck.push(g);b&&D(g,Pj,b);D(g,"ready",ua(Dk,g));f&&g.jo(f);g.send(a,c,d,e)},
Dk=function(a){a.i();Rb(Ck,a)};
R.prototype.mh=false;R.prototype.Ga=null;R.prototype.Os=null;R.prototype.Wv="";R.prototype.rE="";R.prototype.Qk=0;R.prototype.gn="";R.prototype.gu=false;R.prototype.sq=false;R.prototype.xv=false;R.prototype.lj=false;R.prototype.vi=0;R.prototype.Pj=null;R.prototype.jo=function(a){this.vi=Math.max(0,a)};
R.prototype.send=function(a,b,c,d){if(this.mh)throw Error("[goog.net.XhrIo] Object is active with another request");var e=b||"GET";this.Wv=a;this.gn="";this.Qk=0;this.rE=e;this.gu=false;this.mh=true;this.Ga=new uk;this.Os=wk||(wk=vk());sk.YT(this.Ga);this.Ga.onreadystatechange=m(this.AF,this);try{this.Oa.da(this.qg("Opening Xhr"));this.xv=true;this.Ga.open(e,a,true);this.xv=false}catch(f){this.Oa.da(this.qg("Error opening Xhr: "+f.message));this.Pi(5,f);return}var g=c?String(c):"",h=this.headers.qa();
d&&Ed(d,function(i,j){h.X(j,i)});
e=="POST"&&!h.Eb("Content-Type")&&h.X("Content-Type","application/x-www-form-urlencoded;charset=utf-8");Ed(h,function(i,j){this.Ga.setRequestHeader(j,i)},
this);try{if(this.Pj){ai.clearTimeout(this.Pj);this.Pj=null}if(this.vi>0){this.Oa.da(this.qg("Will abort after "+this.vi+"ms if incomplete"));this.Pj=ai.setTimeout(m(this.QZ,this),this.vi)}this.Oa.da(this.qg("Sending request"));this.sq=true;this.Ga.send(g);this.sq=false}catch(f){this.Oa.da(this.qg("Send error: "+f.message));this.Pi(5,f)}};
R.prototype.dispatchEvent=function(a){if(this.Ga){sk.jG(this.Ga);try{R.b.dispatchEvent.call(this,a)}finally{sk.UF()}}else R.b.dispatchEvent.call(this,a)};
R.prototype.QZ=function(){if(!(typeof aa=="undefined"))if(this.Ga){this.gn="Timed out after "+this.vi+"ms, aborting";this.Qk=8;this.Oa.da(this.qg(this.gn));this.dispatchEvent(Sj);this.abort(8)}};
R.prototype.Pi=function(a,b){this.mh=false;if(this.Ga){this.lj=true;this.Ga.abort();this.lj=false}this.gn=b;this.Qk=a;this.KA();this.$o()};
R.prototype.KA=function(){if(!this.gu){this.gu=true;this.dispatchEvent(Pj);this.dispatchEvent(Rj)}};
R.prototype.abort=function(a){if(this.Ga){this.Oa.da(this.qg("Aborting"));this.mh=false;this.lj=true;this.Ga.abort();this.lj=false;this.Qk=a||7;this.dispatchEvent(Pj);this.dispatchEvent("abort");this.$o()}};
R.prototype.C=function(){if(this.Ga){this.mh=false;this.lj=true;this.Ga.abort();this.lj=false;this.$o(true)}R.b.C.call(this)};
R.prototype.AF=function(){!this.xv&&!this.sq&&!this.lj?this.JU():this.zF()};
R.prototype.JU=function(){this.zF()};
R.prototype.zF=function(){if(!this.mh)return;if(!(typeof aa=="undefined"))if(this.Os[1]&&this.zm()==4&&this.ye()==2)this.Oa.da(this.qg("Local request error detected and ignored"));else{if(this.sq&&this.zm()==4){di(this.AF,0,this);return}this.dispatchEvent("readystatechange");if(this.Ym()){this.Oa.da(this.qg("Request complete"));this.mh=false;if(this.Lf()){this.dispatchEvent(Pj);this.dispatchEvent(Qj)}else{this.Qk=6;this.gn=this.LC()+" ["+this.ye()+"]";this.KA()}this.$o()}}};
R.prototype.$o=function(a){if(this.Ga){this.Ga.onreadystatechange=this.Os[0]?ea:null;var b=this.Ga;this.Ga=null;this.Os=null;if(this.Pj){ai.clearTimeout(this.Pj);this.Pj=null}if(!a){sk.jG(b);this.dispatchEvent("ready");sk.UF()}sk.XT(b)}};
R.prototype.Jf=function(){return this.mh};
R.prototype.Ym=function(){return this.zm()==4};
R.prototype.Lf=function(){switch(this.ye()){case 0:case 200:case 204:case 304:return true;default:return false}};
R.prototype.zm=function(){return this.Ga?this.Ga.readyState:0};
R.prototype.ye=function(){try{return this.zm()>2?this.Ga.status:-1}catch(a){this.Oa.Co("Can not get status: "+a.message);return-1}};
R.prototype.LC=function(){try{return this.zm()>2?this.Ga.statusText:""}catch(a){this.Oa.da("Can not get status: "+a.message);return""}};
R.prototype.UO=function(){return this.Wv};
R.prototype.kc=function(){return this.Ga?this.Ga.responseText:""};
R.prototype.HC=function(){return this.Ga?this.Ga.responseXML:null};
R.prototype.zg=function(){return this.Ga?nk(this.Ga.responseText):undefined};
R.prototype.getResponseHeader=function(a){return this.Ga&&this.Ym()?this.Ga.getResponseHeader(a):undefined};
R.prototype.RO=function(){return this.Qk};
R.prototype.qg=function(a){return a+" ["+this.rE+" "+this.Wv+" "+this.ye()+"]"};var Fk=function(){};
var Gk=function(a,b,c){this.$H=a;this.k1=b;this.T0=c};
Gk.prototype.ye=function(){return this.$H};
Gk.prototype.kc=function(){return this.k1};
Gk.prototype.zg=function(){return this.T0};var Hk=function(){Fk.call(this)};
p(Hk,Fk);var Kj={"Content-Type":"application/atom+xml","X-HTTP-Method-Override":"PUT"},Lj={"Content-Type":"application/atom+xml","X-HTTP-Method-Override":"DELETE"};Hk.prototype.send=function(a,b,c,d,e,f,g){var h=new R;D(h,Pj,m(this.Nm,this,b,c));h.jo(30000);d&&D(h,Sj,d);c&&D(h,Rj,c);if(!g&&e=="POST")g=Kj;D(h,"ready",h.i,false,h);h.send(a,e,f,g)};
Hk.prototype.Nm=function(a,b,c){var d=c.target;Ue(d,m(this.Nm,this));var e,f=d.ye();if(f<0)return;if(f>=400)if(b){b(c);return}else e=new Gk(f,d.kc(),"");else try{var g=d.kc(),h=g?ok(g):null;e=new Gk(0,"",h)}catch(i){if(b){b(i);return}}a(e)};var Ik=function(a){this.Yc=new Jd;this.oh=new Jd;this.LI=new Jd;this.Kc=new Jd;this.Uz={};this.Uz.Album=this.oh;this.Uz.Photo=this.Yc;this.n0=a||new Hk;this.bi=new Jd;this.J=qe("gphoto.api.DataManager")};
p(Ik,J);Ik.prototype.reset=function(){this.Yc.clear();this.oh.clear();this.LI.clear()};
Ik.prototype.SB=function(){return this.n0};
Ik.prototype.YN=function(a,b,c,d,e){var f=this.sc(b,c,d||"",e||"");a=Jk(a);var g=new tj(a);if(!g.lg)g.lg=f;return g};
Ik.prototype.Su=function(a,b,c,d,e){var f=Jk(e||"/data/feed/api/all"),g=new gk(f);g.dY(b||"",d);return g};
Ik.prototype.DP=function(a,b,c,d){var e=this.Su(null,"",null,c,d);e.eY(a,b);return e};
Ik.prototype.HP=function(a,b){var c=this.Su(null,a),d=new Yj(this,c,b);return d};
Ik.prototype.WN=function(a,b,c,d){var e=this.YN(a,b,c.id,c.title||"",c.name||"");return new Yj(this,e,d,1000)};
Ik.prototype.vP=function(a,b){a=Jk(a);var c=new sj(a);c.nX(rj);return new Yj(this,c,b)};
Ik.prototype.BO=function(a,b){var c=Jk(a.Tc());return new Yj(this,c,b||a.Rh())};
Ik.prototype.sc=function(a,b,c,d){var e=a+b,f=this.oh.get(e);if(!f){f=new Oj(this,a,b,c,d);this.oh.X(e,f)}return f};
Ik.prototype.VN=function(a,b){var c=a+b;return this.oh.get(c)};
Ik.prototype.Zd=function(a,b){var c=this.LI.get(a);if(!c){c=new fk(this,a,b);this.LI.X(a,c)}return c};
Ik.prototype.Ze=function(a,b,c){if(!a)return null;var d=a.gphoto$id,e=this.Yc.get(d);if(!e){e=new Q(this,a,b,c);this.Yc.X(d,e)}return e};
Ik.prototype.AC=function(a,b,c){var d=this.Yc.get(a);if(!d){d=new Q(this);if(b){d.user=this.Zd(b,"");if(c)d.album=this.sc(b,c,"","")}d.id=a;this.Yc.X(a,d)}return d};
Ik.prototype.Vu=function(a,b,c){if(!a)return null;var d=a.title,e=this.Kc.get(d);if(!e){e=new $j(this,a,b,c);this.Kc.X(d,e)}return e};
Ik.prototype.pp=function(a){if(!a||!a.id)throw Error("Invalid Entity: "+a);var b=this.Uz[a.type];if(!b)throw Error("Can't delete entities of type: "+a?a.type:"null");var c=a.id;if(this.bi.get(c))return;var d=new A("deleterequested",a);if(this.dispatchEvent(d)){this.dispatchEvent(new A("deleteinitiated",a));this.bi.X(c,a);b.remove(c);a.pM(m(this.GQ,this),m(this.FQ,this));this.dispatchEvent(new A("deleteposted",a))}else{var e=new A("deletecancelled",a);this.dispatchEvent(e)}};
Ik.prototype.GQ=function(a){this.bi.remove(a.id);var b=new A("deletesucceeded",a);this.dispatchEvent(b)};
Ik.prototype.FQ=function(a){this.bi.remove(a.id);var b=new A(cj,a);this.dispatchEvent(b)};
Ik.prototype.ha=function(){return"gphoto.api.DataManager"};
var Jk=function(a){if(typeof l._features!="undefined"&&l._features.PERFORMANCE_EXPERIMENTS)a=a.replace("/data/feed/api/","/data/feed/t/");return a};var Lk=function(a,b){this.I1=ma(a)?ua(Kk,a):a;this.gG=new Jd;this.Le(b)},
Kk=function(a,b){if(Zj==b)return undefined;return jc(b,a)};
Lk.prototype.Le=function(a){this.aa&&this.aa!=a&&this.aa.dH(null);this.aa=a;if(!this.aa)return;this.aa.dH(m(this.dB,this));this.aa.isLoaded()&&Cb(this.aa.qu(),this.dB,this)};
Lk.prototype.dB=function(a,b){var c=this.I1(a);if(c){var d=this.gG.get(c);if(!d){d=[];this.gG.X(c,d)}d.push(b)}};
Lk.prototype.oB=function(a,b,c){var d=this.gG.get(a);d||c?b(d||[]):this.aa.load(0,this.aa.Ye(),m(this.oB,this,a,b,true))};var Mk=function(a,b,c){if(a.length!=b.length)return null;this.delta=c;this.qZ(a);this.values=b};
Mk.prototype.qZ=function(a){this.rangeArray=a;for(var b=1;b<a.length;b++)if(a[b]==null)a[b]=a[b-1]+1;else if(this.delta)a[b]+=a[b-1]};
Mk.prototype.uK=function(a){var b=this.XO(a);if(b<0)return null;return this.values[b]};
Mk.prototype.XO=function(a){var b=this.rangeArray,c=0,d=b.length;while(d-c>8){var e=d+c>>1;if(b[e]<=a)c=e;else d=e}for(;c<d;++c)if(a<b[c])break;return c-1};var Nk={ANY:0,CONTROL:1,EXTEND:2,PREPEND:3,SPACING_MARK:4,L:5,V:6,T:7,LV:8,LVT:9,CR:10,LF:11},Ok=new Mk([0,10,1,2,1,18,95,33,13,1,594,112,275,7,263,45,1,1,1,2,1,2,1,1,56,4,12,11,48,20,17,1,101,7,1,7,2,2,1,4,33,1,1,1,30,27,91,11,58,9,269,2,1,56,1,1,3,8,4,1,3,4,13,2,29,1,2,56,1,1,1,2,6,6,1,9,1,10,2,29,2,1,56,2,3,17,30,2,3,14,1,56,1,1,3,8,4,1,20,2,29,1,2,56,1,1,2,1,6,6,11,10,2,30,1,59,1,1,1,12,1,9,1,41,3,58,3,5,17,11,2,30,2,56,1,1,1,1,2,1,3,1,5,11,11,2,30,2,58,1,2,5,7,11,10,2,30,2,70,6,2,6,7,19,2,60,
11,5,5,1,1,8,97,13,3,5,3,6,74,2,27,1,1,1,1,1,4,2,49,14,1,5,1,2,8,45,9,1,100,2,4,1,6,1,2,2,2,23,2,2,4,3,1,3,2,7,3,4,13,1,2,2,6,1,1,1,112,96,72,82,357,1,946,3,29,3,29,2,30,2,64,2,1,7,8,1,2,11,9,1,45,3,155,1,118,3,4,2,9,1,6,3,116,17,7,2,77,2,3,228,4,1,47,1,1,5,1,1,5,1,2,38,9,12,2,1,30,1,4,2,2,1,121,8,8,2,2,392,64,523,1,2,2,24,7,49,16,96,33,3311,32,554,6,105,2,30164,4,9,2,388,1,3,1,4,1,23,2,2,1,88,2,50,16,1,97,8,25,11,2,213,6,2,2,2,2,12,1,8,1,1,434,11172,9082,1,737,16,16,7,216,1,158,2,89,3,513,1,2051,
15,40,8,50981,1,1,3,3,1,5,8,8,2,7,30,4,148,3,798140,255],[1,11,1,10,1,0,1,0,1,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,1,0,2,0,2,0,2,0,2,1,2,0,2,0,2,0,1,0,2,0,2,0,2,0,2,0,2,4,0,2,0,4,2,4,2,0,2,0,2,0,2,4,0,2,0,2,4,2,4,2,0,2,0,2,0,2,4,0,2,4,2,0,2,0,2,4,0,2,0,4,2,4,2,0,2,0,2,4,0,2,0,2,4,2,4,2,0,2,0,2,0,2,4,2,4,2,0,2,0,4,0,2,4,2,0,2,0,4,0,2,0,4,2,4,2,4,2,4,2,0,2,0,4,0,2,4,2,4,2,0,2,0,4,0,2,4,2,4,2,4,0,2,0,3,2,0,2,0,2,0,3,0,2,0,2,0,2,0,2,0,2,0,4,0,2,4,2,0,2,0,2,0,2,0,4,2,4,2,4,2,4,2,0,4,2,0,2,0,4,0,4,0,2,0,2,4,2,
4,2,0,4,0,5,6,7,0,2,0,2,0,2,0,2,0,2,0,1,4,2,4,2,4,2,0,2,0,2,0,2,0,2,4,2,4,2,4,2,0,4,0,4,0,2,4,0,2,4,0,2,4,2,4,2,4,2,4,0,2,0,2,4,0,4,2,4,2,4,0,4,2,4,2,0,2,0,1,2,1,0,1,0,1,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,4,2,4,0,4,0,4,2,0,2,0,2,4,0,2,4,2,4,2,0,2,0,2,4,0,9,0,2,0,2,0,2,0,1,0,2,0,1,0,2,0,2,0,2,0,2,4,2,0,4,2,1,2,0,2,0,2,0,2,0,1,2],true),Pk=function(a,b){var c=Nk;if(a==c.CR&&b==c.LF)return false;if(a==c.CONTROL||a==c.CR||a==c.LF)return true;if(b==c.CONTROL||b==c.CR||b==c.LF)return true;if(a==c.L&&
(b==c.L||b==c.V||b==c.LV||b==c.LVT))return false;if((a==c.LV||a==c.V)&&(b==c.V||b==c.T))return false;if((a==c.LVT||a==c.T)&&b==c.T)return false;if(b==c.EXTEND)return false;return true},
Qk=function(a){if(44032<=a&&a<=55203){var b=Nk;if(a%28==16)return b.LV;return b.LVT}else return Ok.uK(a)},
Rk=function(a,b,c){var d=Qk(a),e=Qk(b),f=Nk;return Pk(d,e)&&!(c&&(d==f.PREPEND||e==f.SPACING_MARK))};({"":1,n:Math.pow(1024,-3),u:Math.pow(1024,-2),m:9.765625E-4,k:1024,K:1024,M:Math.pow(1024,2),G:Math.pow(1024,3),T:Math.pow(1024,4),P:Math.pow(1024,5)});var Tk=function(a,b){var c=b||10;if(c>a.length)return a;var d=[],e=0,f=0,g=0,h=0;for(var i=0;i<a.length;i++){var j=h;h=a.charCodeAt(i);var k=h>=768&&!Rk(j,h,true);if(e>=c&&h>32&&!k){d.push(a.substring(g,i),Sk);g=i;e=0}if(!f)if(h==60||h==38)f=h;else if(h<=32)e=0;else k||e++;else if(h==62&&f==60)f=0;else if(h==59&&f==38){f=0;e++}}d.push(a.substr(g));
return d.join("")},
Sk=yb?"<wbr></wbr>":wb?"&shy;":"<wbr>";var Uk=function(a,b,c,d){L.call(this);this.Rj=a;this.T_=b;this.S_=c;this.P2=d};
p(Uk,L);Uk.prototype.ha=function(){return"gphoto.context.Album"};
Uk.prototype.D=function(){Uk.b.D.call(this)};
Uk.prototype.A=function(){Uk.b.A.call(this);var a=new Vk;a.bt(this.T_,this.S_);var b=s(this.Rj);a.So(b);this.ga(a,true)};var Wk=function(){L.call(this)};
p(Wk,L);Wk.prototype.ha=function(){return"gphoto.context.Display"};
Wk.prototype.o=function(){Wk.b.o.call(this);rc(this.f(),"gphoto-context-display")};
Wk.prototype.X=function(a){this.Qg(true);this.e0=a;a&&this.ga(a,true);this.la()&&H(this.f(),!!a)};
Wk.prototype.oO=function(){return this.e0};var Xk=function(a){var b="Det gick inte att hitta "+(a+".");return b},
Yk=function(a){var b="Ange en placering i "+(a+"-f\u00e4ltet.");return b},
Zk="Kartl\u00e4gg dina foton",$k="Klicka p\u00e5 kartan eller dra mark\u00f6ren om du vill \u00e4ndra placering.",al="L\u00e4ser in&#8230;",bl=function(a){var b=a+"s foton";return b},
cl="Rapportera ol\u00e4mpligt inneh\u00e5ll",dl=function(a,b){var c=a+(" f\u00f6rekommer inte i "+(b+"."));return c},
el=(function(){return'<div class="lhcl_search_results_no_results">'+dl('<span class="lhcl_search_results_query">{query}</span>',"{corpusName}")+'<div class="lhcl_search_results_help"><div>Om du vill hitta fler objekt kan du g\u00f6ra f\u00f6ljande:</div><div><ul><li>F\u00f6r att du ska hitta det du s\u00f6ker efter \u00e4r det viktigt att du anv\u00e4nder r\u00e4tt s\u00f6ktermer.  B\u00f6rja med det sj\u00e4lvklara. Om du letar efter objekt som har med <b>Hawaii</b> att g\u00f6ra skriver du "<b>Hawaii</b>".</li><li>Det \u00e4r ofta bra att ange flera s\u00f6ktermer. Om du till exempel letar efter objekt om resa till Hawaii skriver du "<b>resa Hawaii</b>".</li><li>Du beh\u00f6ver inte bry dig om stora och sm\u00e5 bokst\u00e4ver. S\u00f6kningar i Google \u00e4r inte skiftl\u00e4gesk\u00e4nsliga.</li><li>Ibland vill du bara ha exakta tr\u00e4ffar p\u00e5 en fras. S\u00e4tt i s\u00e5 fall citattecken runt s\u00f6ktermerna. Du kan till exempel skriva "dansa efter min pipa".</li></ul></div></div>'})();var Vk=function(a){L.call(this);this.Qt=a||[]};
p(Vk,L);Vk.prototype.ha=function(){return"gphoto.context.BreadCrumb"};
Vk.prototype.A=function(){Vk.b.A.call(this);var a=this.Qt.length-1;Cb(this.Qt,function(b,c){c>0&&y(this.f(),w("span",{"class":"gphoto-context-separator"},">"));var d;d=b[1]?w("a",{href:b[1]}):x("span");y(this.f(),d);if(b[2])d.innerHTML=b[0];else z(d,b[0]);c==a&&rc(d,"gphoto-context-current")},
this)};
Vk.prototype.bt=function(a,b){this.Qt.push([a,b])};
Vk.prototype.PJ=function(a){Cb(a,function(b){var c=b.length>1&&b[1]?b[1]:null;this.bt(b[0],c)},
this)};
Vk.prototype.So=function(a,b){this.Qt.push([a,b,true])};var fl=function(a,b){L.call(this);this.Ee=a||"";this.cF=[];if(b)this.xd=b};
p(fl,L);fl.prototype.xd="gphoto-context-toggle";fl.prototype.ha=function(){return"gphoto.context.Toggle"};
fl.prototype.o=function(){this.xc(x("span"));rc(this.f(),this.xd)};
fl.prototype.A=function(){fl.b.A.call(this);this.Ee&&z(this.f(),this.Ee+"\u00a0");Cb(this.cF,function(a,b){b>0&&this.f().appendChild(w("span",{"class":"gphoto-context-separator"},"|"));var c;c=a[0]==this.ib?x("b"):w("a",{href:a[1]});z(c,a[2]);this.f().appendChild(c)},
this)};
fl.prototype.No=function(a,b,c){this.cF.push([a,b,c])};
fl.prototype.Me=function(a){this.ib=a};
fl.prototype.vU=function(){return this.cF.length};var gl=function(a,b,c,d,e,f,g,h,i){L.call(this);this.lb=a;this.R_=b;this.B1=c;this.fI=d||"";this.EZ=e||"";this.eI=f||"";this.DZ=g||"";this.Tz=h||"";this.mL=i||""};
p(gl,L);gl.prototype.pq=null;gl.prototype.ha=function(){return"gphoto.context.PeopleSearch"};
gl.prototype.o=function(){var a;if(this.lb.length==1){a=x("table",{width:"100%"});var b=x("tbody"),c=x("tr");this.pq=w("td",{style:"width:70px;"});this.zs=w("td");this.CZ=w("td",{align:"right"});y(a,b);y(b,c);y(c,this.pq);y(c,this.zs);y(c,this.CZ)}else{a=x("div");this.zs=a}this.xc(a)};
gl.prototype.A=function(){gl.b.A.call(this);if(this.pq){this.ma=w("img",{src:this.lb[0].iconicshapeurl,"class":"gphoto-person-icon"});this.pq.appendChild(this.ma)}var a=new Vk;a.PJ(this.R_);a.bt("Personer",this.B1);a.So(Tk(this.TP()));this.ga(a);a.U(this.zs);if(this.fI){var b=w("div",{"class":"gphoto-context-search-toggle"});if(this.EZ){var c=null,d=[];if(this.eI){y(b,Kc("Vy: "));c=w("span");c.style.fontWeight="bold";d.push(Tk(s(this.eI)))}if(c&&!this.DZ){d.push(" | ");c.innerHTML=d.join("");y(b,
c)}var e=w("a",{href:this.EZ});e.innerHTML=Tk(s(this.fI));y(b,e);if(c&&this.DZ){d.unshift(" | ");c.innerHTML=d.join("");y(b,c)}}else z(b,this.fI);y(this.eI?this.CZ:this.zs,b)}if(this.Tz){b=w("div",{"class":"gphoto-context-search-toggle"});if(this.mL){e=w("a",{href:this.mL});e.innerHTML=Tk(s(this.Tz));y(b,e)}else z(b,this.Tz);y(this.zs,b)}};
gl.prototype.TP=function(){var a=Fb(this.lb,function(b){return b.dispname});
return s(a.join(", "))};var il=function(a){var b,c;while(a){b=sa(a);if(c=hl[b])break;a=a.b?a.b.constructor:null}if(c)return oa(c.getInstance)?c.getInstance():new c;return null},
jl=function(a,b){if(!oa(a))throw Error("Invalid component class "+a);if(!oa(b))throw Error("Invalid renderer class "+b);var c=sa(a);hl[c]=b};
var ll=function(a,b){if(!a)throw Error("Invalid class name "+a);if(!oa(b))throw Error("Invalid decorator function "+b);kl[a]=b},
ml=function(a){var b,c=tc(a);for(var d=0,e=c.length;d<e;d++)if(b=c[d]in kl?kl[c[d]]():null)return b;return null},
hl={},kl={};var nl=function(){},
ol;ga(nl);nl.prototype.dd=function(){return undefined};
nl.prototype.o=function(a){return a.O.o("div",{className:this.Kh(a).join(" ")},a.Bd())};
nl.prototype.Ja=function(a){return a};
nl.prototype.UM=function(a,b,c){var d=a.f();d&&xc(d,b,c)};
nl.prototype.mb=function(){return true};
nl.prototype.va=function(a,b){b.id&&a.$r(b.id);var c=this.Ja(b);c&&c.firstChild?a.Ur(c.firstChild.nextSibling?Sb(c.childNodes):c.firstChild):a.Ur(null);var d=0,e=this.$(),f=this.Ph(),g=false,h=false,i=tc(b);Cb(i,function(k){if(!g&&k==e){g=true;if(f==e)h=true}else if(!h&&k==f)h=true;else d|=this.Tp(k)},
this);a.uH(d);if(!g){i.push(e);if(f==e)h=true}h||i.push(f);var j=a.bC();j&&i.push.apply(i,j);if(!g||!h||j)rc(b,i.join(" "));return b};
nl.prototype.Ig=function(a){a.Ok()&&this.Ug(a.f(),true);a.jb()&&this.ef(a,a.Ca())};
nl.prototype.TG=function(a){if(xb){var b=this.dd();b&&Mh(a,b)}};
nl.prototype.Gj=function(a,b){yh(a,!b,!t&&!wb)};
nl.prototype.Ug=function(a,b){xc(a,this.Ph()+"-rtl",b)};
nl.prototype.Kf=function(a){var b;if(a.De(32)&&(b=a.Nb()))return $c(b);return false};
nl.prototype.ef=function(a,b){var c;if(a.De(32)&&(c=a.Nb())){if(!b){try{c.blur()}catch(d){}a.YS()&&a.ze(null)}$c(c)!=b&&ad(c,b)}};
nl.prototype.Y=function(a,b){H(a,b)};
nl.prototype.gb=function(a,b,c){var d=a.f();if(d){var e=this.We(b);e&&xc(d,e,c);this.ky(d,b,c)}};
nl.prototype.ky=function(a,b,c){if(xb){ol||(ol=oc(1,"disabled",4,"pressed",8,"selected",16,"checked",64,"expanded"));var d=ol[b];d&&Nh(a,d,c)}};
nl.prototype.Sb=function(a,b){var c=this.Ja(a);if(c){Mc(c);if(b)if(ma(b))z(c,b);else{function d(e){if(e){var f=Ac(c);c.appendChild(ma(e)?f.createTextNode(e):e)}}
ka(b)?Cb(b,d):d(b)}}};
nl.prototype.Nb=function(a){return a.f()};
nl.prototype.$=function(){return"goog-control"};
nl.prototype.Ph=function(){return this.$()};
nl.prototype.Kh=function(a){var b=this.$(),c=[b],d=this.Ph();d!=b&&c.push(d);var e=this.gO(a.SP());e&&c.push.apply(c,e);var f=a.bC();f&&c.push.apply(c,f);return c};
nl.prototype.gO=function(a){if(a){var b=[];for(var c=1;a;c<<=1)if(a&c){b.push(this.We(c));a&=~c}return b}return null};
nl.prototype.We=function(a){this.Gt||this.gA();return this.Gt[a]};
nl.prototype.Tp=function(a){this.pZ||this.YL();var b=parseInt(this.pZ[a],10);return isNaN(b)?0:b};
nl.prototype.gA=function(){var a=this.Ph();this.Gt=oc(1,a+"-disabled",2,a+"-hover",4,a+"-active",8,a+"-selected",16,a+"-checked",32,a+"-focused",64,a+"-open")};
nl.prototype.YL=function(){this.Gt||this.gA();this.pZ=lc(this.Gt)};var S=function(a,b,c){L.call(this,c);this.ca=b||il(this.constructor);this.Ur(a)};
p(S,L);S.prototype.wd=null;S.prototype.Ab=0;S.prototype.no=39;S.prototype.Uo=255;S.prototype.us=0;S.prototype.xa=true;S.prototype.pk=null;S.prototype.ev=true;S.prototype.iz=false;S.prototype.tg=function(){return this.r||(this.r=new I(this))};
S.prototype.ZS=function(){return this.ev};
S.prototype.qx=function(a){this.la()&&a!=this.ev&&this.$A(a);this.ev=a};
S.prototype.Nb=function(){return this.ca.Nb(this)};
S.prototype.xm=function(){return this.wb||(this.wb=new Qh)};
S.prototype.yg=function(){return this.ca};
S.prototype.bC=function(){return this.pk};
S.prototype.Wf=function(a){if(a){if(this.pk)Lb(this.pk,a)||this.pk.push(a);else this.pk=[a];this.ca.UM(this,a,true)}};
S.prototype.o=function(){var a=this.ca.o(this);this.xc(a);this.ca.TG(a);this.Ev()||this.ca.Gj(a,false);this.Ca()||this.ca.Y(a,false)};
S.prototype.Ja=function(){return this.ca.Ja(this.f())};
S.prototype.mb=function(a){return this.ca.mb(a)};
S.prototype.ra=function(a){a=this.ca.va(this,a);this.xc(a);this.ca.TG(a);this.Ev()||this.ca.Gj(a,false);this.xa=a.style.display!="none"};
S.prototype.A=function(){S.b.A.call(this);this.ca.Ig(this);if(this.no&-2){this.ZS()&&this.$A(true);if(this.De(32)){var a=this.Nb();if(a){var b=this.tg(),c=this.xm();c.ag(a);b.e(c,"key",this.Fc);b.e(a,cf,this.Jm);b.e(a,"blur",this.ze)}}}};
S.prototype.$A=function(a){var b=this.tg(),c=this.f();if(a){b.e(c,ye,this.gv);b.e(c,F,this.Ae);b.e(c,$e,this.Fk);b.e(c,ze,this.fv);t&&b.e(c,"dblclick",this.eD)}else{b.ka(c,ye,this.gv);b.ka(c,F,this.Ae);b.ka(c,$e,this.Fk);b.ka(c,ze,this.fv);t&&b.ka(c,"dblclick",this.eD)}};
S.prototype.D=function(){S.b.D.call(this);this.r&&this.r.ya();this.wb&&this.wb.detach();this.Ca()&&this.jb()&&this.ca.ef(this,false)};
S.prototype.C=function(){S.b.C.call(this);if(this.r){this.r.i();delete this.r}if(this.wb){this.wb.i();delete this.wb}delete this.ca;this.wd=null;this.pk=null};
S.prototype.Bd=function(){return this.wd};
S.prototype.Sb=function(a){this.ca.Sb(this.f(),a);this.Ur(a)};
S.prototype.Ur=function(a){this.wd=a};
S.prototype.Hp=function(){var a=this.Bd();if(!a||ma(a))return a;var b=ka(a)?Fb(a,cd).join(""):cd(a);return b&&Ja(b)};
S.prototype.Sr=function(a){this.Sb(a)};
S.prototype.Ug=function(a){S.b.Ug.call(this,a);var b=this.f();b&&this.ca.Ug(b,a)};
S.prototype.Ev=function(){return this.iz};
S.prototype.Gj=function(a){this.iz=a;var b=this.f();b&&this.ca.Gj(b,a)};
S.prototype.Ca=function(){return this.xa};
S.prototype.Y=function(a,b){if(b||this.xa!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.f();c&&this.ca.Y(c,a);this.jb()&&this.ca.ef(this,a);this.xa=a;return true}return false};
S.prototype.jb=function(){return!this.$d(1)};
S.prototype.eT=function(){var a=this.Ka();return!!a&&typeof a.jb=="function"&&!a.jb()};
S.prototype.Ha=function(a){if(!this.eT()&&this.oj(1,!a)){if(!a){this.setActive(false);this.Ib(false)}this.Ca()&&this.ca.ef(this,a);this.gb(1,!a)}};
S.prototype.Ib=function(a){this.oj(2,a)&&this.gb(2,a)};
S.prototype.Jf=function(){return this.$d(4)};
S.prototype.setActive=function(a){this.oj(4,a)&&this.gb(4,a)};
S.prototype.Pk=function(){return this.$d(8)};
S.prototype.qd=function(a){this.oj(8,a)&&this.gb(8,a)};
S.prototype.Gv=function(){return this.$d(16)};
S.prototype.YG=function(a){this.oj(16,a)&&this.gb(16,a)};
S.prototype.YS=function(){return this.$d(32)};
S.prototype.eH=function(a){this.oj(32,a)&&this.gb(32,a)};
S.prototype.isOpen=function(){return this.$d(64)};
S.prototype.Tb=function(a){this.oj(64,a)&&this.gb(64,a)};
S.prototype.SP=function(){return this.Ab};
S.prototype.$d=function(a){return!!(this.Ab&a)};
S.prototype.gb=function(a,b){if(this.De(a)&&b!=this.$d(a)){this.ca.gb(this,a,b);this.Ab=b?this.Ab|a:this.Ab&~a}};
S.prototype.uH=function(a){this.Ab=a};
S.prototype.De=function(a){return!!(this.no&a)};
S.prototype.Wg=function(a,b){if(this.la())throw Error(Hh);!b&&this.$d(a)&&this.gb(a,false);this.no=b?this.no|a:this.no&~a};
S.prototype.be=function(a){return!!(this.Uo&a)&&this.De(a)};
S.prototype.VW=function(a,b){this.Uo=b?this.Uo|a:this.Uo&~a};
S.prototype.bo=function(a,b){this.us=b?this.us|a:this.us&~a};
S.prototype.oj=function(a,b){return this.De(a)&&this.$d(a)!=b&&(!(this.us&a)||this.dispatchEvent(Jh(a,b)))&&!this.$m()};
S.prototype.gv=function(a){a.relatedTarget&&!Uc(this.f(),a.relatedTarget)&&this.dispatchEvent("enter")&&this.jb()&&this.be(2)&&this.Ib(true)};
S.prototype.fv=function(a){if(a.relatedTarget&&!Uc(this.f(),a.relatedTarget)&&this.dispatchEvent("leave")){this.be(4)&&this.setActive(false);this.be(2)&&this.Ib(false)}};
S.prototype.Ae=function(a){if(this.jb()){this.be(2)&&this.Ib(true);if(a.Xm(0)){this.be(4)&&this.setActive(true);this.ca.Kf(this)&&this.Nb().focus()}}!this.Ev()&&a.Xm(0)&&a.preventDefault()};
S.prototype.Fk=function(a){if(this.jb()){this.be(2)&&this.Ib(true);this.Jf()&&this.Dj(a)&&this.be(4)&&this.setActive(false)}};
S.prototype.eD=function(a){this.jb()&&this.Dj(a)};
S.prototype.Dj=function(){this.be(16)&&this.YG(!this.Gv());this.be(8)&&this.qd(true);this.be(64)&&this.Tb(!this.isOpen());return this.dispatchEvent(Fh)};
S.prototype.Jm=function(){this.be(32)&&this.eH(true)};
S.prototype.ze=function(){this.be(4)&&this.setActive(false);this.be(32)&&this.eH(false)};
S.prototype.Fc=function(a){if(this.Ca()&&this.jb()&&this.Lm(a)){a.preventDefault();a.stopPropagation();return true}return false};
S.prototype.Lm=function(a){return a.keyCode==13&&this.Dj(a)};
jl(S,nl);ll("goog-control",function(){return new S(null)});var pl=function(){return nl.call(this)};
p(pl,nl);ga(pl);var ql="goog-menuseparator";pl.prototype.o=function(a){return a.O.o("div",{"class":this.$()})};
pl.prototype.va=function(a,b){if(b.tagName=="HR"){var c=b;b=this.o(a);Nc(b,c);Oc(c)}else uc(b,this.$());return b};
pl.prototype.Sb=function(){};
pl.prototype.$=function(){return ql};var rl=function(a,b){S.call(this,null,a||pl.getInstance(),b);this.Wg(1,false);this.Wg(2,false);this.Wg(4,false);this.Wg(32,false);this.uH(1)};
p(rl,S);rl.prototype.A=function(){rl.b.A.call(this);Mh(this.f(),"separator")};
ll(ql,function(){return new rl});var sl=function(){};
ga(sl);sl.prototype.dd=function(){return undefined};
sl.prototype.ZR=function(a){if(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){var c=a.tabIndex;return na(c)&&c>=0}}return false};
sl.prototype.fu=function(a,b){if(a)a.tabIndex=b?0:-1};
sl.prototype.o=function(a){return a.O.o("div",{"class":this.Kh(a).join(" ")})};
sl.prototype.Ja=function(a){return a};
sl.prototype.mb=function(a){return a.tagName=="DIV"};
sl.prototype.va=function(a,b){b.id&&a.$r(b.id);var c=this.$(),d=false,e=tc(b);e&&Cb(e,function(f){if(f==c)d=true;else f&&this.mY(a,f,c)},
this);d||uc(b,c);this.hM(a,b);return b};
sl.prototype.mY=function(a,b,c){if(b==c+"-disabled")a.Ha(false);else if(b==c+"-horizontal")a.gs(tl);else b==c+"-vertical"&&a.gs(ul)};
sl.prototype.hM=function(a,b){if(b){var c=b.firstChild,d;while(c&&c.parentNode==b){d=c.nextSibling;if(c.nodeType==1){var e=this.Xi(c);if(e){e.xc(c);a.jb()||e.Ha(false);a.ga(e);e.va(c)}}else if(!c.nodeValue||Ja(c.nodeValue)=="")b.removeChild(c);c=d}}};
sl.prototype.Xi=function(a){return ml(a)};
sl.prototype.Ig=function(a){var b=a.f();yh(b,true,xb);if(t)b.hideFocus=true;var c=this.dd();c&&Mh(b,c);if(a.Ak()==tl&&xb&&!Ab("1.9a")&&a.Ok()){var d=this.Ja(b);a.Vd(function(e){var f=e.f();f&&f.parentNode==d&&vl(e)})}};
sl.prototype.Nb=function(a){return a.f()};
sl.prototype.$=function(){return"goog-container"};
sl.prototype.Kh=function(a){var b=this.$(),c=a.Ak()==tl,d=[b,b+(c?"-horizontal":"-vertical")];a.jb()||d.push(this.$()+"-disabled");return d};
sl.prototype.tu=function(){return ul};
var vl=function(a){var b=a.f();if(b){var c=b.parentNode,d=b.nextSibling,e=a instanceof rl?"display:-moz-box;position:relative;top:4px":"display:-moz-box;position:relative";c.insertBefore(a.O.o("div",{style:e},b),d)}},
wl=function(a){var b=a.f();if(b){var c=b.parentNode;c.parentNode.insertBefore(b,c);Oc(c)}};var T=function(a,b,c){L.call(this,c);this.ca=b||sl.getInstance();this.fb=a||this.ca.tu()};
p(T,L);var tl="horizontal",ul="vertical";T.prototype.r=null;T.prototype.jT=null;T.prototype.wb=null;T.prototype.ca=null;T.prototype.fb=null;T.prototype.xa=true;T.prototype.Ia=true;T.prototype.nu=true;T.prototype.Ce=-1;T.prototype.pc=null;T.prototype.ow=false;T.prototype.pK=false;T.prototype.qh=null;T.prototype.tg=function(){return this.r||(this.r=new I(this))};
T.prototype.Nb=function(){return this.jT||this.ca.Nb(this)};
T.prototype.xm=function(){return this.wb||(this.wb=new Qh(this.Nb()))};
T.prototype.yg=function(){return this.ca};
T.prototype.o=function(){this.xc(this.ca.o(this))};
T.prototype.Ja=function(){return this.ca.Ja(this.f())};
T.prototype.mb=function(a){return this.ca.mb(a)};
T.prototype.ra=function(a){this.xc(this.ca.va(this,a));if(a.style.display=="none")this.xa=false};
T.prototype.A=function(){T.b.A.call(this);var a=this.f();this.ca.Ig(this);this.Y(this.xa,true);var b=this.tg();b.e(this,"enter",this.cq);b.e(this,"highlight",this.dq);b.e(this,Eh,this.hq);b.e(this,"open",this.tR);b.e(this,"close",this.sQ);b.e(a,F,this.Ae);b.e(Ac(a),$e,this.IQ);b.e(a,[F,$e,ye,ze],this.rQ);this.Kf()&&this.XA(true)};
T.prototype.XA=function(a){var b=this.tg(),c=this.Nb();if(a){b.e(c,cf,this.Jm);b.e(c,"blur",this.ze);b.e(this.xm(),"key",this.Fc)}else{b.ka(c,cf,this.Jm);b.ka(c,"blur",this.ze);b.ka(this.xm(),"key",this.Fc)}};
T.prototype.D=function(){T.b.D.call(this);this.rl(-1);this.r&&this.r.ya();this.pc&&this.pc.Tb(false);this.ow=false};
T.prototype.C=function(){T.b.C.call(this);if(this.r){this.r.i();this.r=null}if(this.wb){this.wb.i();this.wb=null}this.qh=null;this.pc=null;this.ca=null};
T.prototype.cq=function(a){var b=a.target;if(b&&this.Xo(b)){b.Ib(true);this.dT()&&b.setActive(true)}return false};
T.prototype.dq=function(a){var b=this.Lk(a.target);if(b>-1&&b!=this.Ce){var c=this.Mh();c&&c.Ib(false);this.Ce=b;c=this.Mh();if(this.pc&&c!=this.pc)c.De(64)?c.Tb(true):this.pc.Tb(false)}Nh(this.f(),Lh,a.target.f().id)};
T.prototype.hq=function(a){if(a.target==this.Mh())this.Ce=-1;Nh(this.f(),Lh,null)};
T.prototype.tR=function(a){var b=a.target;if(b&&b!=this.pc&&b.Ka()==this){this.pc&&this.pc.Tb(false);this.pc=b}};
T.prototype.sQ=function(a){if(a.target==this.pc)this.pc=null};
T.prototype.Ae=function(a){this.Ia&&this.Lj(true);var b=this.Nb();this.ca.ZR(b)?b.focus():a.preventDefault()};
T.prototype.IQ=function(){this.Lj(false)};
T.prototype.rQ=function(a){var b=this.sP(a.target);if(b)switch(a.type){case F:b.Ae(a);break;case $e:b.Fk(a);break;case ye:b.gv(a);break;case ze:b.fv(a);break}};
T.prototype.sP=function(a){if(this.qh){var b=this.f();while(a&&a.parentNode&&a!=b){var c=a.id;if(c in this.qh)return this.qh[c];a=a.parentNode}}return null};
T.prototype.Jm=function(){};
T.prototype.ze=function(){this.rl(-1);this.Lj(false);this.pc&&this.pc.Tb(false)};
T.prototype.Fc=function(a){if(!this.Ia||this.Ui()==0)return false;var b=this.Mh();if(b&&typeof b.Fc=="function"&&b.Fc(a))return true;if(this.pc&&this.pc!=b&&typeof this.pc.Fc=="function"&&this.pc.Fc(a))return true;switch(a.keyCode){case 27:if(this.Kf())this.Nb().blur();else return false;break;case 36:this.hS();break;case 35:this.iS();break;case 38:if(this.fb==ul)this.sv();else return false;break;case 37:if(this.fb==tl)this.Ok()?this.rv():this.sv();else return false;break;case 40:if(this.fb==ul)this.rv();
else return false;break;case 39:if(this.fb==tl)this.Ok()?this.sv():this.rv();else return false;break;default:return false}a.preventDefault();return true};
T.prototype.Jo=function(a,b,c){a.bo(2,true);a.bo(64,true);if(this.Kf()||!this.WS())a.Wg(32,false);a.qx(false);T.b.Jo.call(this,a,b,c);var d=a.f();if(d){if(!d.id)d.id=a.N();if(!this.qh)this.qh={};ic(this.qh,d.id,a)}c&&this.la()&&this.Ok()&&this.Ak()==tl&&xb&&!Ab("1.9a")&&vl(a);b<=this.Ce&&this.Ce++};
T.prototype.removeChild=function(a,b){var c=this.Lk(a);if(c!=-1)if(c==this.Ce)a.Ib(false);else c<this.Ce&&this.Ce--;b&&this.la()&&this.Ok()&&this.Ak()==tl&&xb&&!Ab("1.9a")&&wl(a);var d=a.f();d&&d.id&&fc(this.qh,d.id);a=T.b.removeChild.call(this,a,b);a.qx(true);return a};
T.prototype.Ak=function(){return this.fb};
T.prototype.gs=function(a){if(this.f())throw Error(Hh);this.fb=a};
T.prototype.Ca=function(){return this.xa};
T.prototype.Y=function(a,b){if(b||this.xa!=a&&this.dispatchEvent(a?"show":"hide")){this.xa=a;var c=this.f();if(c){H(c,a);this.Kf()&&this.ca.fu(this.Nb(),this.Ia&&this.xa)}return true}return false};
T.prototype.jb=function(){return this.Ia};
T.prototype.Ha=function(a){if(this.Ia!=a&&this.dispatchEvent(a?Dh:Ch)){if(a){this.Ia=true;this.Vd(function(b){if(b.wasDisabled)delete b.wasDisabled;else b.Ha(true)})}else{this.Vd(function(b){if(b.jb())b.Ha(false);
else b.wasDisabled=true});
this.Ia=false;this.Lj(false)}this.Kf()&&this.ca.fu(this.Nb(),a&&this.xa)}};
T.prototype.Kf=function(){return this.nu};
T.prototype.ef=function(a){a!=this.nu&&this.la()&&this.XA(a);this.nu=a;this.Ia&&this.xa&&this.ca.fu(this.Nb(),a)};
T.prototype.WS=function(){return this.pK};
T.prototype.rl=function(a){var b=this.yf(a);if(b)b.Ib(true);else this.Ce>-1&&this.Mh().Ib(false)};
T.prototype.Ib=function(a){this.rl(this.Lk(a))};
T.prototype.Mh=function(){return this.yf(this.Ce)};
T.prototype.hS=function(){this.lq(function(a,b){return(a+1)%b},
this.Ui()-1)};
T.prototype.iS=function(){this.lq(function(a,b){a--;return a<0?b-1:a},
0)};
T.prototype.rv=function(){this.lq(function(a,b){return(a+1)%b},
this.Ce)};
T.prototype.sv=function(){this.lq(function(a,b){a--;return a<0?b-1:a},
this.Ce)};
T.prototype.lq=function(a,b){var c=b<0?this.Lk(this.pc):b,d=this.Ui();c=a(c,d);var e=0;while(e<=d){var f=this.yf(c);if(f&&this.Xo(f)){this.wX(c);return true}e++;c=a(c,d)}return false};
T.prototype.Xo=function(a){return a.Ca()&&a.jb()&&a.De(2)};
T.prototype.wX=function(a){this.rl(a)};
T.prototype.dT=function(){return this.ow};
T.prototype.Lj=function(a){this.ow=a};var xl=function(a,b,c){A.call(this,a,b);this.item=c};
p(xl,A);var yl=function(){nl.call(this);var a=this.Ph();this.Wl={checkbox:a+"-checkbox",content:a+"-content",hover:a+"-highlight"}};
p(yl,nl);ga(yl);yl.prototype.dd=function(){return"menuitem"};
yl.prototype.o=function(a){var b=a.O.o("div",{"class":this.Kh(a).join(" ")},this.iA(a.Bd(),a.O));this.bH(a,b,a.De(8)||a.De(16));return b};
yl.prototype.Ja=function(a){return a&&a.firstChild};
yl.prototype.va=function(a,b){this.SR(b)||b.appendChild(this.iA(b.childNodes,a.O));if(Lb(tc(b),"goog-option")){a.Zn(true);this.Zn(a,b,true)}return yl.b.va.call(this,a,b)};
yl.prototype.Sb=function(a,b){var c=this.Ja(a),d=this.kv(a)?c.firstChild:null;yl.b.Sb.call(this,a,b);if(d&&!this.kv(a))c.insertBefore(d,c.firstChild||null)};
yl.prototype.SR=function(a){var b=Rc(a);return!!b&&b.className.indexOf(this.Wl.content)!=-1};
yl.prototype.iA=function(a,b){return b.o("div",{"class":this.Wl.content},a)};
yl.prototype.Zn=function(a,b,c){if(b){Mh(b,c?"menuitemcheckbox":this.dd());this.bH(a,b,c)}};
yl.prototype.kv=function(a){var b=this.Ja(a);if(b){var c=b.firstChild;return!!c&&!!c.className&&c.className.indexOf(this.Wl.checkbox)!=-1}return false};
yl.prototype.bH=function(a,b,c){if(c!=this.kv(b)){xc(b,"goog-option",c);var d=this.Ja(b);c?d.insertBefore(a.O.o("div",{"class":this.Wl.checkbox}),d.firstChild||null):d.removeChild(d.firstChild)}};
yl.prototype.We=function(a){switch(a){case 2:return this.Wl.hover;case 16:case 8:return"goog-option-selected";default:return yl.b.We.call(this,a)}};
yl.prototype.Tp=function(a){switch(a){case "goog-option-selected":return 16;case this.Wl.hover:return 2;default:return yl.b.Tp.call(this,a)}};
yl.prototype.$=function(){return"goog-menuitem"};var zl=function(a,b,c,d){S.call(this,a,d||yl.getInstance(),c);this.hb(b)};
p(zl,S);zl.prototype.sa=function(){var a=this.eb();return a!=null?a:this.Hp()};
zl.prototype.hb=function(a){this.W(a)};
zl.prototype.Zn=function(a){this.Wg(16,a);var b=this.f();b&&this.ca.Zn(this,b,a)};
ll("goog-menuitem",function(){return new zl(null)});var Al=function(){sl.call(this)};
p(Al,sl);ga(Al);Al.prototype.dd=function(){return"menu"};
Al.prototype.mb=function(a){return a.tagName=="UL"||Al.b.mb.call(this,a)};
Al.prototype.Xi=function(a){return a.tagName=="HR"?new rl:Al.b.Xi.call(this,a)};
Al.prototype.pf=function(a,b){return Uc(a.f(),b)};
Al.prototype.$=function(){return"goog-menu"};
Al.prototype.Ig=function(a){Al.b.Ig.call(this,a);var b=a.f();Mh(b,"menu");Nh(b,"haspopup","true")};var Bl=function(a){rl.call(this,pl.getInstance(),a)};
p(Bl,rl);ll(ql,function(){return new rl});var Cl=function(a,b){T.call(this,ul,b||Al.getInstance(),a);this.ef(false)};
p(Cl,T);Cl.prototype.mt=true;Cl.prototype.qK=false;Cl.prototype.$=function(){return this.yg().$()};
Cl.prototype.pf=function(a){return this.yg().pf(this,a)||this.wD()&&Hb(this.pa,function(b){return typeof b.pf=="function"&&b.pf(a)})};
Cl.prototype.oe=function(a){this.ga(a,true)};
Cl.prototype.setPosition=function(a,b){var c=this.Ca();c||H(this.f(),true);qh(this.f(),a,b);c||H(this.f(),false)};
Cl.prototype.SG=function(a){this.mt=a;a&&this.ef(true)};
Cl.prototype.Y=function(a,b){var c=Cl.b.Y.call(this,a,b);c&&a&&this.la()&&this.mt&&this.Nb().focus();return c};
Cl.prototype.cq=function(a){this.mt&&this.Nb().focus();return Cl.b.cq.call(this,a)};
Cl.prototype.Xo=function(a){return(this.qK||a.jb())&&a.Ca()&&a.De(2)};var Dl=function(a,b){this.r=new I(this);this.Wr(a);b&&this.uY(b)};
p(Dl,J);var El="toggle_display";Dl.prototype.g=null;Dl.prototype.AK=true;Dl.prototype.qz=null;Dl.prototype.Hc=false;Dl.prototype.NY=false;Dl.prototype.sE=-1;Dl.prototype.pE=-1;Dl.prototype.ba=El;Dl.prototype.za=function(){return this.ba};
Dl.prototype.uY=function(a){this.ba=a};
Dl.prototype.f=function(){return this.g};
Dl.prototype.Wr=function(a){this.ZM();this.g=a};
Dl.prototype.ZM=function(){if(this.Hc)throw Error("Can not change this state of the popup while showing.");};
Dl.prototype.Ca=function(){return this.Hc};
Dl.prototype.Y=function(a){if(a){if(!this.g)throw Error("Caller must call setElement before trying to show thepopup");this.bZ()}else this.qv()};
Dl.prototype.Xa=function(){};
Dl.prototype.bZ=function(){if(this.Hc)return;if(!this.En())return;this.Xa();if(this.AK){var a=Ac(this.g);this.r.e(a,F,this.tF,true);if(t){var b=a.activeElement;while(b&&b.nodeName=="IFRAME"){try{var c=Vc(b)}catch(d){break}a=c;b=a.activeElement}this.r.e(a,F,this.tF,true);this.r.e(a,"deactivate",this.sF)}else this.r.e(a,"blur",this.sF)}if(this.ba==El)this.ZY();else this.ba=="move_offscreen"&&this.Xa();this.Hc=true;this.jr()};
Dl.prototype.qv=function(a){if(this.Hc){if(!this.FU(a))return;this.r&&this.r.ya();if(this.ba==El)this.NY?di(this.DD,0,this):this.DD();else this.ba=="move_offscreen"&&this.AU();this.Hc=false;this.Fn(a)}};
Dl.prototype.ZY=function(){this.g.style.visibility="visible";H(this.g,true)};
Dl.prototype.DD=function(){this.g.style.visibility="hidden";H(this.g,false)};
Dl.prototype.AU=function(){this.g.style.left="-200px";this.g.style.top="-200px"};
Dl.prototype.En=function(){return this.dispatchEvent("beforeshow")};
Dl.prototype.jr=function(){this.sE=n();this.pE=-1;this.dispatchEvent("show")};
Dl.prototype.FU=function(a){return this.dispatchEvent({type:"beforehide",target:a})};
Dl.prototype.Fn=function(a){this.pE=n();this.dispatchEvent({type:"hide",target:a})};
Dl.prototype.tF=function(a){var b=a.target;if(!Uc(this.g,b)&&(!this.qz||Uc(this.qz,b))&&!this.DH())this.qv(b)};
Dl.prototype.sF=function(a){var b=Ac(this.g);if(t||wb){var c=b.activeElement;if(c&&Uc(this.g,c))return}else if(a.target!=b)return;if(this.DH())return;this.qv()};
Dl.prototype.DH=function(){return n()-this.sE<150};
Dl.prototype.C=function(){Dl.b.C.call(this);this.r.i();delete this.g;delete this.r};var Fl=function(a,b){this.E1=5;this.YF=b||undefined;Dl.call(this,a)};
p(Fl,Dl);Fl.prototype.setPosition=function(a){this.YF=a||undefined;this.Hc&&this.Xa()};
Fl.prototype.Xa=function(){if(!this.YF)return;var a=this.g;if(!this.Hc){this.g.style.visibility="hidden";H(a,true)}this.YF.Xa(a,this.E1,this.VT);this.Hc||H(a,false)};
var Il=function(a,b,c,d,e,f,g){var h=Mg(c),i=Mg(a),j=new ya(i.x-h.x+c.offsetLeft,i.y-h.y+c.offsetTop),k=1,o=1,r=Og(a),u=Gl(a,b);switch(u){case 1:break;case 2:j.x+=r.width;k=-1;break;case 3:j.y+=r.height;o=-1;break;case 4:j.x+=r.width;j.y+=r.height;k=-1;o=-1;break}if(e){j.x+=k*e.x;j.y+=o*e.y}return Hl(j,c,d,f,g)},
Hl=function(a,b,c,d,e){var f=a.x,g=a.y,h=Gl(b,c);if(d||h!=1){var i=Og(b);switch(h){case 1:f+=d.left;g+=d.top;break;case 2:f-=i.width;if(d){f-=d.right;g+=d.top}break;case 3:g-=i.height;if(d){f+=d.left;g-=d.bottom}break;case 4:f-=i.width;g-=i.height;if(d){f-=d.right;g-=d.bottom}break}}var j=true,k=e||0;if(k!=0){var o=Bc(b),r=Og(b),u=Hc(o.WC()),C=o.zf(),E=new q(0,0);Jl(E,f,g,u,C);var O=k&48,Ua=O&&Kl(r,k,u,d),sc=false;if(r.width>E.width)if(k&1){f-=r.width-E.width;sc=true}else if(k&2)j=false;if(r.height>
E.height)if(k&4){g-=r.height-E.height;sc=true}else if(k&8)j=false;if(f-C.x<0)if(k&1){f=C.x;sc=true}else if(k&2)j=false;if(g-C.y<0)if(k&4){g=C.y;sc=true}else if(k&8)j=false;if(j&&O){sc&&Jl(E,f,g,u,C);Ua=Kl(r,k,E,d)||Ua;Ua&&Ng(b,r)}}j&&Lg(b,f,g);return j},
Jl=function(a,b,c,d,e){var f=b-e.x;a.width=d.width-f;var g=c-e.y;a.height=d.height-g},
Kl=function(a,b,c,d){var e=false;if(b&16){var f=d?d.right+d.left:0;if(a.width+f>c.width){a.width=c.width-f;e=true}}if(b&32){var g=d?d.top+d.bottom:0;if(a.height+g>c.height){a.height=c.height-g;e=true}}return e},
Gl=function(a,b){var c=wh(a);switch(b){case 1:case 2:case 3:case 4:return b;case 5:return c?2:1;case 6:return c?1:2;case 7:return c?4:3;case 8:return c?3:4}},
Ll=function(a){switch(a){case 1:return 2;case 2:return 1;case 3:return 4;case 4:return 3;case 5:return 6;case 6:return 5;case 7:return 8;case 8:return 7}},
Ml=function(a){switch(a){case 1:return 3;case 2:return 4;case 3:return 1;case 4:return 2;case 5:return 7;case 6:return 8;case 7:return 5;case 8:return 6}};
var Nl=function(){};
Nl.prototype.Xa=function(){};
var Ol=function(a,b){this.element=a;this.corner=b};
p(Ol,Nl);Ol.prototype.Xa=function(a,b,c){Il(this.element,this.corner,a,b,null,c)};
var Pl=function(a,b,c){Ol.call(this,a,b);this.G_=c||false};
p(Pl,Ol);Pl.prototype.Xa=function(a,b,c){var d=Il(this.element,this.corner,a,b,null,c,10);if(!d){d=Il(this.element,b,a,this.corner,null,c,10);if(!d)if(this.G_)d=Il(this.element,this.corner,a,b,null,c,5);else Il(this.element,this.corner,a,b,null,c,0)}};
var Ql=function(a,b){this.coordinate=a instanceof ya?a:new ya(a,b)};
p(Ql,Nl);Ql.prototype.Xa=function(a,b,c){Hl(this.coordinate,a,b,c)};
var Rl=function(a,b){Ql.call(this,a,b)};
p(Rl,Ql);Rl.prototype.Xa=function(a,b,c){var d=nh(a);Il(d,1,a,b,this.coordinate,c)};
var Sl=function(a,b){Ql.call(this,a,b)};
p(Sl,Ql);Sl.prototype.Xa=function(a,b,c){var d=nh(a),e=new ya(this.coordinate.x+d.scrollLeft,this.coordinate.y+d.scrollTop);Il(d,1,a,b,e,c)};
var Tl=function(a,b){Sl.call(this,a,b)};
p(Tl,Sl);Tl.prototype.Xa=function(a,b,c){var d=nh(a),e=Bc(d).zf(),f=new ya(this.coordinate.x+e.x,this.coordinate.y+e.y),g=10;if(Il(d,1,a,b,f,c,g))return;if(Il(d,1,a,Ml(b),f,c,g))return;if(Il(d,1,a,Ll(b),f,c,g))return;if(Il(d,1,a,Ml(Ll(b)),f,c,g))return;Il(d,1,a,b,f,c)};var Ul=function(a){Cl.call(this,a);this.SG(true);this.rd=new Jd};
p(Ul,Cl);Ul.prototype.xa=false;Ul.prototype.SZ=false;Ul.prototype.qE=0;Ul.prototype.pA=null;Ul.prototype.ra=function(a){Ul.b.ra.call(this,a);var b=a.getAttribute("for")||a.htmlFor;b&&this.ag(this.O.f(b),3)};
Ul.prototype.A=function(){Ul.b.A.call(this);Ed(this.rd,this.mz,this);this.r.e(this,Fh,this.qF);this.r.e(this.O.Mb(),F,this.ir,true);yb&&this.r.e(this.O.Mb(),ef,this.ir,true)};
Ul.prototype.D=function(){Ul.b.D.call(this);Ed(this.rd,this.EA,this);this.r.ka(this,Fh,this.qF);this.r.ka(this.O.Mb(),F,this.ir,true);yb&&this.r.ka(this.O.Mb(),ef,this.ir,true)};
Ul.prototype.ag=function(a,b,c,d,e){var f=sa(a);if(this.rd.Eb(f))return;var g={g:a,IZ:b,j1:c,aN:d?ef:F,VT:e};this.rd.X(f,g);this.la()&&this.mz(g)};
Ul.prototype.mz=function(a){this.r.e(a.g,a.aN,this.CF)};
Ul.prototype.detach=function(a){var b=sa(a);if(!this.rd.Eb(b))throw Error("Menu not attached to provided element, unable to detach.");this.la()&&this.EA(this.rd.get(b));this.rd.remove(b)};
Ul.prototype.EA=function(a){this.r.ka(a.g,a.aN,this.CF)};
Ul.prototype.Hx=function(a,b,c){var d=this.Ca();if((d||this.x_())&&this.SZ){this.hide();return}var e=a.IZ?new Pl(a.g,a.IZ):new Tl(b,c),f=a.j1||5;if(!d)this.f().style.visibility="hidden";H(this.f(),true);e.Xa(this.f(),f,a.VT);if(!d)this.f().style.visibility="visible";this.pA=a.g;this.rl(-1);this.Y(true)};
Ul.prototype.hide=function(){this.Y(false);if(!this.Ca()){this.qE=n();this.pA=null}};
Ul.prototype.x_=function(){return n()-this.qE<50};
Ul.prototype.qF=function(){this.hide()};
Ul.prototype.CF=function(a){var b=this.rd.fd();for(var c=0;c<b.length;c++){var d=this.rd.get(b[c]);if(d.g==a.currentTarget){this.Hx(d,a.clientX,a.clientY);a.preventDefault();a.stopPropagation();return}}};
Ul.prototype.ir=function(a){this.Ca()&&!this.pf(a.target)&&this.hide()};
Ul.prototype.ze=function(a){Ul.b.ze.call(this,a);this.hide()};
Ul.prototype.C=function(){Ul.b.C.call(this);if(this.rd){this.rd.clear();delete this.rd}};var Vl={value:"albums_list"},Wl={value:"photos_list"},Xl={value:"tags_list",label:"Etiketter"},Yl={value:"person_filter"},Zl={value:"tag_filter",label:Yg},$l={value:"search_filter"},am="uname",bm={name:"isOwner",value:"true"},cm="aid",dm="S",em="F",fm={name:"psc",value:"C"},gm={name:"psc",value:"G"},hm="tags",im="subjectids",jm="optgt",km="TAGS",lm="q",mm="pagesize",nm="debug",om="feat",pm={name:"filter",value:"1"};var qm=function(a){var b=new N(window.location),c="http://"+b.uu();c+=b.WR()?":"+b.Ou():"";c+=b.Oh();var d=[];for(var e=0;e<a.length;e++){var f=a[e].type;switch(f){case "owner_id":var g=a[e].value?a[e].value:b.ab(am);g!=undefined&&d.push(am+"="+g);break;case "album_id":var h=a[e].value?a[e].value:b.ab(cm);d.push(cm+"="+h);break;case Xl:d.push(jm+"="+km);break;case Zl:d.push(hm+"="+a[e].value);break;case Yl:d.push(im+"="+a[e].value);break;case $l:d.push(lm+"="+a[e].value);break;case bm:case fm:case gm:case pm:d.push(f.name+
"="+f.value);break;case 3:d.push("cuname="+a[e].value);break}}if(d.length>0)c+="?"+d.join("&");return c};var sm=function(a,b){if(!rm){lf(_LH.locale);of in pf&&mf()in pf[of]||sf(uf,mf());rm=true}return Pf(a,b)},
rm=false;var um=function(a,b,c,d,e,f){L.call(this);this.zV=a;this.Q1=b;this.ba=c;this.$w=[];this.S0=d;if(b==0)this.$w.push(f,e[0]);else if(b==2)this.$w.push(["Favoriter",e[0]]);else if(b==3)this.$w.push([f,e[0]]);else b==4&&this.$w.push([tm,e[0]])};
p(um,L);var tm="Mina bilder";um.prototype.ha=function(){return"gphoto.context.Search"};
um.prototype.o=function(){this.xc(w("table"));var a=x("tbody"),b=x("tr");this.$x=x("td");this.Lt=x("td");y(this.f(),a);y(a,b);y(b,this.$x);y(b,this.Lt);K(this.$x,"width","100%");rc(this.Lt,"gphoto-context-search-count")};
um.prototype.A=function(){um.b.A.call(this);var a=Tk(s(this.zV)),b=new Vk;if(this.ba==1){var c="foton som \u00e4r m\u00e4rkta med etiketten "+("<b>"+(a+"</b>"));b.So(c)}else{var d="S\u00f6kresultat f\u00f6r "+("<b>"+(a+"</b>"));b.So(d)}var e={type:this.ba==2?$l:Zl,value:Pa(this.zV)},f=null,g=_LH.foreignNickname;if(g){var h=new N(window.location.toString());f={type:3,value:h.ab("cuname"),display:g}}var i=new fl;if(this.S0){var j={type:"owner_id",value:_authuser.name},k={type:bm,value:"true"},o=[j,
e,k];f&&o.push(f);i.No(4,qm(o),tm);j={type:fm};o=[j,e];f&&o.push(f);i.No(2,qm(o),"Favoriter")}var j={type:gm},r={type:pm},o=[j,r,e];f&&o.push(f);i.No(1,qm(o),"Forumbilder");if(f){j={type:"owner_id",value:f.value};o=[j,e,f];i.No(3,qm(o),f.display+"s galleri")}this.ga(b);b.U(this.$x);if(i.vU()>1){i.Me(this.Q1);this.ga(i);i.U(this.$x);rc(i.f(),"gphoto-context-search-toggle")}this.vG()};
um.prototype.rH=function(a,b,c){this.uc=a;this.Rb=b;this.oI=c;this.la()&&this.vG()};
um.prototype.vG=function(){if(this.Rb&&this.oI&&na(this.uc)){var a=sm(1,this.uc+1),b=sm(1,this.oI),c=sm(1,Math.min(this.uc+this.Rb,Math.min(this.oI,1000)));this.Lt.innerHTML=a+("-"+(c+(" av "+b)))}else Mc(this.Lt)};var wm=function(a,b){A.call(this,vm);this.aid=a;this.thumbUrl=b};
p(wm,A);var vm="coverchange";var ym=function(a,b){A.call(this,xm,a);this.entity=a;this.albumId=b||""};
p(ym,A);var xm="objectionrequest";var zm=function(){this.Pb=[];this.rd=[];this.bx=[]};
p(zm,J);zm.prototype.Nv=false;zm.prototype.Ov=false;zm.prototype.Dl=null;zm.prototype.Zs=null;zm.prototype.sp=null;zm.prototype.Bl=null;zm.prototype.ys=null;zm.prototype.nj=false;var Am=5;zm.prototype.$S=function(){return this.nj};
zm.prototype.oe=function(){throw Error("Call to pure virtual method");};
zm.prototype.eK=function(a){this.rd.push(a);a.Ov=true;this.Nv=true};
zm.prototype.ae=function(){if(this.nj)return;for(var a,b=0;a=this.Pb[b];b++)this.UD(a);this.nj=true};
zm.prototype.UD=function(a){if(this.Nv){D(a.element,F,a.Zk,false,a);this.Bl&&uc(a.element,this.Bl)}this.Ov&&this.ys&&uc(a.element,this.ys)};
zm.prototype.MV=function(){for(var a,b=0;a=this.Pb[b];b++){if(this.Nv){Ue(a.element,F,a.Zk,false,a);this.Bl&&vc(a.element,this.Bl)}this.Ov&&this.ys&&vc(a.element,this.ys)}this.Pb.length=0};
zm.prototype.Zg=function(a,b){if(this.Td)return;this.Td=b;var c=new Bm("dragstart",this,this.Td);if(this.dispatchEvent(c)==false){c.i();this.Td=null;return}c.i();var d=b.Ip();this.ve=this.HL(d);Ac(d).body.appendChild(this.ve);this.rc=this.KL(d,this.ve,a);D(this.rc,"drag",this.sw,false,this);D(this.rc,"end",this.Bh,false,this);this.CV();this.lh=null;this.BS();this.rc.Zg(a);a.preventDefault()};
zm.prototype.CV=function(){this.po=[];for(var a,b=0;a=this.rd[b];b++)for(var c,d=0;c=a.Pb[d];d++)this.az(a,c);if(!this.ah)this.ah=new Qf(0,0,0,0)};
zm.prototype.KL=function(a,b,c){var d=this.tO(a,c);b.style.position="absolute";b.style.left=d.x+"px";b.style.top=d.y+"px";return new Di(b)};
zm.prototype.Bh=function(a){var b=this.lh;if(b&&b.Jb){var c=a.clientX,d=a.clientY,e=this.yC(),f=c+e.x,g=d+e.y,h;if(this.Dl)h=this.Dl(b.Uc,b.Cb,f,g);var i=new Bm("drag",this,this.Td,b.Jb,b.Uc,b.g,c,d,f,g);this.dispatchEvent(i);i.i();var j=new Bm("drop",this,this.Td,b.Jb,b.Uc,b.g,c,d,f,g,h);b.Jb.dispatchEvent(j);j.i()}var k=new Bm("dragend",this,this.Td);this.dispatchEvent(k);k.i();Ue(this.rc,"drag",this.sw,false,this);Ue(this.rc,"end",this.Bh,false,this);this.jK(this.lh?this.lh.Uc:null)};
zm.prototype.jK=function(){this.IM()};
zm.prototype.IM=function(){this.KM();this.rc.i();Oc(this.ve);delete this.Td;delete this.ve;delete this.rc;delete this.po;delete this.lh};
zm.prototype.sw=function(a){var b=a.clientX,c=a.clientY,d=this.yC();b+=d.x;c+=d.y;var e=this.lh,f;if(e){if(this.Dl)f=this.Dl(e.Uc,e.Cb,b,c);if(this.zq(b,c,e.Cb)&&f==this.Zs)return;if(e.Jb){var g=new Bm("dragout",this,this.Td,e.Jb,e.Uc,e.g);this.dispatchEvent(g);g.i();var h=new Bm("dragout",this,this.Td,e.Jb,e.Uc,e.g,this.Zs);e.Jb.dispatchEvent(h);h.i()}this.Zs=f;this.lh=null}if(!this.zq(b,c,this.ah))return;e=this.lh=this.YP(b,c);if(e&&e.Jb){if(this.Dl)f=this.Dl(e.Uc,e.Cb,b,c);var i=new Bm("dragover",
this,this.Td,e.Jb,e.Uc,e.g);i.subtarget=f;this.dispatchEvent(i);i.i();var j=new Bm("dragover",this,this.Td,e.Jb,e.Uc,e.g,a.clientX,a.clientY,undefined,undefined,f);e.Jb.dispatchEvent(j);j.i()}e||this.ML(b,c)};
zm.prototype.BS=function(){var a,b,c,d;for(b=0;a=this.bx[b];b++){D(a.g,"scroll",this.$z,false,this);a.Zz=[];a.tW=a.g.scrollLeft;a.uW=a.g.scrollTop;var e=Mg(a.g),f=Og(a.g);a.Cb=new Qf(e.y,e.x+f.width,e.y+f.height,e.x)}for(b=0;d=this.po[b];b++)for(c=0;a=this.bx[c];c++)if(Uc(a.g,d.g)){a.Zz.push(d);d.ax=a}};
zm.prototype.KM=function(){for(var a=0,b;b=this.bx[a];a++){Ue(b.g,"scroll",this.$z,false,this);b.Zz=[]}};
zm.prototype.$z=function(a){for(var b=0,c;c=this.bx[b];b++)if(a.target==c.g){var d=c.uW-c.g.scrollTop,e=c.tW-c.g.scrollLeft;c.uW=c.g.scrollTop;c.tW=c.g.scrollLeft;for(var f=0,g;g=c.Zz[f];f++){g.Cb.top+=d;g.Cb.left+=e;g.Cb.bottom+=d;g.Cb.right+=e}}};
zm.prototype.HL=function(a){var b=this.Qz(a);this.sp&&uc(b,this.sp);return b};
zm.prototype.tO=function(a){var b=Mg(a);b.x+=(parseInt(lh(a,"marginLeft"),10)||0)*2;b.y+=(parseInt(lh(a,"marginTop"),10)||0)*2;return b};
zm.prototype.Qz=function(a){var b=a.cloneNode(true);switch(a.tagName.toLowerCase()){case "tr":return w("table",null,w("tbody",null,b));case "td":case "th":return w("table",null,w("tbody",null,w("tr",null,b)));default:return b}};
zm.prototype.az=function(a,b){var c=b.vO(),d=this.po;for(var e=0;e<c.length;e++){var f=c[e],g=Mg(f),h=Og(f),i=new Qf(g.y,g.x+h.width,g.y+h.height,g.x);d.push(new Cm(i,a,b,f));if(d.length==1)this.ah=new Qf(i.top,i.right,i.bottom,i.left);else{var j=this.ah;j.left=Math.min(i.left,j.left);j.right=Math.max(i.right,j.right);j.top=Math.min(i.top,j.top);j.bottom=Math.max(i.bottom,j.bottom)}}};
zm.prototype.ML=function(a,b){var c=new Qf(this.ah.top,this.ah.right,this.ah.bottom,this.ah.left);for(var d,e=0;d=this.po[e];e++){if(d.Cb.right<=a&&d.Cb.right>c.left)c.left=d.Cb.right;if(d.Cb.left>=a&&d.Cb.left<c.right)c.right=d.Cb.left;if(d.Cb.bottom<=b&&d.Cb.bottom>c.top)c.top=d.Cb.bottom;if(d.Cb.top>=b&&d.Cb.top<c.bottom)c.bottom=d.Cb.top}this.lh=new Cm(c)};
zm.prototype.YP=function(a,b){for(var c,d=0;c=this.po[d];d++)if(this.zq(a,b,c.Cb))if(c.ax){var e=c.ax.Cb;if(this.zq(a,b,e))return c}else return c;return null};
zm.prototype.zq=function(a,b,c){return a>c.left&&a<c.right&&b>c.top&&b<c.bottom};
zm.prototype.yC=function(){return Bc(this.ve).zf()};
zm.prototype.C=function(){zm.b.C.call(this);this.MV()};
var Bm=function(a,b,c,d,e,f,g,h,i,j,k){A.call(this,a);this.dragSource=b;this.dragSourceItem=c;this.dropTarget=d;this.dropTargetItem=e;this.dropTargetElement=f;this.clientX=g;this.clientY=h;this.viewportX=i;this.viewportY=j;this.subtarget=k};
p(Bm,A);Bm.prototype.C=function(){Bm.b.C.call(this);delete this.dragSource;delete this.dragSourceItem;delete this.dropTarget;delete this.dropTargetItem;delete this.dropTargetElement};
var Dm=function(a,b){this.element=v(a);this.data=b;this.wa=null;if(!this.element)throw Error("Invalid argument");};
p(Dm,J);Dm.prototype.dk=null;Dm.prototype.vu=function(a){return a};
Dm.prototype.Ip=function(){return this.dk};
Dm.prototype.vO=function(){return[this.element]};
Dm.prototype.Zk=function(a){var b=this.vu(a.target);b&&this.fU(a,b)};
Dm.prototype.fU=function(a,b){D(b,af,this.$k,false,this);D(b,ze,this.$k,false,this);D(b,$e,this.qw,false,this);this.dk=b;this.VH=new ya(a.clientX,a.clientY);a.preventDefault()};
Dm.prototype.$k=function(a){var b=Math.abs(a.clientX-this.VH.x)+Math.abs(a.clientY-this.VH.y);if(b>Am){var c=this.dk;Ue(c,af,this.$k,false,this);Ue(c,ze,this.$k,false,this);Ue(c,$e,this.qw,false,this);this.wa.Zg(a,this)}};
Dm.prototype.qw=function(){var a=this.dk;Ue(a,af,this.$k,false,this);Ue(a,ze,this.$k,false,this);Ue(a,$e,this.qw,false,this);delete this.VH;this.dk=null};
var Cm=function(a,b,c,d){this.Cb=a;this.Jb=b;this.Uc=c;this.g=d};
Cm.prototype.ax=null;var Em=function(){zm.call(this)};
p(Em,zm);Em.prototype.oe=function(a,b){var c=new Dm(a,b);this.QJ(c)};
Em.prototype.QJ=function(a){a.wa=this;this.Pb.push(a);this.$S()&&this.UD(a)};var Fm=function(a,b,c){L.call(this);this.Vr(a);this.Tg(b);this.W(c||null)};
p(Fm,L);Fm.prototype.uc=-1;Fm.prototype.pb=false;Fm.prototype.mq=false;Fm.prototype.Ia=true;Fm.prototype.ug=function(){return this.wa?this.uc:-1};
Fm.prototype.Tg=function(a){this.uc=a};
Fm.prototype.se="";Fm.prototype.o=function(){this.g=x("div");rc(this.g,this.se)};
Fm.prototype.D=function(){this.Hb&&Oc(this.g);Fm.b.D.call(this)};
Fm.prototype.ha=function(){return"goog.ui.icon.AbstractIcon"};
Fm.prototype.Vr=function(a){this.se=a;this.Hb&&rc(this.g,this.se)};
Fm.prototype.Mh=function(){return this.mq};
Fm.prototype.Ib=function(a){this.mq=!!a};
Fm.prototype.dj=function(){return this.pb};
Fm.prototype.qd=function(a){this.pb=!!a;this.Ib(a)};
Fm.prototype.jb=function(){return this.Ia};
Fm.prototype.Ha=function(a){if(this.Ia!=a){this.Ia=a;var b=a?Dh:Ch;this.dispatchEvent(new A(b,this))}};
Fm.prototype.W=function(a){Fm.b.W.call(this,a);this.Hb&&this.ja()};
Fm.prototype.ja=function(){};
Fm.prototype.jk=function(a){if(!a.Xm(0))return;this.dispatchEvent(new Gm(this,a))};
Fm.prototype.BM=function(a){if(!a.Xm(0))return;this.dispatchEvent(new Gm(this,a,true));a.preventDefault()};
Fm.prototype.Fl=false;Fm.prototype.$j=0;Fm.prototype.width=0;Fm.prototype.height=0;var Hm=function(a,b){return a.uc-b.uc},
Gm=function(a,b,c){A.call(this,Im,a);this.activated=c||false;this.shiftKey=b.shiftKey;this.ctrlKey=b.ctrlKey;this.mouseEvent=b};
p(Gm,A);var Jm=function(){J.call(this)};
p(Jm,J);Jm.prototype.S=function(){return 0};
Jm.prototype.$a=function(){return null};
Jm.prototype.ii=function(){};
Jm.prototype.Xh=function(a,b){this.dispatchEvent(new Km("insert",this,b))};
Jm.prototype.remove=function(a){this.dispatchEvent(new Km("remove",this,a))};
var Im="iconselected",Km=function(a,b,c,d){A.call(this,a,b);this.count=b.S();this.index=c;this.endIndex=d||c};
p(Km,A);var Lm=function(a,b,c,d){Fm.call(this,b,c,d)};
p(Lm,Fm);Lm.prototype.ha=function(){return"gphoto.map.Icon"};
Lm.prototype.A=function(){Lm.b.A.call(this);var a=document.getElementsByTagName("base")[0].href;th(this.g,a+"img/shadow64.png");this.yb=x("div");rc(this.yb,this.se+"-image");y(this.g,this.yb);this.ja();this.Ib(this.mq);D(this.g,F,this.jk,false,this);if(this.j)this.g.title=ab(this.j.c||this.j.t)};
Lm.prototype.ja=function(){if(this.j){K(this.yb,"background-image","url("+this.j.s+"?imgmax=64&crop=1)");if(this.j.lat&&this.j.lon){if(!this.rj){this.rj=x("div");rc(this.rj,this.se+"-mapped");K(this.rj,"backgroundImage","url(img/mapped.gif)");y(this.yb,this.rj)}}else if(this.rj){Oc(this.rj);delete this.rj}}yh(this.g,true)};
Lm.prototype.D=function(){Fm.b.D.call(this);Ue(this.yb,F,this.jk,false,this);delete this.yb;delete this.rj};
Lm.prototype.Ib=function(a){if(this.Hb&&a!=this.mq){Lm.b.Ib.call(this,a);var b=this.se+"-selected";a?uc(this.g,b):vc(this.g,b)}};
Lm.prototype.jk=function(a){this.dispatchEvent(new Gm(this,a))};
Lm.prototype.sO=function(){var a=w("div",{"class":this.se+"-drag"});K(a,"background-image","url("+this.j.s+"?imgmax=32&crop=1)");return a};
Lm.prototype.uO=function(){return Mm};
var Mm=t?new ya(16,33):new ya(13,31);var Nm=function(){zm.call(this);this.r=new I};
p(Nm,zm);Nm.prototype.i=function(){if(!this.xb()){Nm.b.i.call(this);this.r.i()}};
Nm.prototype.Ia=false;Nm.prototype.xu=function(){return this.Ia};
Nm.prototype.Ha=function(a){this.Ia=!!a};
Nm.prototype.oe=function(a,b){var c=new Om(a,this,b);this.Pb.push(c);this.r.e(c.element,F,c.Zk,true,c);this.Bl&&uc(c.element,this.Bl)};
Nm.prototype.Zg=function(a,b){if(this.Td)return;this.Td=b;var c=new Bm("dragstart",this,this.Td);if(this.dispatchEvent(c)==false){c.i();return}c.i();var d=b.Ip(),e;if(d.parentNode){e=Mg(d);e.x-=parseInt(lh(d,"marginLeft"),10)*2;e.y-=parseInt(lh(d,"marginTop"),10)*2;this.ve=this.Qz(d)}else{e=new ya(a.clientX,a.clientY);var f=Ic();e.x+=f.x;e.y+=f.y;if(b.cj)e=Aa(e,b.cj());this.ve=d}this.ve.style.position="absolute";this.ve.style.left=e.x+"px";this.ve.style.top=e.y+"px";this.sp&&uc(this.ve,this.sp);Ac(d).body.appendChild(this.ve);
this.rc=new Di(this.ve);D(this.rc,"drag",this.sw,false,this);D(this.rc,"end",this.Bh,false,this);this.po=[];for(var g,h=0;g=this.rd[h];h++)for(var i,j=0;i=g.Pb[j];j++)this.az(g,i);if(!this.ah)this.ah=new Qf(0,0,0,0);this.lh=null;this.rc.Zg(a);a.preventDefault()};
var Om=function(a,b,c){Dm.call(this,a,c);this.wa=b};
p(Om,Dm);Om.prototype.vu=function(){return this.element};
Om.prototype.Ip=function(){return this.data&&this.data instanceof Lm?this.data.sO():this.dk};
Om.prototype.cj=function(){return this.data&&this.data instanceof Lm?this.data.uO():new ya(0,0)};
Om.prototype.Zk=function(a){this.wa.xu()&&a.Xm(0)&&Om.b.Zk.call(this,a)};var U=function(a,b,c){L.call(this);this.xd=b||"goog-icon-list";this.pb=[];this.r=new I(this);this.Wk=new I(this);this.NA=new I(this);this.gH(c||this.xd+"-icon");this.fH(a)};
p(U,L);var Pm=qe("goog.ui.IconList");U.prototype.J=function(a){Pm.da(a)};
U.prototype.oq="";U.prototype.UU=false;U.prototype.lp=0;U.prototype.bU=0;U.prototype.Rr=null;U.prototype.Ve=null;U.prototype.bc=0;U.prototype.Wt={};U.prototype.i=function(){if(!this.xb()){U.b.i.call(this);this.r.i();this.Wk.i();this.NA.i();this.en&&We(this.en)}};
U.prototype.ha=function(){return"goog.ui.IconList"};
U.prototype.A=function(){U.b.A.call(this);rc(this.g,this.xd);this.Qn()};
U.prototype.D=function(){this.r.ya();U.b.D.call(this)};
U.prototype.Qn=function(){if(!this.Hb)return;if(!this.j||this.j&&this.j.isLoaded&&!this.j.isLoaded())return;this.yb&&this.Ht();this.hp();this.FM()};
U.prototype.hp=function(){if(this.Ed.prototype.Fl){var a=x("table");y(this.g,a);K(a,"width","100%");this.yb=x("tbody");y(a,this.yb)}else{this.yb=x("div");y(this.g,this.yb);var b=x("div");K(b,"clear","both");K(b,"font-size","0");y(this.g,b)}rc(this.yb,this.xd+"-area")};
U.prototype.FM=function(){if(!this.j)return;var a=this.j.S(),b=0,c=a;if(this.UU){var d=this.Qp()*this.bU;b=this.lp*d;c=Math.min(b+d,a)}var e=this.Ed.prototype.$j;this.RL(b,c,e);this.r.e(this,Im,this.$p);this.r.e(this,Dh,this.bq);this.r.e(this,Ch,this.bq)};
U.prototype.RL=function(a,b,c){if(c){var d=this.Ed.prototype.Fl,e;for(var f=a;f<b;f++){if((f-a)%c==0){e=x(d?"tr":"div");y(this.yb,e)}this.lk(f,e)}}else for(var f=a;f<b;f++)this.lk(f,this.yb)};
U.prototype.lk=function(a,b){var c;if(this.j)c=this.j.$a(a);var d=new this.Ed(this,this.oq,a,c);this.ga(d);d.U(b);this.Ve&&this.Ve.oe(d.f(),d)};
U.prototype.Ht=function(){this.fk();this.r.ya();this.Vd(function(a){a.i()});
this.pa=null;this.qe=null;this.Hb&&Mc(this.g);this.yb=null};
U.prototype.Qp=function(){var a=this.Ed.prototype.$j,b=this.Ed.prototype.width;if(a)return a;else if(b)return Math.floor(this.yb.offsetWidth/b)||1;else if(this.pa.length){var c=Mg(this.pa[0].f()).x;for(var d=1;d<this.pa.length;d++){var e=this.pa[d],f=Mg(e.f()).x;if(f<=c)break;c=f}return d}return 0};
U.prototype.W=function(a){if(this.j){this.Ht();this.Wk.ya()}U.b.W.call(this,a);if(this.j){this.Wk.e(this.j,"insert",this.cR);this.Wk.e(this.j,"remove",this.yR);this.Wk.e(this.j,"update",this.MR)}this.Hb&&this.Qn()};
U.prototype.cR=function(){this.Qn()};
U.prototype.yR=function(){this.Qn()};
U.prototype.MR=function(a){var b=a.index,c=a.endIndex;for(b;b<=c;b++){var d=this.yf(b);d&&d.ja()}};
U.prototype.Vr=function(a){this.xd=a;this.Hb&&rc(this.g,a)};
U.prototype.fH=function(a,b){if(this.Ed!=a){this.Ed=a;this.Ht();b&&this.gH(b);this.Qn()}};
U.prototype.gH=function(a){if(this.oq!=a){this.oq=a;this.Vd(function(b){b.Vr(a)})}};
U.prototype.enableDragging=function(a){if(a&&!this.Ve){this.Ve=new Nm;this.Ve.eK(this.Ve);this.Hb&&this.Vd(function(b){this.Ve.oe(b.f(),b)},
this);this.NA.e(this.Ve,"dragstart",this.fj);this.NA.e(this.Ve,"dragend",this.Eg)}this.Ve&&this.Ve.Ha(a)};
U.prototype.fj=function(){for(var a=0;a<this.pb.length;a++)sh(this.pb[a].f(),0.5)};
U.prototype.Eg=function(){for(var a=0;a<this.pb.length;a++)sh(this.pb[a].f(),1)};
U.prototype.Vg=function(a){this.bc=a;if(a==0)this.fk();else if(a==1){var b=this.Rr;this.fk();b&&this.Nr(b,true)}};
U.prototype.dj=function(){return this.pb};
U.prototype.$p=function(a){var b=a.target;if(this.bc==1){a.ctrlKey=false;a.shiftKey=false}if(sb){a.ctrlKey=a.shiftKey;a.shiftKey=false}if(a.shiftKey){this.pb.length==0&&this.zx(b);var c=this.DC(),d=b.ug();if(d<c){var e=c;c=d;d=e}a.ctrlKey||this.fk();for(var f=c;f<=d;f++)this.Nr(this.pa[f],true)}else if(a.ctrlKey||this.bc==3){this.Nr(b,!b.dj());this.zx(b)}else if(!b.dj()){this.fk();this.Nr(b,true);this.zx(b)}a.activated?this.AM():this.Xt();a.stopPropagation();a.preventDefault()};
U.prototype.bq=function(a){var b=a.target,c=String(b.ug()),d=false;if(a.type==Dh&&jc(this.Wt,c)){fc(this.Wt,c);d=true}else if(a.type==Ch&&b.dj()){hc(this.Wt,c,true);d=true}if(d){this.Iz(b,a.type==Dh);this.Xt()}a.stopPropagation();a.preventDefault()};
U.prototype.fk=function(){if(this.pb.length){while(this.pb.length)this.pb.pop().qd(false);this.Xt()}};
U.prototype.Nr=function(a,b){if(a.jb()){this.Iz(a,b);this.Vv=a}};
U.prototype.Iz=function(a,b){var c=b?Xb:Yb;c(this.pb,a,Hm);a.qd(b)};
U.prototype.zx=function(a){this.Rr=a};
U.prototype.DC=function(){return this.Rr?this.Rr.ug():0};
U.prototype.Lk=function(a){return this.pa?Wb(this.pa,a,Hm):-1};
U.prototype.Xt=function(){this.dispatchEvent("select")};
U.prototype.AM=function(){this.dispatchEvent("change")};
U.prototype.WM=function(a){if(a&&!this.en)this.en=D(document,bf,this.fR,false,this);else if(!a&&this.en){We(this.en);this.en=null}};
U.prototype.fR=function(a){if(!(this.pa&&this.pa.length&&Qm(a)))return;var b=a.keyCode,c=this.Vv?this.Vv.ug():this.DC(),d=this.Qp();if(b==38||b==40){var e=b==38?c-d:c+d;if(e>=0&&e<this.pa.length)c=e}else if(b==37){var e=c-1;if(e%d<c%d)c=e}else if(b==39){var e=c+1;if(e%d>c%d)c=e}c=Zh(c,0,this.pa.length-1);var f=this.pa[c];f!=this.Vv&&a.preventDefault();a.shiftKey||this.fk();this.$p(new Gm(f,a));this.Vv=f};
var Qm=function(a){if(a.altKey&&!a.ctrlKey)return false;switch(a.keyCode){case 38:case 40:case 37:case 39:return true}return false};var Rm=function(a){J.call(this);this.g=a;var b=t?"focusin":"focus",c=t?"focusout":"blur";this.Z0=D(this.g,b,this,!t);this.$0=D(this.g,c,this,!t)};
p(Rm,J);Rm.prototype.handleEvent=function(a){var b=a.sm(),c=new we(b);c.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";try{this.dispatchEvent(c)}finally{c.i()}};
Rm.prototype.C=function(){Rm.b.C.call(this);We(this.Z0);We(this.$0);delete this.g};var V=function(a,b,c){L.call(this,c);this.Vb=a||"modal-dialog";this.By=!!b;this.Oc=Sm;this.p=new I(this);this.Dp=new Rm(this.O.Mb())};
p(V,L);V.prototype.Vb=null;V.prototype.By=false;V.prototype.Uq=true;V.prototype.PA=true;V.prototype.DK=0.3;V.prototype.Rj="";V.prototype.wd="";V.prototype.Oc=null;V.prototype.rc=null;V.prototype.xa=false;V.prototype.JM=false;V.prototype.fc=null;V.prototype.gc=null;V.prototype.Pe=null;V.prototype.hf=null;V.prototype.ay=null;V.prototype.wi=null;V.prototype.Qd=null;V.prototype.bd=null;V.prototype.p=null;V.prototype.qi=function(a){this.Rj=a;this.hf&&z(this.hf,a)};
V.prototype.Dc=function(){return this.Rj};
V.prototype.Sb=function(a){this.wd=a;if(this.Qd)this.Qd.innerHTML=a};
V.prototype.Bd=function(){return this.wd};
V.prototype.Ja=function(){this.Qd||this.U();return this.Qd};
V.prototype.Zu=function(){this.la()||this.U();return this.hf};
V.prototype.JL=function(){var a=new Di(this.f(),this.Pe);uc(this.Pe,this.Vb+"-title-draggable");return a};
V.prototype.o=function(){this.QE();this.xc(this.O.o("div",{className:this.Vb,tabIndex:0},this.Pe=this.O.o("div",{className:this.Vb+"-title",id:this.N()},this.hf=this.O.o("span",{className:this.Vb+"-title-text"},this.Rj),this.wi=this.O.o("span",{className:this.Vb+"-title-close"})),this.Qd=this.O.o("div",{className:this.Vb+"-content"}),this.bd=this.O.o("div",{className:this.Vb+"-buttons"}),this.FZ=this.O.o("span",{tabIndex:0})));this.ay=this.Pe.id;Mh(this.f(),"dialog");Nh(this.f(),"labelledby",this.ay);
if(this.wd)this.Qd.innerHTML=this.wd;H(this.f(),false);this.Oc&&this.Oc.rt(this.bd)};
V.prototype.QE=function(){if(this.By&&this.Uq&&!this.gc){this.gc=this.O.o("iframe",{frameborder:0,style:"border: 0",className:this.Vb+"-bg"});H(this.gc,false);sh(this.gc,0)}else if((!this.By||!this.Uq)&&this.gc){Oc(this.gc);this.gc=null}if(this.Uq&&!this.fc){this.fc=this.O.o("div",{className:this.Vb+"-bg"});sh(this.fc,this.DK);H(this.fc,false)}else if(!this.Uq&&this.fc){Oc(this.fc);this.fc=null}};
V.prototype.U=function(a){if(this.la())throw Error(Hh);this.f()||this.o();var b=a||this.O.Mb().body;this.tG(b);V.b.U.call(this,b)};
V.prototype.tG=function(a){this.gc&&a.appendChild(this.gc);this.fc&&a.appendChild(this.fc)};
V.prototype.mb=function(a){return a&&a.tagName&&a.tagName=="DIV"&&V.b.mb.call(this,a)};
V.prototype.ra=function(a){V.b.ra.call(this,a);uc(this.f(),this.Vb);var b=this.Vb+"-content";this.Qd=Xc(this.f(),function(g){return g.nodeType==1&&Lb(tc(g),b)});
if(this.Qd)this.wd=this.Qd.innerHTML;else{this.Qd=this.O.o("div",{className:b});if(this.wd)this.Qd.innerHTML=this.wd;this.f().appendChild(this.Qd)}var c=this.Vb+"-title",d=this.Vb+"-title-text",e=this.Vb+"-title-close";this.Pe=Xc(this.f(),function(g){return g.nodeType==1&&Lb(tc(g),c)});
if(this.Pe){this.hf=Xc(this.Pe,function(g){return g.nodeType==1&&Lb(tc(g),d)});
this.wi=Xc(this.Pe,function(g){return g.nodeType==1&&Lb(tc(g),e)})}else{this.Pe=this.O.o("div",
{className:c});this.f().insertBefore(this.Pe,this.Qd)}if(this.hf)this.Rj=cd(this.hf);else{this.hf=this.O.o("span",{className:d},this.Rj);this.Pe.appendChild(this.hf)}Nh(this.f(),"labelledby",this.ay);if(!this.wi){this.wi=this.O.o("span",{className:e});this.Pe.appendChild(this.wi)}var f=this.Vb+"-buttons";this.bd=Xc(this.f(),function(g){return g.nodeType==1&&Lb(tc(g),f)});
if(this.bd){this.Oc=new Tm(this.O);this.Oc.va(this.bd)}else{this.bd=this.O.o("div",{className:f});this.f().appendChild(this.bd);this.Oc&&this.Oc.rt(this.bd)}this.QE();this.tG(Ac(this.f()).body);H(this.f(),false)};
V.prototype.A=function(){V.b.A.call(this);if(this.PA&&!this.rc)this.rc=this.JL();this.p.e(this.wi,B,this.DF);this.p.e(this.Dp,"focusin",this.yj);Mh(this.f(),"dialog");this.hf.id!==""&&Nh(this.f(),"labelledby",this.hf.id)};
V.prototype.D=function(){this.p.ka(this.wi,B,this.DF);this.p.ka(this.Dp,"focusin",this.yj);this.Ca()&&this.Y(false);if(this.rc){this.rc.i();this.rc=null}V.b.D.call(this)};
V.prototype.Y=function(a){if(a==this.xa)return;var b=this.O.Mb(),c=Jc(b)||window;this.la()||this.U(b.body);if(a){this.CG();this.Xa();this.p.e(this.f(),bf,this.Gn,true);this.p.e(c,df,this.BF,true)}else{this.p.ka(this.f(),bf,this.Gn,true);this.p.ka(c,df,this.BF,true)}this.gc&&H(this.gc,a);this.fc&&H(this.fc,a);H(this.f(),a);if(a){xb&&this.f().focus();if(this.vk()){var d=this.vk().PB();if(d){var e=this.bd.getElementsByTagName("button");for(var f=0,g;g=e[f];f++)if(g.name==d){try{g.focus()}catch(h){}break}}}}this.xa=
a;if(a)this.p.e(this.bd,B,this.rF);else{this.p.ka(this.bd,B,this.rF);this.dispatchEvent("afterhide");this.JM&&this.i()}};
V.prototype.Ca=function(){return this.xa};
V.prototype.CG=function(){this.gc&&H(this.gc,false);this.fc&&H(this.fc,false);var a=this.O.Mb(),b=Jc(a)||window,c=Hc(b),d=a.body.scrollWidth,e=Math.max(a.body.scrollHeight,c.height);if(this.gc){H(this.gc,true);Ng(this.gc,d,e)}if(this.fc){H(this.fc,true);Ng(this.fc,d,e)}if(this.PA){var f=Og(this.f());this.rc.limits=new ch(0,0,d-f.width,e-f.height)}};
V.prototype.Xa=function(){var a=this.O.Mb(),b=Jc(a)||window,c=this.O.zf(),d=c.x,e=c.y,f=Og(this.f()),g=Hc(b),h=Math.max(d+g.width/2-f.width/2,0),i=Math.max(e+g.height/2-f.height/2,0);Lg(this.f(),h,i)};
V.prototype.DF=function(){var a=this.vk(),b=a&&a.Gp();if(b){var c=a.get(b);this.dispatchEvent(new Um(b,c))&&this.Y(false)}else this.Y(false)};
V.prototype.C=function(){V.b.C.call(this);if(this.p){this.p.i();this.p=null}if(this.Dp){this.Dp.i();this.Dp=null}if(this.fc){Oc(this.fc);this.fc=null}if(this.gc){Oc(this.gc);this.gc=null}this.wi=null;this.bd=null;this.FZ=null};
V.prototype.Hj=function(a){this.Oc=a;this.bd&&this.Oc.rt(this.bd)};
V.prototype.vk=function(){return this.Oc};
V.prototype.rF=function(a){var b=this.nN(a.target);if(b){var c=b.name,d=this.vk().get(c);this.dispatchEvent(new Um(c,d))&&this.Y(false)}};
V.prototype.nN=function(a){var b=a;while(b!=null&&b!=this.bd){if(b.tagName=="BUTTON")return b;b=b.parentNode}return null};
V.prototype.Gn=function(a){var b=this.vk();if(a.keyCode==27){if(b&&b.Gp()){var c=b.get(b.Gp());this.dispatchEvent(new Um(b.Gp(),c))&&this.Y(false)}else this.Y(false);a.stopPropagation()}else if(a.keyCode==13){var d=a.target&&a.target.tagName=="BUTTON"?a.target.name:b&&b.PB();if(d){this.dispatchEvent(new Um(d,b.get(d)))&&this.Y(false);a.preventDefault()}a.stopPropagation()}else if(a.keyCode==9&&a.shiftKey&&a.target==this.f()){a.preventDefault();a.stopPropagation()}};
V.prototype.BF=function(){this.CG()};
V.prototype.yj=function(a){this.FZ==a.target&&di(this.tN,0,this)};
V.prototype.tN=function(){t&&this.O.Mb().body.focus();this.f().focus()};
var Um=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};
p(Um,A);var Vm="dialogselect",Tm=function(a){this.O=a||Bc();Jd.call(this)},
Sm,Wm,Xm,Ym,Zm;p(Tm,Jd);Tm.prototype.yA=null;Tm.prototype.g=null;Tm.prototype.Ez=null;Tm.prototype.X=function(a,b,c,d){Jd.prototype.X.call(this,a,b);if(c)this.yA=a;if(d)this.Ez=a;return this};
Tm.prototype.rt=function(a){this.g=a;this.U()};
Tm.prototype.U=function(){if(this.g){this.g.innerHTML="";var a=Bc(this.g);Ed(this,function(b,c){this.g.appendChild(a.o("button",{name:c},b))},
this)}};
Tm.prototype.va=function(a){if(!a||a.nodeType!=1)return;this.g=a;var b=this.g.getElementsByTagName("button");for(var c=0,d,e,f;d=b[c];c++){e=d.name||d.id;f=cd(d)||d.value;e&&this.X(e,f,c==0,d.name==$m)}};
Tm.prototype.PB=function(){return this.yA};
Tm.prototype.Gp=function(){return this.Ez};
Tm.prototype.eO=function(a){var b=this.$N();for(var c=0,d;d=b[c];c++)if(d.name==a||d.id==a)return d;return null};
Tm.prototype.$N=function(){return this.g.getElementsByTagName("BUTTON")};
var $m="cancel";(function(){Wm=(new Tm).X("ok","OK",true);Sm=(new Tm).X("ok","OK",true).X($m,"Avbryt",false,true);Xm=(new Tm).X("yes","Ja",true).X("no","Nej",false,true);Ym=(new Tm).X("yes","Ja").X("no","Nej",true).X($m,"Avbryt",false,true);Zm=(new Tm).X("continue","Forts\u00e4tt").X("save","Spara").X($m,"Avbryt",true,true)})();var an=function(){V.call(this,null,true);kg(this.Zu(),w("h1",null,Zk));this.Sb('<div style="width:50em">Vissa bilder i det h\u00e4r albumet inneh\u00e5ller platsinformation. F\u00f6r n\u00e4rvarande visas inte den h\u00e4r Exif-platsinformationen. Vill du \u00e4ndra standardinst\u00e4llningen s\u00e5 att platsinformationen visas? (Obs! Du kan \u00e4ndra inst\u00e4llning senare p\u00e5 sidan Inst\u00e4llningar.</div>');this.Hj(Xm);this.Sd=D(this,Vm,this.Df,false,this);this.Y(true)};
p(an,V);an.prototype.di=false;an.prototype.i=function(){if(!this.xb()){an.b.i.call(this);this.Sd&&We(this.Sd)}};
an.prototype.Y=function(a){this.di||an.b.Y.call(this,a)};
an.prototype.Df=function(a){if(a.key=="yes"){this.di=true;this.Is("EXIF_DIALOG",false);this.Is("EXIF_GEO",true,m(this.VY,this))}else if(a.key=="no"){this.Is("EXIF_GEO",false);this.Is("EXIF_DIALOG",false,m(this.dS,this))}};
an.prototype.Is=function(a,b,c){var d=["pref="+a,"value="+b].join("&");Ek(_setPrefUrl,c,"POST",d)};
an.prototype.dS=function(a){a.target.Lf()||alert(Ug)};
an.prototype.VY=function(a){this.di=false;if(!a.target.Lf()){alert(Ug);return}window.location.reload()};function bn(a){this.Pa=a;this.contentSize=this.Pa.KB(true);this.eg=this.PT();this.mi=-1;this.Vn=[]}
bn.prototype.JC=function(){if(this.mi<0)return null;var a=this.Pa.AB();return a[this.mi]};
bn.prototype.getContainer=function(){return this.eg};
bn.prototype.lv=function(){return this.mi>=0};
bn.prototype.Tu=function(){return"V\u00e4lj album"};
bn.prototype.Yg=function(){this.cV()};
bn.prototype.PT=function(){var a=document.createElement("div"),b=this.contentSize.height+8,c="position:relative; top:16px; left:6px;  font-family:sans-serif; height:"+b+"px; width:"+this.contentSize.width;c+="px; background: white; overflow:auto; overflow-x:hidden";cn(a,c);var d=document.createElement("table");d.width="100%";d.setAttribute("cellspacing","0");d.setAttribute("cellpadding","0");d.style.borderCollapse="collapse";var e=document.createElement("tbody");d.appendChild(e);this.Zf=e;this.jt=
d;this.Wj(e,true);a.appendChild(d);D(a,F,m(this.Vq,this));a.ondblclick=m(this.rp,this);return a};
bn.prototype.cV=function(){var a=this.Pa.AB();this.Vn=[];this.mi=-1;this.jt.removeChild(this.Zf);this.Zf=document.createElement("tbody");this.jt.appendChild(this.Zf);if(a.length<1){this.Wj(this.Zf,false);return}for(var b=0;b<a.length;b++){var c=a[b],d=document.createElement("tr");this.Zf.appendChild(d);d.style.background=b%2?"#ffffff":"#eeeeee";var e=document.createElement("td");e.height=32;e.width=42;var f=document.createElement("img");f.src=c.thumbnail!=null?c.thumbnail:"img/transparent.gif";f.width=
32;f.height=28;f.hspace=4;f.style.border="1px solid #808080";e.appendChild(f);d.appendChild(e);var e=document.createElement("td");e.height=32;var g=c.S(),h=c.title.replace(/_/g," "),i=document.createElement("font");i.color="#4D4D4D";i.size="4";i.style.cursor="default";i.innerHTML=s(h);e.appendChild(i);var j=document.createElement("font");j.innerHTML="&nbsp;("+g+")";j.style.position="relative";j.style.top="-2px";e.appendChild(j);d.appendChild(e);d.nE=i;d.BL=j;d.ro=f;this.Vn.push(d)}};
bn.prototype.Wj=function(a,b){var c=document.createElement("tr"),d=document.createElement("td"),e="<br><br><br><center><font size=4 font color=#4D4D4D>";e+=this.Pa.Mv()||b?'L\u00e4ser in albumlista...<img src="img/spin.gif" hspace=8></font></center>':"Inga album hittades.";d.innerHTML=e;c.appendChild(d);a.appendChild(c)};
bn.prototype.yh=function(a){this.jt.removeChild(this.Zf);this.Zf=document.createElement("tbody");this.jt.appendChild(this.Zf);var b=document.createElement("tr"),c=document.createElement("td");c.innerHTML="<br><br><br><center><font size=4 font color=#cc0000>"+a+"</font></center>";b.appendChild(c);this.Zf.appendChild(b)};
bn.prototype.zW=function(a){if(this.mi!=a){var b;if(this.mi>=0){b=this.Vn[this.mi];b.style.background=this.mi%2?"#ffffff":"#eeeeee";b.nE.color="#4D4D4D";b.BL.color="#4D4D4D";b.ro.style.border="1px solid #808080"}b=this.Vn[a];if(b){b.style.background="#112ABB";b.nE.color="#ffffff";b.BL.color="#ffffff";b.ro.style.border="1px solid white";this.mi=a;this.Pa.is(true,"V\u00e4lj album")}}};
bn.prototype.Vq=function(a){var b=dn(a),c=Mg(this.Zf),d=Og(this.eg),e=b.y-c.y;if(yb&&b.x-c.x>=d.width-16)return;var f=0;for(var g=0;g<this.Vn.length;g++){var h=this.Vn[g],i=Og(h).height;if(yb)i=Math.max(32,Og(h.nE).height);f+=i;if(e<=f){this.zW(g);return}}};
bn.prototype.rp=function(){this.JC()&&this.Pa.dx()};function en(a,b,c,d,e,f,g,h,i,j,k){this.X1=a;this.N_=b;this.M0=c;this.JK=d;this.uT=h;this.GG=i;this.ud=j;this.NM=k;this.Md=null;this.Sq=e;this.Zh=f;this.$s=this.JK-this.uT-this.GG;this.vh=g;this.nZ=g;this.P0=0;this.Sn()}
en.prototype.QP=function(){return this.Md};
en.prototype.Sn=function(){this.Md=document.createElement("div");this.vt=document.createElement("img");this.vt.setAttribute("src",this.N_);this.vt.setAttribute("width",this.JK);this.L0=document.createElement("div");this.L0.setAttribute("id",this.X1+"-knob");this.If=document.createElement("img");this.If.setAttribute("src",this.M0);this.If.setAttribute("border","0");cn(this.If,"position:relative; top:0px; left:0px; cursor:move");this.If.style.top="2px";this.Md.appendChild(this.vt);this.Md.appendChild(this.If);
this.tx()};
en.prototype.JJ=function(){this.U0=m(this.fj,this);this.M_=m(this.oQ,this);D(this.If,F,this.U0);D(this.vt,B,this.M_)};
en.prototype.fj=function(a){var b=dn(a);this.P0=b.x-this.GG;this.O2=parseInt(this.If.style.left,10);this.nZ=this.vh;this.FK=Mg(this.Md);this.Zq=m(this.Gm,this);this.Fs=m(this.Eg,this);this.or=m(this.Ef,this);D(document.body,af,this.Zq);D(document.body,$e,this.Fs);D(document.body,ze,this.or);fn(a);return false};
en.prototype.Gm=function(a){var b=dn(a),c=Math.round(this.If.width/2),d=b.x-this.FK.x;if(d<this.$s/2)c=0;this.vh=this.SK(d-c);this.tx();this.ud&&this.ud(this.vh);fn(a);return false};
en.prototype.Eg=function(a){Ue(document.body,af,this.Zq);Ue(document.body,$e,this.Fs);Ue(document.body,ze,this.or);this.NM&&this.NM(this.nZ,this.vh);fn(a);return false};
en.prototype.Ef=function(a){a.relatedTarget||a.toElement||this.Eg(a)};
en.prototype.oQ=function(a){this.FK=Mg(this.Md);return this.Gm(a)};
en.prototype.PO=function(a){var b=this.RK(a),c=Math.round(this.If.width/2);return b-c-this.GG-this.$s};
en.prototype.tx=function(){this.If.style.left=this.PO(this.vh)+"px"};
en.prototype.sa=function(){return this.vh};
en.prototype.hb=function(a){if(a!=this.vh){this.vh=a;this.tx();this.ud&&this.ud(this.vh)}};
en.prototype.RK=function(a){return(a-this.Sq)*this.$s/(this.Zh-this.Sq)};
en.prototype.SK=function(a){var b=Math.round(this.If.width/2),c=this.Zh-this.Sq,d=this.Sq+Math.round(c*(a-this.uT)/(this.$s-b));return Math.max(Math.min(d,this.Zh),this.Sq)};function gn(a){this.Pa=a;this.dp=this.Pa.KB(true);this.eg=this.RT();this.Sg=-1;this.kj=[];this.Og=[];this.Jc=null;this.Gy=5;this.rK=this.Pa.rK}
gn.prototype.QG=function(a){if(a!=this.Jc){this.Jc=a;a!=null&&this.AT();this.Sg=-1;this.WF()}};
gn.prototype.sc=function(){return this.Jc};
gn.prototype.getContainer=function(){return this.eg};
gn.prototype.lv=function(){return this.Sg>=0};
gn.prototype.VI=function(){return true};
gn.prototype.Tu=function(){return"V\u00e4lj foto"};
gn.prototype.RT=function(){var a=document.createElement("div"),b=4,c=this.dp.height;if(this.VI())c-=20;else b=16;var d="display:none; position:relative; top:"+b+"px; left:6px; height:"+c+"px; width:"+this.dp.width+"px";cn(a,d);this.Cf=document.createElement("div");d="height:"+c+"px; width:"+this.dp.width+"px; padding-left: 6px; padding-top: 4px; font-family:sans-serif; background: white; overflow:auto";cn(this.Cf,d);this.bh=document.createElement("div");this.Cf.appendChild(this.bh);this.Wj();D(this.Cf,
F,m(this.Vq,this));this.Cf.ondblclick=m(this.rp,this);a.appendChild(this.Cf);if(this.VI()){this.Md=document.createElement("div");cn(this.Md,"position:absolute; top:238px; left:69px; display: none");this.RH=new en("zoom","img/slidertrack.png","img/sliderknob.png",215,0,100,50,17,24,m(this.r_,this),null);var e=this.RH.QP();this.RH.JJ();this.Md.appendChild(e);a.appendChild(this.Md)}else this.Md=null;return a};
gn.prototype.r_=function(a){this.setZoom(Math.round((100-a)/10))};
gn.prototype.WF=function(){this.Cf.removeChild(this.bh);this.bh=document.createElement("div");this.Cf.appendChild(this.bh);this.kj=[];this.Og=[];var a;a=this.Jc==null?this.Pa.Nc:this.Jc.wP();if(a.length<1){this.Pa.Mv()?this.Wj():this.yh("Inga bilder hittades.");if(this.Md)this.Md.style.display="none";return}for(var b=0;b<a.length;b++){var c=a[b],d=document.createElement("img"),e=Math.round((this.dp.width-60)/this.Gy),f=c.Ti();if(f==0)var g=Math.round(e*3/4);else if(f>1)var g=Math.round(e/f);else{e=
Math.round(e*f);var g=Math.round(e/f)}d.src=c.thumbnailURL;d.width=e;d.height=g;if(c.title!=null)d.title=this.ZP(c);if(b==this.Sg){d.style.border="2px solid #112ABB";d.hspace=0;d.vspace=0}else{d.style.border="1px solid #808080";d.hspace=1;d.vspace=1}this.bh.appendChild(d);this.kj.push(d);this.Og.push(c)}if(this.Md)this.Md.style.display=a.length>0?"inline":"none"};
gn.prototype.Wj=function(){if(this.Pa.tS()&&!this.Pa.Mv())return;var a=document.createElement("div");a.innerHTML='<br><br><br><center><font size=4 font color=#4D4D4D>L\u00e4ser in foton...<img src="img/spin.gif" hspace=8></font></center>';this.bh.appendChild(a)};
gn.prototype.yh=function(a){this.Cf.removeChild(this.bh);this.bh=document.createElement("div");this.Cf.appendChild(this.bh);var b=document.createElement("div");b.innerHTML="<br><br><br><center><font size=4 font color=#cc0000>"+a+"</font></center>";this.bh.appendChild(b)};
gn.prototype.ZP=function(a){var b=a.title,c=a.rO();if(c!=null)b+=", "+c;return b};
gn.prototype.JP=function(){if(this.Sg<0)return null;return this.Og[this.Sg]};
gn.prototype.qd=function(a){if(a!=this.Sg){if(this.Sg>=0){var b=this.kj[this.Sg];b.style.border="1px solid #808080";b.hspace=1;b.vspace=1}var c=this.kj[a];c.style.border="2px solid #112ABB";c.hspace=0;c.vspace=0;this.Sg=a;this.Pa.is(true,"V\u00e4lj foto")}};
gn.prototype.q_=function(){var a=Math.round((this.dp.width-40)/this.Gy);for(var b=0;b<this.kj.length;b++){var c=this.kj[b];c.width=a;c.height=a}};
gn.prototype.QK=function(a){for(var b=0;b<this.kj.length;b++){var c=this.kj[b],d=Mg(c);if(yb){d.x-=this.Cf.scrollLeft;d.y-=this.Cf.scrollTop}var e=Og(c);if(a.x>=d.x&&a.y>=d.y&&a.x<d.x+e.width&&a.y<d.y+e.height)return b}return null};
gn.prototype.AT=function(){var a;if(this.Jc!=null){if(this.Jc.aa==null||this.Jc.Ap)return;a=this.Jc.aa}else{var b=this.Pa.pO();a=b.url}this.rK||(a+="&nocache="+n());this.Pa.hs(true);Ek(a,m(this.Ar,this))};
gn.prototype.Ar=function(a){var b=null,c=a.target,d=document.location.hash;if(d.length>0&&d.charAt(0)=="#")d=d.substring(1);this.Pa.hs(false);if(!c.Lf()){var e=this.Pa.Rp();e.yh("Matningen kunde inte l\u00e4sas in. F\u00f6rs\u00f6k igen senare.");return}var f;f=t?this.Pa.OF(c.kc()):c.HC();b=new hn(this.Pa,f,false);var g=null;if(b!=null){if(this.Jc==null)this.Pa.Nc=[];g=b.lC();for(var h=0;h<g.length;h++){var i=g[h];this.Jc!=null?this.Jc.ZJ(i):this.Pa.Nc.push(i);if(i.id==d){this.Sg=h;this.Pa.is(true,
"V\u00e4lj foto")}}}if(this.Jc)this.Jc.Ap=true;this.Yg()};
gn.prototype.Vq=function(a){var b=dn(a),c=this.QK(b);c!=null&&this.qd(c)};
gn.prototype.rp=function(){this.Pa.dx()};
gn.prototype.setZoom=function(a){if(a<1)a=1;if(this.Gy!=a){this.Gy=a;this.q_()}};
gn.prototype.Yg=function(){this.WF()};
gn.prototype.reset=function(){this.RH.hb(50)};function hn(a,b,c){this.Pa=a;this.E_=b;this.de=[];this.dN(c)}
hn.prototype.lC=function(){return this.de};
hn.prototype.dN=function(a){var b=this.E_.getElementsByTagName("entry");for(var c=0;c<b.length;c++){var d=b[c];a?this.KJ(d):this.$J(d)}};
hn.prototype.rg=function(a,b){var c=this.Dm(a,b);for(var d=0;d<c.length;d++){var e=cd(c[d]);if(e)return e}return null};
hn.prototype.Dm=function(a,b){var c=b,d=b.split(":");if(d.length>1){var e=xb&&Ab("1.9");if(!t&&!e)c=d[1]}else if(yb&&!Ab("420"))c="*";var f=a.getElementsByTagName(c),g=[];for(var h=0;h<f.length;h++)f[h].nodeName==b&&g.push(f[h]);return g};
hn.prototype.oC=function(a,b){var c=this.Dm(a,"link");for(var d=0;d<c.length;d++){var e=c[d].getAttribute("rel");if(e!=b)continue;return c[d].getAttribute("href")}return null};
hn.prototype.KJ=function(a){var b=this.rg(a,"title"),c=this.Dm(a,"media:thumbnail"),d=c[0].getAttribute("url"),e=this.rg(a,"gphoto:numphotos"),f=this.oC(a,"http://schemas.google.com/g/2005#feed"),g=Vi(f);g.ua("thumbsize",160);f=g.toString();var h=this.rg(a,"gphoto:id"),i=this.rg(a,"summary");d=this.et(d,f);var j=new jn(b,h,d);j.Mn=parseInt(e,10);j.aa=f;j.description=i;this.de.push(j)};
hn.prototype.$J=function(a){var b=this.rg(a,"title"),c=this.oC(a,"alternate"),d=this.Dm(a,"media:thumbnail"),e=d[0].getAttribute("url"),f=this.Dm(a,"media:content"),g=f[0].getAttribute("url"),h=this.rg(a,"gphoto:id"),i=this.rg(a,"gphoto:videostatus");if(i&&i!="final"){e=pj(i,"_cropped");g=pj(i,"")}else{e=this.et(e,c);g=this.et(g,c)}var j=parseInt(this.rg(a,"gphoto:width"),10),k=parseInt(this.rg(a,"gphoto:height"),10),o=new kn(b,"image/jpeg",h,e,g);o.kX(j,k);this.de.push(o)};
hn.prototype.et=function(a,b){if(a==null)return null;var c=a;if(a.length<7||a.substring(0,7)!="http://"){var d=b.split("/");c="http://"+d[2]+a}return c};function ln(a,b,c,d,e,f,g,h){this.title=a;this.id=b;this.user=c;this.Qi=d;this.url=e;this.selectMode=f;this.description=g;this.extraParams=h;this.hasTags=false;this.canDelete=false;this.b0=[];this.V2=false}
ln.prototype.push=function(a){this.b0.push(a)};var mn=function(a){this.Pa=a;this.VZ=this.tT();this.bc=0;this.ty();this.S2=false;this.Q2=0};
mn.prototype.tT=function(){var a=document.createElement("div"),b=t?"4":"8";cn(a,"position:relative; top:4px; left:12px; background: transparent; font-family:sans-serif; width:380px; padding:0px; height:42px");var c=document.createElement("div");cn(c,"position:absolute; top:"+b+"px; left:4px; color: white; font-weight: bold; cursor:default");c.unselectable="on";c.innerHTML="Fotov\u00e4ljaren";a.appendChild(c);this.mn=document.createElement("div");cn(this.mn,"position:absolute; top:32px; left:4px; color: #777777; cursor: pointer");
a.appendChild(this.mn);D(this.mn,B,m(this.RZ,this),true);D(a,F,m(this.fj,this),true);return a};
mn.prototype.getContainer=function(){return this.VZ};
mn.prototype.KX=function(a){this.mn.innerHTML="<font size=2><b>"+a+"</b></font>"};
mn.prototype.RZ=function(){if(this.bc==1)if(this.Pa.RR()&&this.Pa.xC()=="PORTRAIT"){this.Pa.Vg(0);this.Pa.Xj.Yg()}};
mn.prototype.ty=function(){var a=this.Pa.xC()=="BANNER",b="V\u00e4lj ett album att bl\u00e4ddra i:",c="#777777",d="none";if(a)b="V\u00e4lj ett omslagsfoto:";else if(this.bc==1){b="&laquo;&nbsp;Tillbaka till albumlistan";c="#112ABB";d="underline"}this.KX(b);this.mn.style.color=c;this.mn.style.textDecoration=d};
mn.prototype.Vg=function(a){this.bc=a;this.ty()};
mn.prototype.fj=function(a){this.WD=dn(a);var b=this.Pa.TB(),c=Mg(this.VZ),d=this.WD.y-c.y;this.N0=parseInt(b.style.left,10);this.O0=parseInt(b.style.top,10);if(d>28)return false;this.Zq=m(this.Gm,this);this.Fs=m(this.Eg,this);this.or=m(this.Ef,this);D(document.body,af,this.Zq);D(document.body,$e,this.Fs);D(document.body,ze,this.or);return false};
mn.prototype.Gm=function(a){var b=dn(a),c=this.Pa.TB(),d=b.y-this.WD.y+this.O0,e=b.x-this.WD.x+this.N0,f=Hc(),g=f.width-40,h=f.height-40;d=Math.max(Math.min(d,h),0);e=Math.max(Math.min(e,g),0);c.style.top=d+"px";c.style.left=e+"px";fn(a);return false};
mn.prototype.Eg=function(a){Ue(document.body,af,this.Zq);Ue(document.body,$e,this.Fs);Ue(document.body,ze,this.or);fn(a);return false};
mn.prototype.Ef=function(a){a.relatedTarget||a.toElement||this.Eg(a)};var cn=function(a,b){t?a.style.setAttribute("cssText",b):a.setAttribute("style",b)},
fn=function(a){if(a.stopPropagation){a.preventDefault();a.stopPropagation()}else{a.cancelBubble=true;a.returnValue=false}},
dn=function(a){var b={x:a.clientX,y:a.clientY},c=Ic();b.x+=c.x;b.y+=c.y;return b};var nn=function(a,b,c,d){J.call(this);this.eg=this.QT();this.T1=a;this.Kl=b;this.Cv=c;this.nr=d;this.mp={};this.Nc=[];this.Y1=[];this.bc=0;this.li=null;this.r2=false;this.yV=false;this.lM=false;this.Jc=null;this.Pr=null;this.CY();this.ig=null;this.i0=null;this.vL=parseInt(this.IB("contentWidth"),10);this.a0=parseInt(this.IB("contentHeight"),10);this.FT();if(this.ig)this.bc=this.ig.selectMode;this.nI=new mn(this);this.Ec=new gn(this);this.Xj=new bn(this);this.f3={};this.sT();this.ig&&this.kC();document.body.appendChild(this.eg)};
p(nn,J);nn.prototype.KB=function(){var a={};a.width=this.vL;a.height=this.a0;return a};
nn.prototype.sT=function(){var a=document.createElement("table"),b=document.createElement("tbody"),c=document.createElement("tr"),d=document.createElement("td");a.appendChild(b);a.setAttribute("cellpadding","0");a.setAttribute("cellspacing","0");a.style.borderCollapse="collapse";b.appendChild(c);c.appendChild(d);d.appendChild(this.nI.getContainer());c=document.createElement("tr");this.aA=document.createElement("td");this.aA.height=t?266:270;b.appendChild(c);c.appendChild(this.aA);this.rT();c=document.createElement("tr");
d=document.createElement("td");b.appendChild(c);c.appendChild(d);var e=document.createElement("center");e.style.padding="20px";this.li=document.createElement("input");this.li.type="button";this.li.disabled="1";this.li.value="V\u00e4lj album";D(this.li,B,m(this.dx,this));e.appendChild(this.li);var f=document.createElement("input");f.type="button";f.value="Avbryt";cn(f,"position:relative; left:6px");D(f,B,m(this.dL,this));e.appendChild(f);d.appendChild(e);this.eg.appendChild(a)};
nn.prototype.rT=function(){var a=document.createElement("table");a.setAttribute("cellspacing","8");a.setAttribute("cellpadding","0");cn(a,"position:relative; left:4px");var b=document.createElement("tbody"),c=document.createElement("tr"),d=document.createElement("td");a.appendChild(b);b.appendChild(c);c.appendChild(d);d.width=this.vL;d.appendChild(this.Xj.getContainer());d.appendChild(this.Ec.getContainer());this.aA.appendChild(a)};
nn.prototype.TB=function(){return this.eg};
nn.prototype.show=function(a){this.eg.style.display="block";this.zj=a;this.Ec.reset();D(l,Xf,m(this.hide,this))};
nn.prototype.hide=function(){this.eg.style.display="none";this.zj&&this.zj();this.zj=null;Ue(l,Xf,m(this.hide,this))};
nn.prototype.is=function(a,b){if(this.li){this.li.disabled=a?"":"1";if(b!=null)this.li.value=b}};
nn.prototype.xC=function(){return this.nr};
nn.prototype.XX=function(a,b){if(this.nr!=a){this.nr=a;var c=this.Ec.sc();if(a=="BANNER"&&this.bc!=1||c&&c.id!=this.Cv){this.bc=0;this.kC()}this.nI.ty()}this.lM=b};
nn.prototype.AB=function(){return this.Nc};
nn.prototype.pO=function(){return this.ig};
nn.prototype.RR=function(){return this.ig&&this.ig.selectMode==0};
nn.prototype.UN=function(a){for(var b=0;b<this.Nc.length;b++){var c=this.Nc[b];if(a==c.id)return c}return null};
nn.prototype.Vg=function(a){if(this.bc!=a){this.Xj.getContainer().style.display=a==0?"block":"none";this.Ec.getContainer().style.display=a==1?"block":"none";this.bc=a}var b=this.Rp();b&&this.is(b.lv(),b.Tu());this.nI.Vg(a)};
nn.prototype.Rp=function(){if(this.bc==0)return this.Xj;else if(this.bc==1)return this.Ec;return null};
nn.prototype.dx=function(){if(this.bc==0){this.Ec.QG(this.Xj.JC());this.Vg(1)}else if(this.bc==1){this.hide();this.Jc=this.Ec.sc();this.Pr=this.Ec.JP();if(this.Pr){this.EI(this.Pr);this.lM||this.EU(null)}}else this.hide()};
nn.prototype.dL=function(){this.hide()};
nn.prototype.QT=function(){var a=document.createElement("div"),b="position: absolute; top: 20px; left:20px; z-index:1001; display:none; padding:0px; width:408px; height:380px; ";if(t&&!Ab("8")){var c=document.getElementsByTagName("base")[0],d=c.href+"img/dialogframe.png",e=document.createElement("div"),f='position:absolute; width:408px; height:380px; display:block; z-index:-1; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled="true", src="'+d+'", sizingMethod="scale");';cn(e,f);a.appendChild(e)}else b+=
'background-image: url("img/dialogframe.png")';cn(a,b);return a};
nn.prototype.IB=function(a){return this.mp[a]};
nn.prototype.CY=function(){this.mp.commandLabel="V\u00e4lj foto";this.mp.logoURL="img/googlephotos_sm.gif";this.mp.contentWidth=364;this.mp.contentHeight=248};
nn.prototype.Yg=function(){if(this.bc==0&&this.Xj)this.Xj.Yg();else this.bc==1&&this.Ec&&this.Ec.Yg()};
nn.prototype.EI=function(a){var b="lhcl_portrait_id",c="48",d=false;if(this.nr=="BANNER"){b="lhid_cover_id";c="160";d=_album.blogger}var e=a.thumbnailURL,f=e.split("?"),g=f[0];g=g.replace(/\/s160-c\//,"/s"+c+"-c/");var h=document.getElementById(b);if(h)if(d)h.style.background="url('"+g+"') no-repeat left";else h.src=g;this.dispatchEvent(new wm(this.Jc.id,g))};
nn.prototype.OF=function(a){var b;if(t){b=new ActiveXObject("Microsoft.XMLDOM");b.async=false;b.loadXML(a)}else{var c=new DOMParser;b=c.parseFromString(a,"text/xml")}return b};
nn.prototype.EU=function(a){var b=this.Jc.id,c=this.T1+"&uname="+this.Kl+"&aid="+b,d=(new Date).getTime();c+="&nocache="+d;var e="selectedphotos="+this.Pr.id+"&noredir=true&optgt="+this.nr;Ek(c,m(this.DV,this,this.Pr,a),"POST",e)};
nn.prototype.DV=function(a,b,c){var d=c.target;if(d.Lf()){this.EI(a);b&&b.submit()}};
nn.prototype.kC=function(){var a=this.ig.url;this.hs(true);Ek(a,m(this.Ar,this))};
nn.prototype.Ar=function(a){var b=this.Rp(),c=a.target;this.hs(false);if(!c.Lf()){b.yh&&b.yh("Matningen kunde inte l\u00e4sas in. F\u00f6rs\u00f6k igen senare.");return}var d=c.kc();if(d.substring(0,5)!="<?xml"){b.yh&&b.yh("Den beg\u00e4rda inmatningen kan inte hittas.");return}var e=null,f=this.bc==0,g;g=t?this.OF(d):c.HC();e=new hn(this,g,f);if(e!=null)this.Nc=e.lC();this.yW();var h=this.Rp();h&&h.Yg()};
nn.prototype.yW=function(){if(this.Cv&&this.Cv.length>0){var a=this.UN(this.Cv);if(a!=null){this.Ec.QG(a);this.Vg(1)}}};
nn.prototype.Mv=function(){return this.yV};
nn.prototype.hs=function(a){this.yV=a};
nn.prototype.tS=function(){return this.ig&&this.ig.extraParams=="q=*"};
nn.prototype.FT=function(){var a="http://"+document.domain+":"+document.location.port+"/data/feed/api/user/"+this.Kl+"?kind=album&thumbsize=160",b=new ln(_features.PWA_NEWUI?"My Picasa Web Albums":"Mina Google-foton","lh",this.Kl,"Lighthouse",a,0,null,null);this.Y1.push(b);this.ig=b;this.i0="lh"};
function jn(a,b,c){this.title=a;this.id=b;this.thumbnail=c;this.ZU=[];this.description=null;this.Mn=0;this.aa=null;this.Ap=false;this.Z2=null}
jn.prototype.ZJ=function(a){this.ZU.push(a)};
jn.prototype.S=function(){return this.Mn};
jn.prototype.wP=function(){return this.ZU};
function kn(a,b,c,d,e){this.title=a;this.id=c;this.thumbnailURL=d;this.fullsizeURL=e;this.mediaType=b;this.Ls=-1;this.BD=-1}
kn.prototype.kX=function(a,b){this.Ls=a;this.BD=b};
kn.prototype.Ti=function(){return 1};
kn.prototype.rO=function(){if(this.Ls==-1||this.BD==-1)return null;return this.Ls.toString()+"x"+this.BD.toString()};var on=function(a){this.MW=a;this.Tf={}};
on.prototype.t_="2";on.prototype.hZ=-1;on.prototype.kh="na";on.prototype.kY=function(a){this.hZ=a};
on.prototype.ql=function(a){this.kh=a};
on.prototype.sk=function(){return this.kh};
on.prototype.fY=function(a){this.Tf.st=a};
on.prototype.EX=function(a){this.Tf.ol=a};
on.prototype.OW=function(a){this.Tf.aft=a};
on.prototype.mH=function(a){this.Tf.pst=a};
on.prototype.lH=function(a){this.Tf.prt=a};
on.prototype.vX=function(a){this.Tf.sgt=a};
on.prototype.WW=function(a){this.Tf.sbt=a};
on.prototype.UX=function(a){this.Tf.nt=a};
on.prototype.aX=function(a){this.Tf.ct=a};
on.prototype.FX=function(a){this.Tf.jpt=a};
on.prototype.KP=function(){return this.MW};
on.prototype.Bf=function(){var a="http://csi.gstatic.com/csi?s="+this.MW+"&v="+this.t_+"&action="+this.kh,b=[];$b(this.Tf,function(c,d){b.push(d+"."+c)});
if(b.length>0)a+="&rt="+b.join(",");return a};var pn=function(a){this.pa={};this.Kd=a;this.Qj=[]};
pn.prototype.Zc=-1;pn.prototype.Sj=-1;pn.prototype.kh="";var qn=new pn("root");qn.ajaxIndex=0;qn.startNewAjaxTimer=function(a){this.ajaxIndex++;var b=this.get("ajax").get(String(qn.ajaxIndex));b.start();b.ql(a)};
pn.prototype.Ql=function(a,b){var c=new rn(a,b);this.Qj.push(c);return c};
pn.prototype.get=function(a){this.pa[a]||(this.pa[a]=new pn(a));return this.pa[a]};
pn.prototype.Rm=function(a){return!!this.pa[a]};
pn.prototype.getName=function(){return this.Kd};
pn.prototype.sk=function(){return this.kh};
pn.prototype.QR=function(){return this.kh!=""};
pn.prototype.MC=function(){var a=0;for(var b in this.pa)a+=this.pa[b].Cg();for(var c in this.Qj)a+=this.Qj[c].getTime();return a};
pn.prototype.Cg=function(){if(this.Sj>=0)return this.Sj;return this.MC()};
pn.prototype.zD=function(){return this.Zc>0};
pn.prototype.YR=function(){return this.Sj>=0};
pn.prototype.SC=function(){return this.Sj>=0?this.Sj-this.MC():0};
pn.prototype.J=qe("gphoto.perf.Timer");pn.prototype.gU=function(a){function b(d,e){var f=e.get(d.n);f.Cx(-1,d.t);for(var g in d.c)b(d.c[g],f);for(var h in d.m){var i=d.m[h],j=f.Ql(i.n,i.t);j.setTime(-1,i.m)}}
if(!a)return;for(var c=0;c<a.length;c++)b(a[c],this)};
pn.prototype.hU=function(a){for(var b in a){var c=b.split("\\"),d,e;if(!c||c.length==0||c.length>2)continue;else{d=c[0];e=c[1]}var f=this;if(d&&d!=""){d=d.split("/");for(var g in d)f=f.get(d[g])}var h;if(e&&e!=""){e=e.split("/");var h=f.Ql(e[0],e.length==1?"":e[1]);h.setTime(a[b].s,a[b].t)}else f.Cx(-1,a[b].t)}};
pn.prototype.output=function(){function a(b){var c='<ul id="timings"><li><span id="childname">'+b.Kd+'</span>, total time: <span id="time">'+b.Cg()+'ms</span>, unclassified time: <span id="time">'+b.SC()+'ms</span>, start: <span id="time">'+b.Zc;if(b.QR())c+=', action: <span id="time">'+b.sk()+"</span>";c+="</li>";for(var d in b.pa)c+=a(b.pa[d]);var e=true;for(var f in b.Qj){e||(c+="<br/>");e=false;var g=b.Qj[f];c+='timing: <span id="timename">'+g.getName()+'</span>, type=<span id="timetype">'+g.za()+
'</span>, time=<span id="time">'+g.getTime()+'ms</span>, start: <span id="time">'+g.Cl+"</span>";if(g.Zx.length>0){c+="<ul>";c+="<li>start</li>";var h=g.Cl;for(var f in g.Zx){var i=g.Zx[f];c+="<li>"+i.name+": "+(i.time-h)+"ms delta</li>";h=i.time}c+="<li>stop: "+(g.getTime()-(h-g.Cl))+"ms delta</li>";c+="</ul>"}}c+="</ul>";return c}
return"<style>ul#timings {list-style-type: disc; margin-left: 15px; padding: 0;}ul#timings li {color: #505050;}ul#timings li span {font-weight: bold;}span#childname {color: darkblue;}span#timename {color: blue;}span#timetype {color: green;}span#time {color: black;}</style>"+a(this)};
pn.prototype.RC=function(){function a(b,c){for(var d in c.pa)b=a(b,c.pa[d]);for(var e in c.Qj){var f=c.Qj[e].za();b[f]||(b[f]=0);b[f]+=c.Qj[e].getTime()}return b}
return a({},this)};
pn.prototype.QU=function(){var a=this.RC(),b='<ul id="timings">';for(var c in a)b+='<li>type: <span id="timetype">'+c+'</span>, total time: <span id="time">'+a[c]+"ms</span></li>";b+="</ul>";return b};
pn.prototype.Cx=function(a,b){this.Zc=a;this.Sj=b};
pn.prototype.tH=function(a){this.Zc=a};
pn.prototype.ql=function(a){this.kh=a};
pn.prototype.start=function(){this.Zc=n()};
pn.prototype.stop=function(){if(this.Zc>=0)this.Sj=n()-this.Zc};
var sn="standard",tn="onload",rn=function(a,b){this.Kd=a;this.ba=b;this.Cl=-1;this.As=0;this.Zx=[]};
rn.prototype.getName=function(){return this.Kd};
rn.prototype.za=function(){return this.ba};
rn.prototype.getTime=function(){return this.As};
rn.prototype.setTime=function(a,b){this.Cl=a;this.As=b};
rn.prototype.start=function(){this.Cl=n();return this};
rn.prototype.stop=function(){if(this.Cl>0)this.As=n()-this.Cl;return this};
rn.prototype.LZ=function(a){var b={};b.name=a;b.time=n();this.Zx.push(b)};var un=function(a){var b=new on(window._serviceName?window._serviceName:"na");if(!a.Rm("ajax")){window._srt&&window._srt>0&&b.kY(window._srt);var c=a.get(sn),d=c.get(tn),e=d.get("client");d.stop();window.external&&window.external.pageT&&c.Cx(-1,window.external.pageT);b.fY(c.get("request").Cg());b.EX(d.Cg());var f=a.RC();f.GAIA&&b.vX(f.GAIA);f.LSS&&b.WW(f.LSS);f.jsparse&&b.FX(f.jsparse);var g=c.SC();g>0&&b.UX(g);b.aX(e.Cg());b.ql(c.sk());b.lH(d.Cg());b.mH(d.Cg())}else if(a.ajaxIndex){var h=a.get("ajax").get(String(a.ajaxIndex)),
i=h.Cg();b.OW(i);b.mH(i);b.lH(i);b.ql(h.sk())}var j=v("lhid_profile");if(j){var k='<table width="500"><tr><td>'+a.output()+"<hr/>"+a.QU()+"</td></tr></table>";j.innerHTML=k+s(b.Bf())}if(_features.CSI)if(b.KP()=="photos_html")if(b.sk().length>0){var o=new Image;o.src=b.Bf()}};var vn=function(a){this.de=a||[]};
p(vn,Jm);vn.prototype.S=function(){return this.de.length};
vn.prototype.$a=function(a){return this.de[a]};
vn.prototype.ii=function(a,b,c){if(a>=0&&a<this.de.length){b=Math.min(b+1,this.de.length);di(ua(c,a,this.de.slice(a,b)))}};
vn.prototype.Xh=function(a,b){this.de.splice(b,0,a);vn.b.Xh.call(this,a,b)};
vn.prototype.I=function(a){this.de.push(a);vn.b.Xh.call(this,a,this.de.length-1)};
vn.prototype.remove=function(a){if(a>=0&&a<this.de.length){var b=this.de.splice(a,1)[0];vn.b.remove.call(this,a);return b}else return undefined};var wn="addshaperequested",xn="applypersonrequested",yn="editopened",zn="mouseoutpersontag",An="mouseoverpersontag",Bn="mouseclickpersontag",Cn="photoschanged",Dn="photoshapesloaded",En="subjectlistloaded",Fn="subjectshapesloaded",Gn="subjectschanged",Hn="modify";var In="delete",Jn=Hn,Kn={ADD:"add",DELETE:In,MODIFY:Jn};var Ln=function(a,b){b=b||"";this.of=jc(a,b+"aid",null);this.Gb=a.id;this.na={};this.Bi=jc(a,"url",null);var c=a[b+"shapes"];if(c){Cb(c,function(e){this.na[e.N()]=e},
this);this.zi()}if(!b){this.xr={};var d=cc(a).join(",");$b(Kn,function(e){var f=e+"_";if((new RegExp("(^|,)"+f)).test(d))this.xr[e]=new Ln(a,f)},
this)}};
Ln.prototype.nf=function(a){this.na[a.N()]=a;this.zi()};
Ln.prototype.wf=function(a){if(a){var b=this.xr[a];return b&&b.wf()||null}return this.of};
Ln.prototype.N=function(){return this.Gb};
Ln.prototype.ub=function(a){if(a){var b=this.xr[a];return b&&b.ub()||null}return this.na};
Ln.prototype.Bf=function(){return this.Bi};
Ln.prototype.pU=function(a){var b=a.Pu("add");b&&this.iU(b);var c=a.Pu(In);c&&this.kU(c);var d=a.Pu(Jn);d&&this.mU(d)};
Ln.prototype.Rn=function(a){fc(this.na,a.N())};
Ln.prototype.Pu=function(a){return this.xr&&this.xr[a]||null};
Ln.prototype.iU=function(a){var b=a.na;if(b){nc(this.na,b);this.zi()}};
Ln.prototype.kU=function(a){var b=a.na;b&&$b(b,function(c){fc(this.na,c.N())},
this)};
Ln.prototype.mU=function(a){this.Bi=a.Bi||this.Bi};
Ln.prototype.zi=function(){this.na&&$b(this.na,function(a){a.bY(this)},
this)};
Ln.prototype.HT=function(){if(this.na)this.na={}};var Mn=function(a,b){this.confidenceScore=a.confidencescore;this.subject=b.client.lc()[a.id]};var Nn=function(a,b,c){c=c||"";this.Pt=a[c+"createdby"]||"Auto";this.mv=a.hasfacetemplate||false;this.Gb=a.id;this.fb=jc(a,c+"orientation",0);this.mo=jc(a,c+"subject",null);this.cI=jc(a,c+"subtype",0);this.aI=jc(a,c+"style",null);this.iI=jc(a,c+"text",null);this.d2=jc(a,"url",null);this.ba=a.type;this.UI=jc(a,c+"zorder",0);var d=a[c+"photo"],e=a[c+"photoid"],f=b.client.mO(),g=jc(a,c+"aid",f&&f.id||null),h=a[c+"photourl"];this.db=d||new Ln({id:e,aid:g,url:h});this.db.nf(this);var i=a[c+"x1"],j=a[c+
"y1"],k=a[c+"x2"],o=a[c+"y2"],r=a[c+"w"],u=a[c+"h"];if(!isNaN(i*j*k*o*r*u)){this.Wo=new ch(i,j,k-i,o-j);this.wr=new q(r,u)}var C=a[c+"suggestions"];if(C)this.El=Fb(C,function(O){O instanceof Mn||(O=new Mn(O,b));return O});
if(!c){this.ZF={};var E=cc(a).join(",");$b(Kn,function(O){var Ua=O+"_";if((new RegExp("(^|,)"+Ua)).test(E))this.ZF[O]=new Nn(a,b,Ua)},
this)}};
Nn.prototype.getBounds=function(){return this.Wo};
Nn.prototype.NB=function(){return this.Pt};
Nn.prototype.N=function(){return this.Gb};
var On=function(a){return Fb(a,function(b){return b.N()})};
Nn.prototype.Ze=function(){return this.db};
Nn.prototype.CC=function(){return this.wr};
Nn.prototype.ob=function(){return this.mo};
var Pn=function(a){var b=[];$b(a,function(c){b.push(c.ob())});
return b};
Nn.prototype.Bg=function(){return this.d2};
Nn.prototype.za=function(){return this.ba};
Nn.prototype.$R=function(){return this.mv};
Nn.prototype.Uh=function(){return!Ca(this.Gb,"tempid-")};
Nn.prototype.ce=function(){return this.mo.ce()};
Nn.prototype.qU=function(a){var b=a.zP(Jn);b&&this.nU(b)};
Nn.prototype.Gr=function(a){this.Gb=a};
Nn.prototype.XG=function(a,b){this.Wo=a;this.wr=b};
Nn.prototype.bY=function(a){this.db=a};
Nn.prototype.ks=function(a){this.mo=a};
Nn.prototype.zP=function(a){return this.ZF&&this.ZF[a]||null};
Nn.prototype.nU=function(a){this.Pt=a.Pt||this.Pt;this.mv=a.mv||this.mv;this.fb=a.fb||this.fb;this.mo=a.mo||this.mo;this.cI=a.cI||this.cI;this.aI=a.aI||this.aI;this.iI=a.iI||this.iI;this.UI=a.UI||this.UI;this.Wo=a.Wo||this.Wo;this.wr=a.wr||this.wr;this.El=a.El||this.El};var W=function(a,b,c){c=c||"";var d=a.type;this.Ue=jc(a,c+"dispname",null);this.Oi=jc(a,c+"email",null);this.s0=jc(a,c+"emtoken",null);this.Jk=jc(a,c+"iconicshapeurl",null);this.Gb=a.id;this.Kd=jc(a,c+"name",null);this.SF=jc(a,c+"gphotousername",null);this.X2=!!jc(a,c+"gphotouser",false);this.yZ=jc(a,"subjectsearchurl");this.ba=na(d)?d:1;this.iG=jc(a,c+"publiclyvisible",null);var e=jc(a,c+"faces"),f=jc(a,c+"shapes");if(e||f){this.na=Qn(b,e,f);this.zi()}this.he=jc(a,c+"numshapes");this.U2=jc(a,c+"numphotos");
if(!c){this.$F={};var g=cc(a).join(",");$b(Kn,function(h){var i=h+"_";if((new RegExp("(^|,)"+i)).test(g))this.$F[h]=new W(a,b,i)},
this)}},
Rn,Sn="img/noportrait.jpg?sky=lhm";W.prototype.he=null;W.prototype._subject_=true;var Tn=function(a,b){return La(a.Lb(),b.Lb())};
W.prototype.yB=function(a,b){var c=b||15;return this.Ds(this.Ue,c,a)};
W.prototype.Lb=function(a,b){var c,d=b||15;if(this.Ue)c=this.Ue;else if(this.Kd)c=this.Kd;else if(this.Oi){c=this.Oi;d=b||40}else c="Utan namn";return this.Ds(c,d,a)};
W.prototype.wk=function(a,b){var c=b||40;return this.Ds(this.Oi,c,a)};
W.prototype.YB=function(){return this.s0};
var Qn=function(a,b,c){var d={};Cb([b,c],function(e,f){e&&Cb(e,function(g){if(!(g instanceof Nn)){g.createdby=f==0?"Auto":"User";g.type="Face";g=new Nn(g,a)}d[g.N()]=g})});
return d};
W.prototype.CX=function(a){this.Jk=a};
W.prototype.lX=function(a){this.Ue=a};
W.prototype.Yi=function(){if(this.Jk&&(this.Jk.indexOf(Sn)<0||ac(this.na)==0))return this.Jk;var a;if(this.na)for(var b in this.na){a=this.na[b].Bg();if(a)return a}return Sn};
W.prototype.N=function(){return this.Gb};
var Un=function(a){return Fb(a,function(b){return b.N()})};
W.prototype.jC=function(){if(Rn==this)return Infinity;return this.aj()};
W.prototype.ub=function(a){if(a){var b=this.$F[a];return b&&b.ub()||null}return this.na};
W.prototype.getName=function(a,b){var c=b||40;return this.Ds(this.Kd,c,a)};
W.prototype.aj=function(){return this.he||0};
W.prototype.UP=function(){return this.yZ};
W.prototype.za=function(){return this.ba};
W.prototype.Uh=function(){return!Ca(this.Gb,"tempid-")};
W.prototype.ce=function(){return this.ba==1};
W.prototype.rU=function(a){var b=a.Qu("add");b&&this.jU(b);var c=a.Qu(In);c&&this.lU(c);var d=a.Qu(Jn);d&&this.oU(d)};
var Vn=function(a){return a.ce()},
Wn=function(a,b){return b.aj()-a.aj()};
W.prototype.Hr=function(a){this.Gb=a};
W.prototype.oY=function(a){this.yZ=a};
W.prototype.zY=function(){Rn=this};
W.prototype.Ai=function(){this.he=0;this.ba=1};
W.prototype.Qu=function(a){return this.$F[a]};
W.prototype.jU=function(a){if(this.he!=null)this.he+=a.he||0;var b=a.na;if(b){if(!this.na)this.na={};nc(this.na,b);this.zi()}};
W.prototype.lU=function(a){if(this.he!=null)this.he-=a.he||0;var b=a.na;b&&this.na&&$b(b,function(c){fc(this.na,c.N())},
this)};
W.prototype.oU=function(a){this.Ue=a.Ue||this.Ue;var b=ja(a.Oi);this.Oi=b?a.Oi:this.Oi;this.Jk=a.Jk||this.Jk;this.Kd=a.Kd||this.Kd;this.he=na(a.he)?a.he:this.he;this.SF=a.SF||this.SF;this.na=a.na||this.na;if(a.iG!=null)this.iG=a.iG;this.zi()};
W.prototype.Ds=function(a,b,c){if(Ga(a))return"";if(b>0)a=db(a,b);if(c)a=s(a);return a};
W.prototype.zi=function(){this.na&&$b(this.na,function(a){a.ks(this)},
this)};
W.prototype.toString=function(){return this.Lb()};var Xn=function(a,b){this.ja(a,b)};
Xn.prototype.IY=0;Xn.prototype.ja=function(a,b){if(ka(a)){Cb(a,function(f){this.na[f.N()]=f},
this);return}this.X_=jc(a,"clusterid")||jc(a,"clusterindex")||this.X_;this.ba=jc(a,"clustertype",this.ba);if(!_features.FR_CONTINUOUS_CLUSTERING)this.ba=Yn(this.ba);this.na=this.na||{};this.El=this.El||[];this.Bi=jc(a,"url",this.Bi);var c=a.faces,d=a.shapes;this.na=Qn(b,c,d);this.IY="numshapes"in a?Number(a.numshapes):ac(this.na);var e=[];$b(this.na,function(f,g){f.ob()||f.ks(b.client.lc()[Zn]);var h=b.client.ub()[g];if(h)this.na[g]=h;else e.push(f)},
this);b.client.gt(e);if(a.subjects){this.El.length=0;Cb(a.subjects,function(f){this.El.push(new Mn(f,b))},
this)}};
Xn.prototype.Bf=function(){return this.Bi};
Xn.prototype.ub=function(){return this.na};
var Yn=function(a){switch(a){case "0":return"0";case "1":return"2";case "2":return"3"}return a};var $n=function(a){J.call(this);this.oh={};this.F=a;this.p=new I(this);this.Yc={};this.na={};this.$g={numTotalFacesInAlbum:0,numAssignedFacesInAlbum:0,numUnassignedFacesInAlbum:0,numHiddenFacesInAlbum:0,numUnassignedFaceClusters:0,numTotalFaces:0,numTotalAssignedFaces:0,numTotalUnassignedFaces:0,numTotalHiddenFaces:0};this.vr={numFullyProcessedPhotos:0,numNonProcessedPhotos:0,numPartiallyProcessedPhotos:0,numTotalFaces:0};this.lb={};this.s_={};this.clearData()};
p($n,J);var Zn="100001";$n.prototype.bK=function(a){Cb(this.Ml(a),function(b){this.Yc[b.N()]=b},
this)};
$n.prototype.gt=function(a,b){var c=[];a=this.Ml(a);if(a.length==0)return;var d=a[0].ob().N(),e=!Hb(a,function(g){return g.ob().N()!=d});
if(e)c.push(new W({id:d,add_shapes:a,add_numshapes:b?0:a.length},this.F));else{var f=this.F;Cb(a,function(g){c.push(new W({id:g.ob().N(),add_shapes:[g],add_numshapes:b?0:1},f))},
this)}this.ai(Jn,c)};
$n.prototype.Xf=function(a){a=this.Ml(a);var b=[];Cb(a,function(c){b.push(c)},
this);b.length>0&&this.ai("add",b)};
$n.prototype.clearData=function(){gc(this.oh);gc(this.Yc);gc(this.na);this.$g.numAssignedFacesInAlbum=0;this.$g.numUnassignedFacesInAlbum=0;this.$g.numUnassignedFaceClusters=0;this.$g.numTotalFacesInAlbum=0;this.$g.numHiddenFacesInAlbum=0;this.$g.numTotalFaces=0;this.$g.numTotalAssignedFaces=0;this.$g.numTotalUnassignedFaces=0;this.$g.numTotalHiddenFaces=0;this.vr.numFullyProcessedPhotos=0;this.vr.numNonProcessedPhotos=0;this.vr.numPartiallyProcessedPhotos=0;this.vr.numTotalFaces=0;this.Pz();this.F.combined&&
this.F.combined.bW();this.B2=new Jd};
$n.prototype.Pz=function(){gc(this.lb);this.Xf(new W({id:Zn,name:"",dispname:"Utan namn",type:0},this.F));this.Xf(new W({id:"100002",name:null,dispname:null,type:2},this.F));this.Xf(new W({id:"100003",name:null,dispname:null,type:3},this.F));this.Xf(new W({id:"100004",name:null,dispname:null,type:4},this.F))};
$n.prototype.i=function(){if(this.xb())return;$n.b.i.call(this);delete this.oh;delete this.F;delete this.Yc;delete this.na;delete this.$g;delete this.vr;delete this.lb;delete this.s_;this.p.i()};
$n.prototype.mO=function(){return this.A2};
$n.prototype.wg=function(){return this.Yc};
$n.prototype.ub=function(){return this.na};
$n.prototype.KC=function(a,b){var c=bc(this.lc()),d=b?Eb(c,b):c;return d.sort(a||Tn)};
$n.prototype.$P=function(a,b){var c=a||function(e,f){return Vb(f.jC(),e.jC())},
d=this.KC(c,function(e){var f=e.N(),g=0!=e.za()&&!ao(f);return b?b(e)&&g:g});
return d};
$n.prototype.lc=function(){return this.lb};
$n.prototype.XE=function(a){this.ai(Jn,a)};
$n.prototype.kd=function(a,b,c){c=c||0;a.zY();b=this.Ml(b);this.Rw(b);this.ai(Jn,new W({id:a.N(),add_shapes:b,add_numshapes:b.length||c},this.F))};
$n.prototype.$h=function(a,b){var c=b.aj();this.kd(a,bc(b.ub()),c);this.F.client.fi(b)};
$n.prototype.Qw=function(a){this.un(In,a)};
$n.prototype.Rw=function(a,b){var c=this.F;this.ai(Jn,Fb(this.Ml(a),function(d){return new W({id:d.ob().N(),delete_shapes:[d],delete_numshapes:b?0:1},c)}))};
$n.prototype.fi=function(a){this.ai(In,a)};
$n.prototype.gi=function(a,b,c,d){var e=this.F;this.ai(Jn,new W({id:a.N(),modify_name:b,modify_dispname:c,modify_email:d},e))};
$n.prototype.iW=function(a,b){var c=this.lb[a];c.oY(b)};
$n.prototype.Gr=function(a,b){var c=this.na[a];delete this.na[a];this.na[b]=c;c.Gr(b);var d=c.ob();if(d){var e=d.ub();delete e[a];e[b]=c}var f=c.Ze();if(f){var g=f.ub();delete g[a];g[b]=c}};
$n.prototype.Hr=function(a,b){var c=this.lb[a];delete this.lb[a];this.lb[b]=c;c.Hr(b)};
$n.prototype.pi=function(a,b){var c=this.F;this.ai(Jn,new W({id:a.N(),modify_iconicshapeurl:b},c))};
$n.prototype.yY=function(a,b){this.s_[a]=b};
var ao=function(a){var b=a==Zn||a=="100002"||a=="100003"||a=="100004";return b};
$n.prototype.lw=function(a,b,c,d){d=this.Ml(d);var e={};Cb(d,function(f){var g=f.N(),h=c[g];e[g]=true;switch(a){case "add":h||b.call(this,f);c[g]=f;break;case In:case Jn:h&&b.call(this,f);break}},
this);return cc(e)};
$n.prototype.un=function(a,b){this.dispatchEvent({type:Cn,subType:a,photoIds:this.lw(a,this.tj[a],this.Yc,b)})};
$n.prototype.tj={};$n.prototype.tj.add=function(){};
$n.prototype.tj["delete"]=function(a){this.Rw(bc(a.ub()),true);delete this.Yc[a.N()]};
$n.prototype.tj[Hn]=function(a){this.Yc[a.N()].pU(a)};
$n.prototype.WE=function(a,b){this.dispatchEvent({type:"shapeschanged",subType:a,shapeIds:this.lw(a,this.uj[a],this.na,b)})};
$n.prototype.uj={};$n.prototype.uj.add=function(a){var b=a.Ze();this.Yc[b.N()]?this.un(Jn,new Ln({id:b.N(),add_shapes:[a]})):this.un("add",b)};
$n.prototype.uj["delete"]=function(a){delete this.na[a.N()];this.un(Jn,new Ln({id:a.Ze().N(),delete_shapes:[a]}))};
$n.prototype.uj[Hn]=function(a){$b(Kn,function(c){var d=a.Ze();d&&this.un(c,d)},
this);var b=this.na[a.N()];b&&this.na[a.N()].qU(a)};
$n.prototype.ai=function(a,b){this.dispatchEvent({type:Gn,subType:a,subjectIds:this.lw(a,this.vj[a],this.lb,b)})};
$n.prototype.vj={};$n.prototype.vj.add=function(a){this.WE("add",bc(a.ub()))};
$n.prototype.vj["delete"]=function(a){if(a.za()==0)throw Error("Cannot delete unnamed subject");this.kd(this.lc()[Zn],bc(a.ub()),a.aj());delete this.lb[a.N()]};
$n.prototype.vj[Hn]=function(a){$b(Kn,function(b){var c=a.ub(b);c&&this.WE(b,bc(c))},
this);this.lb[a.N()].rU(a)};
$n.prototype.Ml=function(a){return ka(a)?a:[a]};var bo=function(a){J.call(this);this.Oa=qe("gphoto.sapphire.data.datahandler.Combined");this.F=a;this.R2={};this.LE={};this.ME={}};
p(bo,J);var co=0;bo.prototype.nf=function(a,b){this.F.server.nf(a,m(function(c){var d,e=eo(c.kc());try{d=ok(e)}catch(f){return}this.F.client.Gr(a.N(),d.shapeid);b&&b();this.xh()},
this));this.F.client.gt(a)};
bo.prototype.Po=function(a,b,c,d,e,f,g,h,i,j){var k=new W({id:e||"tempid-"+co++,name:a,dispname:b,email:c,type:1,numshapes:0,shapes:[]},this.F);this.F.server.Po(k,m(function(o){var r,u=eo(o.kc());try{r=ok(u)}catch(C){return}var E=k.N();this.F.client.iW(E,r.subjectsearchurl);this.F.client.Hr(E,r.subjectid);this.kd(k,d,f,h,i,j);var O="Ny person: "+k.Lb();this.xh(O,function(){this.fi([k])})},
this),g);this.F.client.Xf(k)};
bo.prototype.HE=function(a,b,c){var d=[];for(var e=0;e<a.length;e++){var f=a[e];if(!this.LE[f])if(!this.F.client.wg()[f]){this.LE[f]=true;d.push(f)}}d.length>0?this.F.server.MP(d,b,c,m(this.QQ,this,d)):this.dispatchEvent({type:Dn,photoIds:a})};
bo.prototype.DT=function(a){this.J("loadShapesForSubjects");var b=[],c=a.length;for(var d=0;d<c;++d){var e=a[d],f=e.N();if(!this.ME[f]||!e.ce()||e.aj()!=ac(e.ub())){b.push(e);this.ME[f]=true}}b.length==0?this.dispatchEvent({type:Fn}):this.F.server.NP(b,m(this.RQ,this))};
bo.prototype.JE=function(a,b,c,d,e){if(!this.ws)if(this.dI&&!e)this.dispatchEvent(En);else{e&&this.F.client.Pz();this.ws=true;this.F.server.OM(a,b,c,d,m(this.KQ,this))}};
bo.prototype.$h=function(a,b,c){b=Eb(b,function(d){return d.ce()},
this);if(b.length==0)return;if(a.za()==-1){this.Ai(a,m(this.$h,this,a,b,c));return}this.F.server.$h(a,b,m(function(){c&&c();var d="Sammanslagna \u00e4mnen: "+(b.length+1);this.xh(d)},
this));Cb(b,function(d){this.F.client.$h(a,d)},
this)};
bo.prototype.qG=function(a){this.ws=true;this.F.server.qO(a,m(function(b){this.ws=false;var c=eo(b.kc()),d;try{d=ok(c)}catch(e){return}for(var f=0;f<d.length;++f){var g=d[f],h=g.id,i=this.F.client.lc()[h];this.F.client.pi(i,g.iconicshapeurl)}},
this))};
bo.prototype.kd=function(a,b,c,d,e,f,g){b=Eb(b,function(k){return k.ob().N()!=a.N()},
this);if(b.length==0)return;if(a.za()==-1){this.Ai(a,m(this.kd,this,a,b,c,null,null,null,null));return}var h=true,i=b[0].ob(),j=[];Cb(b,function(k){var o=k.ob();a!=o&&o.Yi()==k.Bg()&&j.push(o);if(i!=o&&!ao(o.N()))h=false});
this.F.server.kd(a,b,m(function(){c&&c(a,b);j.length&&this.qG(j);var k=h?m(this.kd,this,i,b,null,null,null,null,true):null;k.dummy=false;var o;switch(a.N()){case Zn:k=function(){};
k.dummy=true;if(b.length>1){var r=b.length+" ansikten har \u00e5terf\u00f6rts till sina ursprungsalbum";o=r}else o="Ett ansikte har \u00e5terf\u00f6rts till ursprungsalbumet";break;case "100004":var u="Foto som hoppats \u00f6ver: "+b.length;o=u;break;case "100003":var C="Foton markerade som icke ansikten: "+b.length;o=C;break;case "100002":var E="Foton markerade som Ignorerade ansikten: "+b.length;o=E;break;default:var O=b.length+" foton har f\u00e5tt etiketter";o=O}this.xh(o,k)},
this),d,e,f,g);this.F.client.kd(a,b)};
bo.prototype.Rn=function(a,b){var c=a.ob();this.F.server.rM(a,m(function(){b&&b();c&&c.Yi()==a.Bg()&&this.qG([c]);this.xh("Form borttagen")},
this));this.F.client.Rw([a])};
bo.prototype.fi=function(a,b){this.F.server.fi(a,m(function(){b&&b();var c="Borttagna personer: "+a.length;this.xh(c)},
this));this.F.client.fi(a)};
bo.prototype.gi=function(a,b,c,d,e){var f=a.getName(),g=a.Lb(),h=a.wk();this.F.server.gi(a,b,c,d,m(function(){e&&e();var i=g+(" har bytt namn till "+c);this.xh(i,function(){this.gi(a,f,g,h)})},
this));this.F.client.gi(a,b,c,d)};
bo.prototype.bW=function(){this.s2=false;this.dI=false};
bo.prototype.pi=function(a,b,c){this.F.server.pi(a,b,m(function(){c&&c();this.xh()},
this));this.F.client.pi(a,b.Bg())};
bo.prototype.nY=function(a){var b=this.F;this.F.client.Xf(Fb(a,function(c){return new W(c,b)}));
this.dI=true};
bo.prototype.Ai=function(a,b){a.Ai();this.F.server.Ai(a,b)};
bo.prototype.xh=function(a,b){var c=null;if(b){c=m(b,this);c.dummy=!!b.dummy}this.dispatchEvent({type:Fh,actionDescription:a||null,undo:c})};
bo.prototype.KQ=function(a){var b;try{var c=eo(a.kc());b=ok(c)}catch(d){this.ws=false;return}var e=this.F;this.F.client.Xf(Fb(b,function(f){return new W(f,e)},
e));this.dispatchEvent(En);this.dI=true;this.ws=false};
bo.prototype.QQ=function(a,b){var c,d=eo(b.kc());try{c=ok(d)}catch(e){return}for(var f=0;f<a.length;f++){var g=this.F.client.wg()[a[f]];g&&this.F.client.Qw(g)}var h=this.F.client.lc(),i=this.F;Cb(c,function(j){var k=new W(j,i),o=h[k.N()];o?this.F.client.gt(bc(k.ub()),true):this.F.client.Xf(k)},
this);this.dispatchEvent({type:Dn,photoIds:a});for(var f=0;f<a.length;f++)this.LE[a[f]]=false};
bo.prototype.RQ=function(a){this.J("handleGetShapesForSubject_");var b=eo(a.kc()),c;try{c=ok(b)}catch(d){return}var e=[],f=c.length;for(var g=0;g<f;++g){var h=new W(c[g],this.F);e.push(h);var i=h.N();this.J("handleGetShapesForSubject_: sid="+i);var j=this.F.client.lc()[i].ub(),k=new W({id:i,delete_shapes:j},this.F);this.F.client.XE(k);var o=bc(h.ub()),r=new W({id:i,add_shapes:o,modify_numshapes:o.length},this.F);this.F.client.XE(r);this.ME[i]=false}this.dispatchEvent({type:Fn})};
bo.prototype.ha=function(){return"gphoto.sapphire.data.datahandler.Combined"};
bo.prototype.J=function(a){this.Oa&&this.Oa.pB(a)};var fo=function(){this.yd=[]};
fo.prototype.Ba=0;fo.prototype.ui=0;fo.prototype.hm=function(a){this.yd[this.ui++]=a};
fo.prototype.Ki=function(){if(this.Ba==this.ui)return undefined;var a=this.yd[this.Ba];delete this.yd[this.Ba];this.Ba++;return a};
fo.prototype.peek=function(){if(this.Ba==this.ui)return undefined;return this.yd[this.Ba]};
fo.prototype.S=function(){return this.ui-this.Ba};
fo.prototype.isEmpty=function(){return this.ui-this.Ba==0};
fo.prototype.clear=function(){this.yd=[];this.Ba=0;this.ui=0};
fo.prototype.contains=function(){return Bd(this.yd)};
fo.prototype.remove=function(a){var b=Bb(this.yd,a);if(b<0)return false;if(b==this.Ba)this.Ki();else{Qb(this.yd,b);this.ui--}return true};
fo.prototype.vb=function(){var a=[];for(var b=this.Ba;b<this.ui;b++)a.push(this.yd[b]);return a};var go=function(a,b){ve.call(this);this.tU=a||0;this.Mg=b||10;if(this.tU>this.Mg)throw Error("[goog.structs.Pool] Min can not be greater than max");this.Qc=new fo;this.Hg=new Od;this.Rl()};
p(go,ve);go.prototype.Sc=function(){var a=this.IV();a&&this.Hg.add(a);return a};
go.prototype.Je=function(a){if(this.Hg.remove(a)){this.Lo(a);return true}return false};
go.prototype.IV=function(){var a;while(this.eC()>0){a=this.Qc.Ki();if(this.hr(a))break;else this.Rl()}if(!a&&this.S()<this.Mg)a=this.sh();return a};
go.prototype.Lo=function(a){this.Hg.remove(a);this.hr(a)&&this.S()<this.Mg?this.Qc.hm(a):this.sf(a)};
go.prototype.Rl=function(){var a=this.Qc;while(this.S()<this.tU)a.hm(this.sh());while(this.S()>this.Mg&&this.eC()>0)this.sf(a.Ki())};
go.prototype.sh=function(){return{}};
go.prototype.sf=function(a){if(typeof a.i=="function")a.i();else for(var b in a)a[b]=null};
go.prototype.hr=function(a){if(typeof a.canBeReused=="function")return a.canBeReused();return true};
go.prototype.contains=function(a){return this.Qc.contains(a)||this.Hg.contains(a)};
go.prototype.S=function(){return this.Qc.S()+this.Hg.S()};
go.prototype.OO=function(){return this.Hg.S()};
go.prototype.eC=function(){return this.Qc.S()};
go.prototype.isEmpty=function(){return this.Qc.isEmpty()&&this.Hg.isEmpty()};
go.prototype.C=function(){go.b.C.call(this);if(this.OO()>0)throw Error("[goog.structs.Pool] Objects not released");wd(this.Hg,this.sf,this);this.Hg.clear();delete this.Hg;var a=this.Qc;while(!a.isEmpty())this.sf(a.Ki());delete this.Qc};var ho=function(a,b){this.Gd=a;this.ec=b};
ho.prototype.Nh=function(){return this.Gd};
ho.prototype.sa=function(){return this.ec};
ho.prototype.qa=function(){return new ho(this.Gd,this.ec)};var io=function(a){this.Ge=[];a&&this.KS(a)};
io.prototype.Xh=function(a,b){var c=new ho(a,b),d=this.Ge;d.push(c);this.$q(d.length-1)};
io.prototype.KS=function(a){var b,c;if(a instanceof io){b=a.fd();c=a.vb();if(a.S()<=0){var d=this.Ge;for(var e=0;e<b.length;e++)d.push(new ho(b[e],c[e]));return}}else{b=cc(a);c=bc(a)}for(var e=0;e<b.length;e++)this.Xh(b[e],c[e])};
io.prototype.remove=function(){var a=this.Ge,b=a.length,c=a[0];if(b<=0)return undefined;else if(b==1)Dd(a);else{a[0]=a.pop();this.Yq(0)}return c.sa()};
io.prototype.peek=function(){var a=this.Ge;if(a.length==0)return undefined;return a[0].sa()};
io.prototype.Yq=function(a){var b=this.Ge,c=b.length,d=b[a];while(a<Math.floor(c/2)){var e=this.YO(a),f=this.EP(a),g=f<c&&b[f].Nh()<b[e].Nh()?f:e;if(b[g].Nh()>d.Nh())break;b[a]=b[g];a=g}b[a]=d};
io.prototype.$q=function(a){var b=this.Ge,c=b[a];while(a>0){var d=this.tP(a);if(b[d].Nh()>c.Nh()){b[a]=b[d];a=d}else break}b[a]=c};
io.prototype.YO=function(a){return a*2+1};
io.prototype.EP=function(a){return a*2+2};
io.prototype.tP=function(a){return Math.floor((a-1)/2)};
io.prototype.vb=function(){var a=this.Ge,b=[],c=a.length;for(var d=0;d<c;d++)b.push(a[d].sa());return b};
io.prototype.fd=function(){var a=this.Ge,b=[],c=a.length;for(var d=0;d<c;d++)b.push(a[d].Nh());return b};
io.prototype.rh=function(a){return Hd(this.Ge,function(b){return b.sa()==a})};
io.prototype.Eb=function(a){return Hd(this.Ge,function(b){return b.Nh()==a})};
io.prototype.qa=function(){return new io(this)};
io.prototype.S=function(){return yd(this.Ge)};
io.prototype.isEmpty=function(){return Cd(this.Ge)};
io.prototype.clear=function(){Dd(this.Ge)};var jo=function(){io.call(this)};
p(jo,io);jo.prototype.hm=function(a,b){this.Xh(a,b)};
jo.prototype.Ki=function(){return this.remove()};var ko=function(a,b){this.Tw=new jo;go.call(this,a,b)};
p(ko,go);ko.prototype.Sc=function(a,b){if(!a)return ko.b.Sc.call(this);var c=b||100;this.Tw.hm(c,a);this.hv();return undefined};
ko.prototype.hv=function(){var a=this.Tw;while(a.S()>0){var b=this.Sc();if(b){var c=a.Ki();c.apply(this,[b])}else return}};
ko.prototype.Lo=function(a){ko.b.Lo.call(this,a);this.hv()};
ko.prototype.Rl=function(){ko.b.Rl.call(this);this.hv()};
ko.prototype.C=function(){ko.b.C.call(this);this.Tw.clear();this.Tw=null};var lo=function(a,b,c){ko.call(this,b,c);this.AD=a};
p(lo,ko);lo.prototype.sh=function(){var a=new R,b=this.AD;b&&Ed(b,function(c,d){a.headers.X(d,c)});
return a};
lo.prototype.sf=function(a){a.i()};
lo.prototype.hr=function(a){return!a.$m()&&!a.Jf()};var mo=function(a,b,c,d,e){this.SE=ba(a)?a:1;this.vi=ba(e)?Math.max(0,e):0;this.Eo=new lo(b,c,d);this.pd=new Jd;this.p=new I(this)};
p(mo,J);var no=["ready",Pj,Qj,Rj,"abort",Sj];mo.prototype.jo=function(a){this.vi=Math.max(0,a)};
mo.prototype.send=function(a,b,c,d,e,f,g){var h=this.pd;if(h.get(a))throw Error("[goog.net.XhrManager] ID in use");var i=new oo(b,m(this.Im,this,a),c,d,e,g);this.pd.X(a,i);var j=m(this.mQ,this,a);this.Eo.Sc(j,f)};
mo.prototype.abort=function(a,b){var c=this.pd.get(a);if(c){var d=c.xhrIo;c.NW(true);if(b){this.sG(d,c.bv());Te(d,"ready",function(){this.Eo.Je(d)},
false,this);this.pd.remove(a)}d&&d.abort()}};
mo.prototype.mQ=function(a,b){var c=this.pd.get(a);if(c&&!c.xhrIo){this.gK(b,c.bv());b.jo(this.vi);c.xhrIo=c.xhrLite=b;this.dispatchEvent(new po("ready",this,a,b));this.FG(a,b);c.RN()&&b.abort()}else this.Eo.Je(b)};
mo.prototype.Im=function(a,b){switch(b.type){case "ready":this.FG(a,b.target);break;case Pj:return this.aq(a,b.target,b);case Qj:this.IR(a,b.target);break;case Sj:case Rj:this.Hm(a,b.target);break;case "abort":this.gQ(a,b.target);break}return null};
mo.prototype.FG=function(a,b){var c=this.pd.get(a);if(c&&!c.kO()&&c.ru()<=this.SE){c.uS();b.send(c.Bf(),c.hP(),c.Bd(),c.HO())}else{if(c){this.sG(b,c.bv());this.pd.remove(a)}this.Eo.Je(b)}};
mo.prototype.aq=function(a,b,c){var d=this.pd.get(a);if(b.RO()==7||b.Lf()||d.ru()>this.SE){this.dispatchEvent(new po(Pj,this,a,b));if(d){d.bX(true);if(d.HB())return d.HB().call(b,c)}}return null};
mo.prototype.gQ=function(a,b){this.dispatchEvent(new po("abort",this,a,b))};
mo.prototype.IR=function(a,b){this.dispatchEvent(new po(Qj,this,a,b))};
mo.prototype.Hm=function(a,b){var c=this.pd.get(a);c.ru()>this.SE&&this.dispatchEvent(new po(Rj,this,a,b))};
mo.prototype.sG=function(a,b,c){var d=c||no;this.p.ka(a,d,b)};
mo.prototype.gK=function(a,b,c){var d=c||no;this.p.e(a,d,b)};
mo.prototype.C=function(){mo.b.C.call(this);this.Eo.i();this.Eo=null;this.p.i();this.p=null;var a=this.pd;Ed(a,function(b){b.i()});
a.clear();this.pd=null};
var po=function(a,b,c,d){A.call(this,a,b);this.id=c;this.xhrIo=d;this.xhrLite=d};
p(po,A);po.prototype.C=function(){po.b.C.call(this);delete this.id;this.xhrIo=null;this.xhrLite=null};
var oo=function(a,b,c,d,e,f){this.Bi=a;this.l1=c||"GET";this.wd=d;this.AD=e;this.xK=0;this.cp=false;this.HJ=false;this.C_=b;this.qL=f;this.xhrIo=null};
p(oo,ve);oo.prototype.Bf=function(){return this.Bi};
oo.prototype.hP=function(){return this.l1};
oo.prototype.Bd=function(){return this.wd};
oo.prototype.HO=function(){return this.AD};
oo.prototype.ru=function(){return this.xK};
oo.prototype.uS=function(){this.xK++};
oo.prototype.bX=function(a){this.cp=a};
oo.prototype.kO=function(){return this.cp};
oo.prototype.NW=function(a){this.HJ=a};
oo.prototype.RN=function(){return this.HJ};
oo.prototype.bv=function(){return this.C_};
oo.prototype.HB=function(){return this.qL};
oo.prototype.C=function(){oo.b.C.call(this);delete this.C_;delete this.qL};var qo="/lh/subjectList",ro,so,to,uo,vo=function(a,b,c,d){ro=a;so=b;to=c;uo=d};var wo=function(a){J.call(this);this.Oa=qe("gphoto.sapphire.data.datahandler.Server");this.LK=0;this.F=a;this.KD=new mo(0,null,1,1,0)};
p(wo,J);wo.prototype.er=0;wo.prototype.Cj=0;wo.prototype.nf=function(a,b){var c=a.getBounds(),d=a.CC();this.ee(ro,b,[["iid",a.Ze().N()],["subjectid",a.ob().N()],["stype",a.za()],["zorder",0],["x1",Math.round(c.left)],["y1",Math.round(c.top)],["x2",Math.round(c.left+c.width)],["y2",Math.round(c.top+c.height)],["w",d.width],["h",d.height]])};
wo.prototype.Po=function(a,b,c){var d=[["sname",a.getName(false,-1)],["dname",a.Lb()]],e=a.wk(false,-1);e&&d.push(["email",e]);var f=a.N();a.Uh()&&f&&d.push(["coid",f]);var g=a.YB();g&&d.push(["emtoken",g]);typeof c=="boolean"&&d.push(["ndnick",c]);this.ee(so,b,d)};
wo.prototype.rM=function(a,b){this.ee(to,b,[["opt","DELETE_SHAPE"],["iid",a.Ze().N()],["shids",a.N()]])};
wo.prototype.OM=function(a,b,c,d,e){var f=[];a&&f.push(["uname",a]);b&&f.push(["max",b]);c&&f.push(["cd",c]);d&&f.push(["aids",d.join(",")]);var g=(new N(document.location.href)).ab("authkey");g&&f.push(["authkey",g]);this.ee(qo,e,f)};
wo.prototype.NP=function(a,b){this.J("getShapesForSubjects");var c=Fb(a,function(d){return d.N()},
this);this.J("subjectids="+c.join(","));this.ee(qo,b,[["subjectids",c.join(",")],["fd",true],["sd",true]])};
wo.prototype.qO=function(a,b){var c=Fb(a,function(d){return d.N()},
this);this.J("getDataForSubjects, subjectids="+c.join(","));this.ee(qo,b,[["subjectids",c.join(",")]])};
wo.prototype.MP=function(a,b,c,d){var e=[["fd",true],["sd",true],["sg",b]];e.push(["iids",a.join(",")]);c&&e.push(["uname",c]);var f=(new N(document.location.href)).ab("authkey");f&&e.push(["authkey",f]);this.ee(qo,d,e)};
wo.prototype.dE=function(){return this.LK>0};
wo.prototype.$h=function(a,b,c){if(b.length==0)return;this.ee(uo,c,[["opt","MERGE_SUBJECTS"],["subjectid",a.N()],["subjectids",Un(b).join(",")]])};
wo.prototype.kd=function(a,b,c,d,e,f,g){if(b.length==0)return;var h=[],i=[];Cb(b,function(k){k.za()=="Face"&&k.NB()=="Auto"?h.push(k.N()):i.push(k)});
var j=[["opt","MOVE_FACES"],["subjectid",typeof a=="string"?a:a.N()]];h.length>0&&j.push(["fids",h.join(",")]);i.length>0&&j.push(["shids",On(i).join(",")]);d&&j.push(["ctype",d]);e&&j.push(["ptype",e]);f&&j.push(["cscore",f]);g&&j.push(["undo",g]);this.ee(uo,c,j)};
var eo=function(a){if(Ca(a,"while(1);"))a=a.substr(9);return a};
wo.prototype.fi=function(a,b){this.ee(uo,b,[["opt","DELETE_SUBJECTS"],["subjectids",Un(a).join(",")]])};
wo.prototype.gi=function(a,b,c,d,e){var f=[["opt","RENAME_SUBJECT"],["subjectid",a.N()],["sname",b],["dname",c],["email",d]],g=a.YB();g&&f.push(["emtoken",g]);this.ee(uo,e,f)};
wo.prototype.gx=function(a){var b=this.dE();this.LK+=a?1:-1;b!=this.dE()&&this.dispatchEvent("busymodechanged")};
wo.prototype.pi=function(a,b,c){this.ee(uo,c,[["opt","SET_ICONIC_FACE"],["subjectid",a.N()],["fid",b.N()]])};
wo.prototype.Ai=function(a,b,c){var d=a.getName(),e=d.indexOf(" "),f=e>=0?d.substr(0,Math.min(15,e)):d,g=[["coid",a.N()],["sname",d],["dname",f||"Utan namn"]],h=a.wk();h&&g.push(["email",h]);typeof c=="boolean"&&g.push(["ndnick",c]);this.ee(so,b,g)};
wo.prototype.J=function(a){this.Oa&&this.Oa.da(a)};
var xo=function(a){var b=new Oi,c=a.length;for(var d=0;d<c;d++){var e=a[d];b.add(e[0],e[1])}return b.toString()};
wo.prototype.mS=function(a,b,c){if(c.id==a){this.yG(b);this.F.server.gx(false);this.dispatchEvent("communicationerror")}};
wo.prototype.nS=function(a,b,c,d){if(d.id==b){this.yG(c);a&&a(d.xhrIo);this.F.server.gx(false)}};
wo.prototype.ee=function(a,b,c,d){this.Cj++;this.F.server.gx(true);d=d||"POST";var e=xo(c||[]);if(d=="GET"){a+="?"+e;e=""}var f=this.er++,g=new I(this);g.e(this.KD,Qj,m(this.nS,this,b,f,g));g.e(this.KD,Rj,m(this.mS,this,f,g));this.KD.send(String(f),a,d,e);return f};
wo.prototype.yG=function(a){a.i();this.Cj--};
wo.prototype.ha=function(){return"gphoto.sapphire.data.datahandler.Server"};var yo=function(){this.client=new $n(this);this.combined=new bo(this);this.server=new wo(this)},
zo;p(yo,ve);yo.prototype.i=function(){if(this.xb())return;this.client.i();this.combined.i();this.server.i()};
var Ao=function(){zo||(zo=new yo);return zo};var Bo=function(){nl.call(this)};
p(Bo,nl);ga(Bo);Bo.prototype.dd=function(){return"button"};
Bo.prototype.o=function(a){var b=Bo.b.o.call(this,a),c=a.ej();c&&this.Nj(b,c);var d=a.sa();d&&this.hb(b,d);return b};
Bo.prototype.va=function(a,b){b=Bo.b.va.call(this,a,b);a.BY(this.sa(b));a.rY(this.ej(b));return b};
Bo.prototype.sa=ea;Bo.prototype.hb=ea;Bo.prototype.ej=function(a){return a.title};
Bo.prototype.Nj=function(a,b){if(a)a.title=b||""};
Bo.prototype.$=function(){return"goog-button"};var Co=function(){Bo.call(this)};
p(Co,Bo);ga(Co);var Do="goog-custom-button";Co.prototype.o=function(a){var b=this.Kh(a),c={"class":"goog-inline-block "+b.join(" "),title:a.ej()||""};return a.O.o("div",c,this.Rd(a.Bd(),a.O))};
Co.prototype.Ja=function(a){return a&&a.firstChild.firstChild};
Co.prototype.Rd=function(a,b){var c="goog-inline-block "+this.$();return b.o("div",{"class":c+"-outer-box"},b.o("div",{"class":c+"-inner-box"},a))};
Co.prototype.mb=function(a){return a.tagName=="DIV"};
Co.prototype.jv=function(a,b){var c=a.O.yk(b);if(c&&c.className.indexOf(this.$()+"-outer-box")!=-1){var d=a.O.yk(c);if(d&&d.className.indexOf(this.$()+"-inner-box")!=-1)return true}return false};
Co.prototype.va=function(a,b){Eo(b,true);Eo(b,false);this.jv(a,b)||b.appendChild(this.Rd(b.childNodes,a.O));uc(b,"goog-inline-block",this.$());return Co.b.va.call(this,a,b)};
Co.prototype.$=function(){return Do};
var Eo=function(a,b){if(a){var c=b?a.firstChild:a.lastChild,d;while(c&&c.parentNode==a){d=b?c.nextSibling:c.previousSibling;if(c.nodeType==3){var e=c.nodeValue;if(Ja(e)=="")a.removeChild(c);else{c.nodeValue=b?e.replace(/^[\s\xa0]+/,""):Ka(e);break}}else break;c=d}}};var Fo=function(){Co.call(this)};
p(Fo,Co);ga(Fo);Fo.prototype.o=Fo.b.o;Fo.prototype.Ja=function(a){return a&&a.firstChild.firstChild.firstChild.lastChild};
Fo.prototype.Rd=function(a,b){var c=this.Ph(),d="goog-inline-block ";return b.o("div",{"class":d+c+"-outer-box"},b.o("div",{"class":d+c+"-inner-box"},b.o("div",{"class":c+"-pos"},b.o("div",{"class":c+"-top-shadow"},"\u00a0"),b.o("div",{"class":c+"-content"},a))))};
Fo.prototype.jv=function(a,b){var c=a.O.yk(b);if(c&&c.className.indexOf("goog-button-base-outer-box")!=-1){var d=a.O.yk(c);if(d&&d.className.indexOf("goog-button-base-inner-box")!=-1){var e=a.O.yk(d);if(e&&e.className.indexOf("goog-button-base-pos")!=-1){var f=a.O.yk(e);if(f&&f.className.indexOf("goog-button-base-top-shadow")!=-1){var g=a.O.lP(f);if(g&&g.className.indexOf("goog-button-base-content")!=-1)return true}}}}return false};
Fo.prototype.$=function(){return"goog-button"};
Fo.prototype.Ph=function(){return"goog-button-base"};
ll("goog-button",function(){return new Go(null,Fo.getInstance())});var Ho=function(){Bo.call(this)};
p(Ho,Bo);ga(Ho);Ho.prototype.dd=function(){return undefined};
Ho.prototype.o=function(a){this.yH(a);return a.O.o("button",{"class":this.Kh(a).join(" "),disabled:!a.jb(),title:a.ej()||"",value:a.sa()||""},a.Hp()||"")};
Ho.prototype.mb=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")};
Ho.prototype.va=function(a,b){this.yH(a);b.disabled&&uc(b,this.We(1));return Ho.b.va.call(this,a,b)};
Ho.prototype.Ig=function(a){a.tg().e(a.f(),B,a.Dj)};
Ho.prototype.Gj=ea;Ho.prototype.Ug=ea;Ho.prototype.Kf=function(a){return a.jb()};
Ho.prototype.ef=ea;Ho.prototype.gb=function(a,b,c){Ho.b.gb.call(this,a,b,c);var d=a.f();if(d&&b==1)d.disabled=c};
Ho.prototype.sa=function(a){return a.value};
Ho.prototype.hb=function(a,b){if(a)a.value=b};
Ho.prototype.ky=ea;Ho.prototype.yH=function(a){a.qx(false);a.VW(255,false);a.Wg(32,false)};var Go=function(a,b,c){S.call(this,a,b||Ho.getInstance(),c)};
p(Go,S);Go.prototype.sa=function(){return this.ec};
Go.prototype.hb=function(a){this.ec=a;this.ca.hb(this.f(),a)};
Go.prototype.BY=function(a){this.ec=a};
Go.prototype.ej=function(){return this.mI};
Go.prototype.Nj=function(a){this.mI=a;this.ca.Nj(this.f(),a)};
Go.prototype.rY=function(a){this.mI=a};
Go.prototype.C=function(){Go.b.C.call(this);delete this.ec;delete this.mI};
Go.prototype.Lm=function(a){return(a.keyCode==13||a.keyCode==32)&&this.Dj(a)};
ll("goog-button",function(){return new Go(null)});var Io=function(){var a=new Go("L\u00e4gg till namnetiketter",Fo.getInstance());a.Nj("Namnge personerna p\u00e5 dina bilder");a.Wf("gphoto-addnametagsbutton");return a};var Jo=function(a,b,c,d){Fm.call(this,b,c,d)};
p(Jo,Fm);Jo.prototype.Fl=true;Jo.prototype.$j=3;Jo.prototype.D=L.prototype.D;Jo.prototype.ha=function(){return"gphoto.sapphire.ui.PeopleWidgetIcon"};
Jo.prototype.o=function(){this.g=w("td")};
Jo.prototype.A=function(){Jo.b.A.call(this);var a=w("div",{"class":this.se});y(this.g,a);var b=vg('<div><a href="{lhui_href}"><img src="{lhui_src}" class="lhcl_sp_iconicShape" /></a></div>',{lhui_href:this.j.link,lhui_src:this.j.src});b.setAttribute("title",this.j.name);y(a,b);var c=db(this.j.name,9,false),d=w("a",{"class":this.se+"-name",href:this.j.link},c);c!=this.j.name&&d.setAttribute("title",this.j.name);y(a,d);this.Cy=true};var Ko=function(a,b,c,d,e,f,g){L.call(this);this.r=new I(this);this.Ik=new U(Jo,"lhcl_peopleWidgetList","lhcl_peopleWidgetIcon");this.ga(this.Ik);this.Pl=null;if(d&&e){this.Pl=Io();this.ga(this.Pl)}this.nn=b;this.C1=c;this.Y_=d;this.F0=a;this.F=Ao();this.Dw=e&&_authuser.isOwner;this.G0=!!g;this.Ac=f};
p(Ko,L);Ko.prototype.i=function(){if(!this.xb()){Ko.b.i.call(this);this.r.i();this.Ik.i()}};
Ko.prototype.ha=function(){return"gphoto.sapphire.ui.PeopleWidget"};
Ko.prototype.o=function(){Ko.b.o.call(this);this.ra(this.g)};
Ko.prototype.ra=function(a){Ko.b.ra.call(this,a);uc(a,"lhcl_sidebox");var b=vg('<div><div class="lhcl_title" style="position: relative">{lhui_header} <a class="gphoto-viewall" href="{lhui_href}">Visa alla</a></div><div class="lhcl_peopleWidgetList"/></div>',{lhui_header:this.F0,lhui_href:this.nn}),c=Dc("div","lhcl_peopleWidgetList",b)[0];this.Ik.va(c);this.Pl!=null&&this.Pl.U(b);y(a,b)};
Ko.prototype.A=function(){Ko.b.A.call(this);this.Pl!=null&&this.r.e(this.Pl,Fh,this.iQ);var a=this.F.combined;this.r.e(a,En,m(function(){this.reload()},
this));a.JE(!this.Dw?_user.name:null,!this.Dw?6:null,!this.Dw?false:true,this.Ac?[this.Ac.id]:null);this.r.e(this.F.client,Gn,this.FR)};
Ko.prototype.iQ=function(){window.location=this.Y_};
Ko.prototype.FR=function(a){a&&a.subType==Hn&&this.reload()};
Ko.prototype.reload=function(){var a=this.F.client.KC(Wn,Vn);if(a.length>0){a=Ub(a,0,6);var b=new vn(Fb(a,this.yL,this));this.Ik.W(b)}else if(!this.Dw||this.G0)H(this.g,false)};
Ko.prototype.yL=function(a){return{src:a.Yi(),name:a.Lb(false),link:this.C1+"&subjectids="+a.N()}};var Mo=function(a,b){this.Mg=a||0;this.yt=!!b;this.H=new Jd;this.Ba=new Lo(null);this.Ba.Va=this.Ba.prev=this.Ba};
Mo.prototype.get=function(a,b){var c=this.H.get(a);if(c){if(this.yt){c.remove();this.Dv(c)}return c.value}return b};
Mo.prototype.X=function(a,b){var c=this.H.get(a);if(c){c.value=b;if(this.yt){c.remove();this.Dv(c)}}else{c=new Lo(a,b);this.H.X(a,c);this.Dv(c)}};
Mo.prototype.peek=function(){return this.Ba.Va.value};
Mo.prototype.shift=function(){return this.VF(this.Ba.Va)};
Mo.prototype.pop=function(){return this.VF(this.Ba.prev)};
Mo.prototype.remove=function(a){var b=this.H.get(a);if(b){b.remove();this.H.remove(a);return true}return false};
Mo.prototype.S=function(){return this.H.S()};
Mo.prototype.isEmpty=function(){return this.H.isEmpty()};
Mo.prototype.fd=function(){return this.map(function(a,b){return b})};
Mo.prototype.vb=function(){return this.map(function(a){return a})};
Mo.prototype.contains=function(a){return this.some(function(b){return b==a})};
Mo.prototype.Eb=function(a){return this.H.Eb(a)};
Mo.prototype.clear=function(){this.H.clear();this.Ba.Va=this.Ba.prev=this.Ba};
Mo.prototype.forEach=function(a,b){for(var c=this.Ba.Va;c!=this.Ba;c=c.Va)a.call(b,c.value,c.key,this)};
Mo.prototype.map=function(a,b){var c=[];for(var d=this.Ba.Va;d!=this.Ba;d=d.Va)c.push(a.call(b,d.value,d.key,this));return c};
Mo.prototype.some=function(a,b){for(var c=this.Ba.Va;c!=this.Ba;c=c.Va)if(a.call(b,c.value,c.key,this))return true;return false};
Mo.prototype.every=function(a,b){for(var c=this.Ba.Va;c!=this.Ba;c=c.Va)if(!a.call(b,c.value,c.key,this))return false;return true};
Mo.prototype.Dv=function(a){if(this.yt){a.Va=this.Ba.Va;a.prev=this.Ba;this.Ba.Va=a;a.Va.prev=a}else{a.prev=this.Ba.prev;a.Va=this.Ba;this.Ba.prev=a;a.prev.Va=a}this.ZZ()};
Mo.prototype.ZZ=function(){if(this.Mg)for(var a=this.H.S();a>this.Mg;a--){var b=this.yt?this.Ba.prev:this.Ba.Va;b.remove();this.H.remove(b.key)}};
Mo.prototype.VF=function(a){if(this.Ba!=a){a.remove();this.H.remove(a.key)}return a.value};
var Lo=function(a,b){this.key=a;this.value=b};
Lo.prototype.remove=function(){this.prev.Va=this.Va;this.Va.prev=this.prev;this.prev=this.Va=null};var No=function(a){J.call(this);this.yx(a);this.r=new I(this);this.K1=new Mi(this.cW,100,this)};
p(No,J);No.prototype.Ua=false;No.prototype.i=function(){if(!this.xb()){No.b.i.call(this);this.r.i();if(this.Z){Oc(this.Z);delete this.Z}}};
No.prototype.load=function(a){this.Uw();this.Ua=true;this.YU=a;a.startTime=n();var b=a.GC(),c=Kb(b,function(f){return f.img}),
d=c?c.img:this.NO(),e=a.src;if(d.src==e&&d.complete){this.Uw();this.dispatchEvent(new A(Pj,a))}else{this.r.e(d,["load","abort",Rj],this.$e);d.src=e}};
No.prototype.$O=function(){return this.Ua};
No.prototype.NO=function(){if(!this.Z){var a=x("img");this.Z=a;K(a,"position","absolute");K(a,"visibility","hidden");Ng(a,1,1);Lg(a,10,-10);y(document.body,a)}return this.Z};
No.prototype.Uw=function(){this.Ua=false;this.YU=null;this.r.ya();this.Z&&this.K1.start()};
No.prototype.cW=function(){if(this.Z&&!this.Ua)this.Z.src="img/transparent.gif"};
No.prototype.$e=function(a){var b=a.type=="load"?Pj:Rj,c=this.YU;this.Uw();this.dispatchEvent(new A(b,c))};var Oo=function(a){this.src=a;this.pd=[];this.BG={}};
Oo.prototype.cK=function(a,b){this.BG[a]=b;this.pd.push(b)};
Oo.prototype.OV=function(a){var b=jc(this.BG,a);if(b){fc(this.BG,b);Rb(this.pd,b);b.img=null;b.callback=null;b.errorCallback=null}};
Oo.prototype.XR=function(){return this.pd.length>0};
Oo.prototype.GC=function(){return this.pd};var Po=function(){this.dw=[];this.ac=[];this.sr={};this.r=new I(this)};
p(Po,J);Po.prototype.i=function(){if(!this.xb()){Po.b.i.call(this);Cb(this.dw,function(a){a.i()});
this.r.i()}};
Po.prototype.load=function(a){var b=a.key,c=hj(a.baseUrl,a.imgMax,a.crop),d=jc(this.sr,c);if(!d){d=new Oo(c);this.sr[c]=d;this.ac.push(d)}d.cK(b,a);this.FE()};
Po.prototype.remove=function(a){var b=a.key,c=hj(a.baseUrl,a.imgMax,a.crop),d=jc(this.sr,c);if(d){d.OV(b);if(!d.XR()){Rb(this.ac,d);fc(this.sr,c)}}};
Po.prototype.FE=function(){if(this.ac.length){var a=this.dO();if(a){var b=this.ac.shift();fc(this.sr,b.src);a.load(b)}}};
Po.prototype.dO=function(){var a=Kb(this.dw,function(b){return!b.$O()});
if(!a&&this.dw.length<3){a=new No(this);this.dw.push(a);this.r.e(a,[Pj,Rj],this.aq)}return a};
Po.prototype.aq=function(){this.FE()};var Qo=function(a,b,c,d){this.status=a;this.baseUrl=b;this.imgMax=c;this.crop=d};
Qo.prototype.RP=function(){return hj(this.baseUrl,this.imgMax,this.crop)};var Ro=function(a,b,c,d,e,f,g){ve.call(this);this.key=a;this.baseUrl=b;this.imgMax=c;this.crop=d;this.callback=e;this.errorCallback=f;this.Z=g;this.startTime=n()};
p(Ro,ve);Ro.prototype.C=function(){this.callback=null;this.errorCallback=null;this.Z=null;if(this.r){this.r.i();this.r=null}};
Ro.prototype.complete=function(a){this.$H=a;this.L1=new Qo(a,this.baseUrl,this.imgMax,this.crop);if(this.Z){var b=hj(this.baseUrl,this.imgMax,this.crop);if(this.Z.src!=b){if(this.callback||this.errorCallback){this.r=new I(this);this.r.e(this.Z,["load","abort",Rj],this.bE)}this.Z.src=b}}this.r||this.bE()};
Ro.prototype.bE=function(){var a=this.callback;if(this.$H==0&&this.errorCallback)a=this.errorCallback;this.r&&this.r.ya();a&&a(this.L1);this.i()};var So=function(){ve.call(this);this.au={};this.Cj={};this.GT=new Mo(100,true);this.r=new I(this)},
To;p(So,ve);So.prototype.J=qe("gphoto.image.Loader");So.prototype.XV=0;So.prototype.i=function(){if(!this.xb()){So.b.i.call(this);$b(this.au,function(a){a.i()});
this.r.i()}};
So.prototype.load=function(a,b,c,d,e,f,g){var h=++this.XV,i=this.Uu(a,d,true);if(b){var j=Math.max(b.width,b.height);if(j<=c)c=0}var k=new Ro(h,a,c,d,e,f,g);if(Lb(i,c))this.Vz(k,Pj);else{this.Cj[h]=k;var o=this.WB(a);o.load(k)}return h};
So.prototype.vd=function(a){var b=jc(this.Cj,a);if(b){fc(this.Cj,a);var c=this.WB(b.baseUrl);c.remove(b);return true}return false};
So.prototype.iP=function(a,b,c){var d=-1,e=this.Uu(a,!!c,false);if(e&&e.length)if(b==0)d=e[0]==0?0:e[e.length-1];else for(var f=0;f<e.length;f++){var g=e[f];if(g<b)d=g;else{if(g<=b*2)d=g;break}}return d};
So.prototype.Uu=function(a,b,c){var d=(b?"c-":"")+a,e=this.GT.get(d);if(c&&!e){e=[];this.GT.X(d,e)}return e};
So.prototype.WB=function(a){var b=new N(a),c=b.uu()||"/";if(!(c in this.au)){var d=new Po(this);this.au[c]=d;this.r.e(d,[Pj,Rj],this.$e)}return this.au[c]};
So.prototype.$e=function(a){var b=a.type,c=a.target,d=c.GC(),e=n()-c.startTime;Cb(d,function(f){fc(this.Cj,f);this.Vz(f,b,e)},
this)};
So.prototype.Vz=function(a,b,c){var d=b==Rj?0:1,e=a.baseUrl.substr(a.baseUrl.lastIndexOf("/")+1);this.J.da("transfer time: "+(c||0)+"ms, request time: "+(n()-a.startTime)+"ms, size: "+a.imgMax+"px, filename: "+e);d==1&&this.MX(a.baseUrl,a.imgMax,a.crop);a.complete(d)};
So.prototype.MX=function(a,b,c){var d=this.Uu(a,!!c,true);Xb(d,b)};
var Uo=function(){To||(To=new So);return To},
Vo=function(a,b,c,d,e,f,g){var h=Uo(),i=c instanceof q?Math.max(c.width,c.height):c;return h.load(a,b,i,d,e,f||null,g||null)},
Wo=function(a){var b=Uo();return b.vd(a)},
Xo=function(a,b,c){var d=To;return d?d.iP(a,b,c):-1};var Yo=function(a,b,c,d){Fm.call(this,b,c);this.r=new I(this);this.Ik=a;this.ww=false;this.CS="1em";this.VD=".666875em";if(d&&d!=Zj){var e=d.Ti()||1;if(e<1){this.CS=e+"em";this.VD="1em"}else this.VD=1/e+"em"}};
p(Yo,Fm);var Zo=0;Yo.prototype.J=qe("gphoto.BasicEntityIcon");var $o=3;Yo.prototype.vp=-1;var ap={marginHorizontalPx:-2,marginVerticalPx:12,paddingHorizontalPx:0,paddingVerticalPx:0,widthEm:1.1,heightEm:1};Yo.prototype.width=aj[$o]*ap.widthEm+ap.marginHorizontalPx;Yo.prototype.as=function(a){Zo=a};
Yo.prototype.C=function(){this.r.i()};
Yo.prototype.ke=function(a){var b=$o!=a;$o=a;this.width=aj[$o]*ap.widthEm+ap.marginHorizontalPx;return b};
var bp="img/transparent.gif";Yo.prototype.o=function(){Yo.b.o.call(this);var a=this.f();rc(a,"goog-inline-block "+this.se);a.innerHTML=tg('<div class="{containerClass}"><img class="goog-icon-list-icon-img" width="{width}" height="{height}"><div class="{metaClass}"></div></div>',{width:this.CS,height:this.VD,containerClass:this.se+"-img-div",metaClass:this.se+"-meta"});var b=a.firstChild;this.Z=b.firstChild;this.Jd=b.lastChild};
Yo.prototype.A=function(){Yo.b.A.call(this);this.r.e(this.Z,F,this.jk);this.r.e(this.Z,F,this.BM);this.r.e(this.Z,"load",this.$e);if(this.j)this.ja();else return};
Yo.prototype.D=function(){this.g&&Ue(this.g,F,this.jk,false,this);Yo.b.D.call(this);this.r.ya()};
Yo.prototype.$e=function(){this.r.ka(this.Z,"load",this.$e);this.dispatchEvent("load")};
Yo.prototype.cH=function(a){this.vp=a};
Yo.prototype.zO=function(){return this.vp};
Yo.prototype.WX=function(a){var b=this.ww!=a;this.ww=a;b&&this.ja()};
Yo.prototype.clear=function(){if(this.Z){this.Et();this.Z.src=bp}this.It()};
Yo.prototype.W=function(a){if(a==Zj)a=null;if(this.j!=a)this.j=a;this.ja()};
Yo.prototype.ja=function(){if(!this.la()||!this.j||!this.Z)return;var a=false,b,c;if(this.ww){if(this.Z.src!=bp)a=true}else{b=pj(this.j.videostatus,"");var d=$o,e=aj[d],f=1,g=1,h=this.j.Ti()||1;if(h>=1)g=1/h;else f=h;var i=new q(e*f,e*g);if(b){a=true;c=b}else{b=fj(this.j.s);c=hj(b,i,false);a=this.Z.src!=c}}if(a)if(this.ww){this.Z.src=bp;Ng(this.Z,f+"em",g+"em")}else{this.Et();this.Fr(f,g);if(this.j.videostatus&&this.j.videostatus!="final")i=0;var j=new q(this.j.w,this.j.h);if(this.vp>=Zo)this.QD=
Vo(b,j,i,false,null,null,this.Z);else this.Z.src=c}this.wo()};
Yo.prototype.Fr=function(a,b){Ng(this.Z,a+"em",b+"em")};
Yo.prototype.Et=function(){if(this.QD){Wo(this.QD);this.QD=0}};
Yo.prototype.wo=function(){};
Yo.prototype.It=function(){};
Yo.prototype.show=function(a){this.g&&H(this.g,a)};var cp=function(a,b,c,d){Yo.call(this,a,b,c,d)};
p(cp,Yo);cp.prototype.o=function(){cp.b.o.call(this);var a=this.f();_features.topalignalbumicons&&K(a,"vertical-align","top")};
cp.prototype.wo=function(){var a=this.j?this.j.c:"";if(dd(this.Jd)!=a){this.pS&&We(this.pS);this.oS&&We(this.oS);if(!a||Fa(a))z(this.Jd,"");else{this.Jd.innerHTML=Tk(a);this.pS=D(this.Z,ye,this.cN,false,this);this.oS=D(this.Z,ze,function(){H(this.Ik.QC(),false)},
false,this)}}};
cp.prototype.cN=function(){var a=mh(this.g),b=mh(this.Jd),c=this.Ik.QC();Ng(c,this.width,"auto");Lg(c,a.x,a.y+b.y);c.innerHTML=this.Jd.innerHTML;H(c,true)};var dp=function(){L.call(this)};
p(dp,L);dp.prototype.ha=function(){return"gphoto.AlbumLinkSidebar"};
dp.prototype.show=function(a){H(this.g,a)};
dp.prototype.PW=function(a,b){if(this.la())this.g.innerHTML='<span class="lhcl_title">'+("Album: "+("</span>"+('<a href="'+b+'">'+lg(s(a))+"</a>")))};
dp.prototype.o=function(){this.g=w("div",{"class":"lhcl_toolbox"})};var ep=function(a,b){this.Bj=a;this.Gd=b?"tok="+b:null},
fp,gp=function(){if(!fp)throw Error("Logger has not been initalized");return fp};
ep.prototype.log=function(a,b){var c=["page="+a];for(var d in b)c.push(d+"="+Pa(b[d]));Ek(this.Bj+"?"+c.join("&"),undefined,this.Gd?"POST":"GET",this.Gd?this.Gd:undefined)};
var hp=function(a,b){fp=new ep(a,b)};function ip(){jp.kf(this);this.nb=x("div");this.nb.className="lhcl_cover";document.body.appendChild(this.nb);this.lf();this.Fj=m(this.lf,this);bg(window,"resize",this.Fj);window.scrollTo(0,0);Ag("hideVideo");Zf(this,Xf);this.B={close:G("func"),change:G("func"),changeCode:G("func")};yg(this.B.close,m(this.$c,this));yg(this.B.change,m(this.Ss,this));yg(this.B.changeCode,m(this.Ss,this));this.tb=vg(kp,this.B);document.body.insertBefore(this.tb,document.body.firstChild);this.N1=document.title;this.Ss();
this.Tl=_authuser;this.Ac=_album;if(!lp)v("lhid_widget_preview").innerHTML='<div class="lhcl_output" style="height:192px"><span>You need Adobe\u00ae Flash\u00ae Player 8 or higher to play slideshows.</span><br /><br /><a target="_blank" href="http://www.macromedia.com/go/getflashplayer">H\u00e4mta Flash</a></div>'}
ip.prototype.Da=function(){this.J();jp.mf(this);cg(window,"resize",this.Fj);zg(this.B.close);zg(this.B.change);zg(this.B.changeCode);for(var a in this)this[a]=null};
ip.prototype.$c=function(){this.tb&&Oc(this.tb);this.nb&&Oc(this.nb);this.zj&&this.zj();Zf(this,Yf);document.title=this.N1;this.Da()};
ip.prototype.lf=function(){var a=Math.max(document.body.offsetHeight,document.body.scrollHeight);a=Math.max(a,document.body.clientHeight);a=Math.max(a,document.documentElement.clientHeight);this.nb.style.height=a+"px"};
var op=function(a,b,c,d){var e="host="+window.location.hostname;e+=window.location.port?"&port="+window.location.port:"";e+=a.captions.checked?"&captions=1":"";e+=a.autoplay.checked?"":"&noautoplay=1";var f=Ui("http",undefined,window.location.hostname,window.location.port,"/lh/getEmbed"),g={flash_src:_flashPath+"/slideshow.swf",width:d,height:Math.round(d*2/3),font:d<=144?10:13,url:b,vars:e,album_url:c,embed_url:f.toString()};return tg(a.html.checked?mp:np,g)};
ip.prototype.Ss=function(){var a=v("lhid_slideshow_options");this.U_=a.captions.checked;this.u2=a.autoplay.checked;this.L2=a.html.checked;this.Ls=a.size.value;var b=Pa(_album.photosRss);v("lhid_html").value=op(a,b,_album.link,a.size.value);v("lhid_widget_preview").innerHTML=op(a,b,_album.link,288)};
ip.prototype.J=function(){var a={width:this.Ls};if(this.U_)a.captions=1;gp().log(116,a)};
var pp='<h2>Alternativ f\u00f6r bildspel</h2><div>V\u00e4lj storlek p\u00e5 bildspel:</div><select name="size" onchange="_d(\'{changeCode}\')"><option value="144">Liten '+Xg(144)+'</option><option value="288" selected>Mellanstor '+Xg(288)+'</option><option value="400">Stor '+Xg(400)+'</option><option value="600">Extra stor '+Xg(600)+'</option><option value="800">XXL '+Xg(800)+'</option></select><br /><input type="checkbox" name="captions" onclick="_d(\'{change}\')"/>Visa bildtexter<input type="checkbox" name="autoplay" checked onclick="_d(\'{change}\')"/>Spela upp automatiskt<br /><input type="checkbox" name="html" onclick="_d(\'{change}\')"/>HTML-l\u00e4nkar (till MySpace)<hr><h2>B\u00e4dda in bildspel</h2><div class="lhcl_copy">Kopiera och klistra in koden p\u00e5 din webbplats.</div><textarea name="code" id="lhid_html" onclick="this.select()" rows="4"></textarea>',
kp='<div id="lhid_slideshow" class="lhcl_dialog"><div class="lhcl_dialog_body"><h1>Skapa ett bildspel till din webbplats, blogg, Myspace-sida o.s.v.</h1><table><tr><td style="vertical-align:top"><form id="lhid_slideshow_options">'+pp+'</form></td><td><span class="lhcl_frameblock" style="display:block;"><div class="lhcl_small">F\u00f6rhandsgranska bildspel</div><div id="lhid_widget_preview"></div></span><div class="lhcl_small"><a href="http://picasa.google.com/support/bin/answer.py?answer=66969" target="_blank">Vill du ha hj\u00e4lp med att \u00f6verf\u00f6ra det h\u00e4r bildspelet till din webbplats?</a></div></td></tr></table></div><div class="lhcl_buttons"><input type="button" onclick="_d(\'{close}\')" value="Klart" class="lhcl_default" id="{submit_id}" /></div></div>',
np='<embed type="application/x-shockwave-flash" src="{flash_src}" width="{width}" height="{height}" flashvars="{vars}&RGB=0x000000&feed={url}" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>',mp='<div style="width:{width}px;font-family:arial,sans-serif;font-size:{font}px;"><div>'+np+'</div><span style="float:left;"><a href="{album_url}" style="color:#3964c2">Visa album</a></span><div style="text-align:right;"><a href="{embed_url}" style="color:#3964c2">H\u00e4mta</a></div></div>';var rp=function(a){A.call(this,qp,a);this.entity=a};
p(rp,A);var qp="entitychanged";var sp=function(a,b,c,d,e,f,g,h,i,j,k,o,r){L.call(this);this.fz=a;this.Mn=b;this.of=c;this.Z1=d;this.iT=e;this.IK=f;this.t0=g;this.D1=ab(h);this.I_=k;this.Mq=i;this.R=j;this.lt=o;this.ud=r;this.p=new I(this)};
p(sp,L);sp.prototype.D=function(){sp.b.D.call(this);this.p&&this.p.ya()};
sp.prototype.show=function(a){this.g&&this.of&&H(this.g,a)};
sp.prototype.TY=function(){new ip};
sp.prototype.bs=function(a){this.fz=a;if(this.la())this.ma.src=this.fz};
sp.prototype.o=function(){sp.b.o.call(this);var a={"class":"lhcl_toolbox"};if(!_album||!this.of)a.style="display: none;";else a.id="lhid_albumprop";this.g=w("div",a);this.gp();this.Mn>0&&this.DL();this.GL();this.Mn>0&&this.WL()};
sp.prototype.A=function(){sp.b.A.call(this);this.WA&&this.p.e(this.WA,F,this.TY);this.ud&&this.p.e(this.ma,B,this.ud)};
sp.prototype.gp=function(){var a=w("table",{"class":"gphoto-sidebar-subitem"}),b=x("tbody"),c=x("tr"),d=w("td",{"class":"gphoto-sidebar-albumcover"}),e=this.ud?"cursor: pointer;":"";this.ma=w("img",{src:this.fz,width:"64",height:"64",style:e});var f=w("td",{width:"100%",valign:"top",align:"left","class":"gphoto-sidebar-albuminfo"}),g=this.iT?"Olistad":"\u00d6ppet",h=this.iT?"gphoto-unlisted":"gphoto-public",i=this.Mq?lg(this.Mq)+"<br />":"",j=this.Mn+" bilder";f.innerHTML=this.R+"<br />"+i+j+" - "+
this.Z1+'<br/><span class="'+h+'">'+g+"</span>";y(d,this.ma);y(c,d);y(c,f);y(b,c);y(a,b);y(this.g,a);var k=w("div",{"class":"gphoto-sidebar-subitem gphoto-sidebar-albumdesc"});k.innerHTML=this.I_;y(this.g,k)};
sp.prototype.DL=function(){if(_authuser&&_authuser.isOwner){var a=w("div",{"class":"gphoto-sidebar-subitem gphoto-sidebar-links"}),b=w("div",{style:"margin-bottom=3px; -moz-user-select: none"}),c=w("img",{src:"img/transparent.gif","class":"SPRITE_link lhcl_spriting_alignMiddle lhcl_spriting_marginRight5"}),d=w("span",{"class":"lhcl_fakelink"},"L\u00e4nka till det h\u00e4r albumet"),e=w("img",{src:"img/transparent.gif","class":"gphoto-zippy-icon"});y(b,c);y(b,d);y(b,e);var f=w("div",null,"Klistra in l\u00e4nk i e-postmeddelande eller snabbmeddelande"),
g=w("input",{type:"text",value:window.location.href.toString(),onclick:"this.select()","class":"gphoto-sidebar-inputbox"});this.p.e(g,"blur",function(){g.value=window.location.href.toString()});
y(a,f);y(a,g);var h={albumLink:window.location.href.toString(),albumCoverSrc:this.ma.src.replace(/\/s\d{2,3}(-c)?\//,"/s160-c/"),albumTitle:this.lt},i=tg('<table style="width:194px;"><tr><td align="center" style="height:194px;background:url(http://picasaweb.google.com/f/img/transparent_album_background.gif) no-repeat left"><a href="{albumLink}"><img src="{albumCoverSrc}" width="160" height="160" style="margin:1px 0 0 4px;"></a></td></tr><tr><td style="text-align:center;font-family:arial,sans-serif;font-size:11px"><a href="{albumLink}" style="color:#4D4D4D;font-weight:bold;text-decoration:none;">{albumTitle}</a></td></tr></table>',
h),j=w("div",null,"Paste HTML to embed in website"),k=w("input",{type:"text",value:i,onclick:"this.select()","class":"gphoto-sidebar-inputbox"});this.p.e(k,"blur",function(){k.value=i});
y(a,j);y(a,k);if(_features.newStrings){this.WA=w("div",{"class":"lhcl_fakelink"},w("img",{src:"img/transparent.gif","class":"SPRITE_embed lhcl_spriting_alignBottom lhcl_spriting_marginRight5"}),"B\u00e4dda in bildspel");y(a,this.WA)}y(this.g,b);y(this.g,a);new Ki(b,a)}};
sp.prototype.WL=function(){if(this.t0){var a=w("div"),b=w("a",{href:this.D1},w("img",{src:"img/transparent.gif","class":"SPRITE_rss lhcl_spriting_alignBottom lhcl_spriting_marginRight5"}),"RSS");y(a,b);y(this.g,a)}};
sp.prototype.GL=function(){if(this.IK){var a=w("div",{"class":"gphoto-sidebar-subitem"}),b=w("img",{src:"img/blogo16.gif",width:"16px",height:"16px","class":"lhcl_spriting_alignMiddle lhcl_spriting_marginRight5"}),c=w("a",{href:this.IK},"Visa blogg");y(a,b);y(a,c);y(this.g,a)}};var up=function(a,b,c,d){J.call(this);if(a&&!b)throw Error("Can't use invisible history without providing a blank page.");var e;if(c)e=c;else{var f="history_state"+tp;document.write(Ea('<input type="text" name="%s" id="%s" style="display:none" />',f,f));e=v(f)}this.iq=e;this.qc=c?Jc(Ac(c)):window;this.Yj=this.qc.location.href.split("#")[0]+"#";this.ND=b;this.Ta=new bi(150);this.Ao=!a;this.p=new I(this);if(a||t){var g;if(d)g=d;else{var h="history_iframe"+tp,i=this.ND?'src="'+s(this.ND)+'"':"";document.write(Ea('<iframe id="%s" style="display:none" %s></iframe>',
h,i));g=v(h)}this.wv=g}if(t){this.p.e(this.qc,"load",this.GU);this.documentLoaded=false;this.MY=false}this.Ao?this.rx(this.Ek()):this.sl(this.iq.value);tp++};
p(up,J);up.prototype.Ia=false;up.prototype.Oq=false;up.prototype.jn=null;up.prototype.Sk=null;up.prototype.C=function(){up.b.C.call(this);this.p.i();this.Ha(false)};
up.prototype.Ha=function(a){if(a==this.Ia)return;if(t&&!this.documentLoaded){this.MY=a;return}if(a){if(wb)this.p.e(this.qc.document,vp,this.NU);else xb&&this.p.e(this.qc,"pageshow",this.jr);if(!t||this.documentLoaded){this.p.e(this.Ta,"tick",this.TF);this.Ia=true;if(!t)this.jn=this.Ek();this.Ta.start();this.dispatchEvent(new wp(this.Ek()))}}else{this.Ia=false;this.p.ya();this.Ta.stop()}};
up.prototype.GU=function(){this.documentLoaded=true;this.iq.value&&this.sl(this.iq.value,true);this.Ha(this.MY)};
up.prototype.jr=function(a){if(a.sm().persisted){this.Ha(false);this.Ha(true)}};
up.prototype.Ek=function(){return this.Sk!==null?this.Sk:this.Ao?this.Iu(this.qc):this.Bu()||""};
up.prototype.ff=function(a,b){this.yX(a,false,b)};
up.prototype.Iu=function(a){var b=a.location.href,c=b.indexOf("#");return c<0?"":b.substring(c+1)};
up.prototype.yX=function(a,b,c){if(this.Ek()!=a)if(this.Ao){this.rx(a,b);t&&this.sl(a,b,c);this.Ia&&this.TF()}else{this.sl(a,b);this.Sk=this.jn=this.iq.value=a;this.dispatchEvent(new wp(a))}};
up.prototype.rx=function(a,b){var c=this.Yj+(a||""),d=this.qc.location;if(c!=d.href)if(b)d.replace(c);else d.href=c};
up.prototype.sl=function(a,b,c){if(!xp&&a!=this.Bu()){a=Pa(a);if(t){var d=Vc(this.wv);d.open("text/html",b?"replace":undefined);d.write(Ea("<title>%s</title><body>%s</body>",c||this.qc.document.title,a));d.close()}else{var e=this.ND+"#"+a,f=this.wv.contentWindow;if(f)if(b)f.location.replace(e);else f.location.href=e}}};
up.prototype.Bu=function(){if(t){var a=Vc(this.wv);return a.body?Qa(a.body.innerHTML):null}else if(xp)return null;else{var b=this.wv.contentWindow;if(b){var c;try{c=Qa(this.Iu(b))}catch(d){this.Oq||this.jH(true);return null}this.Oq&&this.jH(false);return c||null}else return null}};
up.prototype.TF=function(){if(this.Ao){var a=this.Iu(this.qc);a!=this.jn&&this.Od(a)}if(!this.Ao||t){var b=this.Bu()||"";if(this.Sk==null||b==this.Sk){this.Sk=null;b!=this.jn&&this.Od(b)}}};
up.prototype.Od=function(a){this.jn=this.iq.value=a;if(this.Ao){t&&this.sl(a);this.rx(a)}else this.sl(a);this.dispatchEvent(new wp(this.Ek()))};
up.prototype.jH=function(a){if(this.Oq!=a)this.Ta.setInterval(a?10000:150);this.Oq=a};
up.prototype.NU=function(){this.Ta.stop();this.Ta.start()};
var xp=yb&&ib(qb,"419")<=0,vp=[F,bf,af],tp=0,wp=function(a){A.call(this,"navigate");this.token=a};
p(wp,A);var yp=function(a){return a=="s"||a=="ct"||a=="ft"||a=="pgt"||a=="gt"||a=="at"||a=="f"};
var zp=function(a){return a=="pgp"||a=="gp"||a=="ap"};var Ap=function(a,b,c,d){J.call(this);this.J_=a;this.Fa=b;this.Bp=c||"";this.Lw=d;this.NF(window.location)};
p(Ap,J);Ap.prototype.isOwner=false;Ap.prototype.zc=null;Ap.prototype.nA=false;Ap.prototype.qA=null;Ap.prototype.Gs=function(){var a=window.location.hash;if(this.qA==a)return;this.qA=a;this.NF(window.location);this.dispatchEvent({type:"changed",context:a})};
Ap.prototype.NF=function(a){var b=new N(a);this.Xc=null;this.fl="";this.Tj=b.ab(am)||this.J_.xf();if(b.ab(lm)!=undefined){this.Xc="s";this.fl="S\u00f6kresultat"}this.nA=b.ab("filter")=="1";this.Hl=b.ab(hm);this.Mr=b.ab(lm);this.Rb=Number(b.ab(mm));this.Ut=!!b.ab(nm);if(this.Mr){this.searchContext=b.ab("psc");if(this.searchContext==undefined)this.searchContext=_authuser.isOwner?dm:_user.name?em:gm.value}if(this.Xx(b,fm)){if(this.Hl){this.Xc="ft";this.fl=Bp}}else if(this.Xx(b,gm)){if(this.Hl){this.Xc=
"ct";this.fl=Bp}}else{this.isOwner=this.Xx(b,bm)&&_authuser.isOwner;this.zc=b.ab(cm)||null;this.OH=b.ab(im)||null;if(this.Hl){this.Xc=this.zc?"at":this.isOwner?"gt":"pgt";this.fl=Bp}else if(this.OH){this.Xc=this.zc?"ap":this.isOwner?"gp":"pgp";this.fl="Personer"}else if(!this.Mr)if(_album.name&&Ya(b.Oh(),_album.name)){this.zc=_album.id;this.Tj=_user.name;this.isOwner=_authuser.isOwner;this.Xc="a";this.fl=_user.nickname+" - "+_album.title}}var c=b.dC();if(c&&c.length>0)this.uL=null;else{var d=b.ab(jm),
e=Wl;if(d==km)e=Xl;else if(this.zc==null&&this.Hl==null)e=Vl;this.uL=e}this.x0=b.ab(om)};
Ap.prototype.Xx=function(a,b){return a.ab(b.name)==b.value};
Ap.prototype.LB=function(){return this.uL};
Ap.prototype.hd=function(){return this.Xc};
Ap.prototype.Le=function(a){this.aa=a};
Ap.prototype.Qa=function(){if(!this.aa){if(this.Xc=="a")this.aa=this.Fa.WN(this.Bp,this.Tj,_album);else if(this.Mr){this.aa=this.Fa.HP(this.Mr);var a=this.aa.Tc();a.dX(this.searchContext);a.eX(this.Tj);a.$G(this.nA)}else if(this.Hl){var a=this.Fa.Su(undefined,undefined,undefined,undefined,this.Bp);this.aa=new Yj(this.Fa,a)}else{this.aa=this.Fa.vP(this.Bp);this.aa.Mj(1000)}this.Lw&&this.aa.lV(0,this.Lw,true)}return this.aa};
Ap.prototype.Xd=function(){var a=this.LB(),b=null;if(!a){var c=window.location.hash.match(/#(\d+)/);if(c&&c.length==2){var d,e;if(this.Xc!="s"){d=this.Tj;e=this.zc}b=this.Fa.AC(c[1],d,e)}}return b};
Ap.prototype.av=function(){return this.Tj};
Ap.prototype.gd=function(){return this.Fa.Zd(this.Tj,"")};
Ap.prototype.Eu=function(){return!!this.isOwner};
Ap.prototype.uD=function(){return this.zc!=null};
Ap.prototype.wf=function(){return this.zc};
Ap.prototype.xg=function(){return this.Mr||this.Hl||""};
Ap.prototype.NC=function(){return this.OH||""};
Ap.prototype.IP=function(){return this.OH?0:this.Hl?1:2};
Ap.prototype.GP=function(){if(this.searchContext)if(this.searchContext==fm.value)return 2;else if(this.searchContext==em)return 3;else{if(this.searchContext==dm)return 4}else if(this.Xc=="at")return 0;else if(this.Xc=="ft")return 2;else if(this.Xc=="gt")return 4;else if(this.Xc=="pgt")return 3;return 1};
Ap.prototype.Ye=function(){return this.Rb};
Ap.prototype.SS=function(){return this.Ut};
Ap.prototype.Dc=function(){return this.fl};
var Bp="Etikettresultat";Ap.prototype.AO=function(){return this.x0||null};var Cp=function(a,b){this.Hd=a;this.Rb=Math.max(b,1);this.Fb=-1;this.uh=0;this.$l=0;this.Jl=Math.ceil(this.Hd/this.Rb);this.IT=false;this.e1=false;this.oA=1};
p(Cp,J);var Dp="totalpageschanged",Ep="currentpagechanged",Fp="currentitemchanged",Gp="totalitemschanged";Cp.prototype.OX=function(a){this.IT=a};
Cp.prototype.Ij=function(a){if(this.Fb==a||0==this.Hd)return;if(a<0||a>=this.Hd)if(this.Hd==0)return;else if(a<0)a=0;else if(a>=this.Hd)a=this.Hd-1;if(isNaN(a))return;var b=false;if(this.IT){var c=this.Mu(a);if(isNaN(c))return;if(c!=this.uh){this.uh=c;b=true}}this.oA=this.Fb<a?1:-1;this.Fb=a;this.dispatchEvent(Fp);b&&this.dispatchEvent(Ep)};
Cp.prototype.Cd=function(){return this.Fb};
Cp.prototype.nO=function(){return this.oA};
Cp.prototype.Bm=function(a){if(a<0||a>this.Jl)return-1;return Math.floor(a*this.Rb)};
Cp.prototype.Mu=function(a){if(a<0||a>=this.Hd)return-1;return Math.floor(a/this.Rb)};
Cp.prototype.lG=function(){var a=Math.ceil(this.Hd/this.Rb),b=this.Fb<0?-1:this.Mu(this.Fb);if(a!=this.Jl){this.Jl=a;this.uh>0&&this.uh>=this.Jl&&this.jx(this.Jl-1);this.dispatchEvent(Dp)}if(b>=0&&b!=this.lp){this.lp=b;this.dispatchEvent(Ep)}if(this.Fb>=this.Hd){this.Fb=this.Hd-1;this.dispatchEvent(Fp)}};
Cp.prototype.ds=function(a,b){var c=this.Hd!=a,d=ba(b)?!b:true;this.Hd=a;if(a==0){this.lp=0;d&&this.dispatchEvent(Ep);return}this.lG();c&&d&&this.dispatchEvent(Gp)};
Cp.prototype.Np=function(){return this.Hd};
Cp.prototype.Wp=function(){return this.Jl};
Cp.prototype.CU=function(){this.CH(1)};
Cp.prototype.sV=function(){this.CH(-1)};
Cp.prototype.CH=function(a){var b=this.$l+a*this.Rb;if(b<0)b=0;if(b>=this.Hd)b=this.Hd-this.Rb;var c=this.Mu(b);if(isNaN(c))return;this.$l=b;this.uh=c;this.dispatchEvent(Ep)};
Cp.prototype.Xe=function(){return this.uh};
Cp.prototype.jx=function(a,b,c){if(a<0||a>=this.Jl||isNaN(a))return;var d=!b&&a!=this.uh;this.uh=a;this.$l=this.uh*this.Rb;var e=false;if(this.e1)if(this.Fb!=this.$l){this.oA=this.Fb<this.$l?1:-1;this.Fb=this.$l;e=!c}d&&this.dispatchEvent(Ep);e&&this.dispatchEvent(Fp)};
Cp.prototype.Mj=function(a){this.Rb=a;this.lG()};
Cp.prototype.Ye=function(){return this.Rb};var Kp=function(a,b,c){Hp(true,a);if(b)Ip=di(m(Jp,null,c),b)},
Jp=function(a){Lp();a&&a()},
Lp=function(a){var b=a?"":null;Hp(false,b)},
Hp=function(a,b){Mp();var c=v("lhid_feedback"),d=v("lhid_notifyMsg");if(c&&d){H(c,a);b&&z(d,b)}},
Mp=function(){if(Ip!=0){ei(Ip);Ip=0}},
Ip=0;var Np=function(a,b,c,d,e,f){var g=n();this.zK=a;this.tL=d;this.p=new I(this);this.Fa=new Ik;this.Tl=this.Fa.Zd(a,b);this.Tl.email=c;var h;if(e){this.Bp=e.feedUrl||"";this.Lw=e.feedPreload||null;this.lb=e.subjects||[];this.oh=e.albums||[];this.t2=e.albumStats||[];if(e.owner){var i=e.owner;h=i.name;this.Fa.Zd(h,i.nickname)}}if(h&&f){this.bm=this.Fa.sc(h,f.id,f.title,f.name);this.bm.JX(f.link);this.bm.GX(f.kmlLink);this.bm.PX(f.mapLink);this.bm.wY(f.uploadlink);this.bm.HX(f.largepreview)}this.xL=new Ap(this,
this.Fa,this.Bp,this.Lw);var j=null;if(t&&(window.location.hash==""||window.location.hash=="#")){var k="lhid_historyiframe";document.write('<iframe id="'+k+'" style="display:none"></iframe>');j=v(k);j.id="";var o=Vc(j);o.open("text/html");o.write("<title>"+s(window.document.title)+"</title><body></body>");o.close()}this.tv=new up(false,null,null,j);this.CM=[];this.ea=new Cp(0,24);this.ea.Ij(0);this.p.e(this.tv,"navigate",this.dr);this.r1=e.objectionEmail;var r=n()-g;this.J.da("Created: "+r+"ms.")};
p(Np,J);Np.prototype.zA=null;Np.prototype.J=qe("gphoto.AppContext");Np.prototype.EV=function(a,b){this.CM.push(new Op(a,b))};
Np.prototype.jX=function(a){this.zA=new Op(a,null)};
Np.prototype.start=function(){this.J.da("Starting app");this.tv.Ha(true);this.dr(new wp(this.tv.Ek()))};
Np.prototype.ff=function(a){this.tv.ff(a)};
Np.prototype.xf=function(){return this.zK};
Np.prototype.CB=function(){if(!this.Tl)this.Tl=this.Fa.Zd(this.zK,"");return this.Tl};
Np.prototype.lc=function(){return this.lb};
Np.prototype.bO=function(){return _features.PWA_NEWUI?"Picasa Web Albums":"Google-foton"};
Np.prototype.Ja=function(){return this.tL};
Np.prototype.Za=function(){return this.xL};
Np.prototype.Jp=function(){return this.Fa};
Np.prototype.Dd=function(){return this.ea};
Np.prototype.vC=function(){return this.r1};
Np.prototype.aE=function(){var a=window.location.toString().replace(/#.*$/,"");Kp("Den beg\u00e4rda bilden \u00e4r felaktig eller otillg\u00e4nglig. Du omdirigeras strax.",1000,function(){window.location.replace(a)})};
Np.prototype.QB=function(){return this.bm};
Np.prototype.dr=function(a){this.J.da("Nav to #"+a.token);var b=Kb(this.CM,function(c){return c.test(a.token)});
if(!b)b=this.zA;if(this.TU&&this.ek&&this.TU==b.vpage)this.ek.ja(a.token);else{this.ek&&this.ek.i();this.ek=new b.vpage(this);this.ek.U(this.tL);this.ek.ja(a.token)}document.title=ab(this.ek.Dc());this.TU=b.vpage};
var Op=function(a,b){this.vpage=a;this.re=b};
Op.prototype.test=function(a){return!!this.re&&this.re.test(a)};var Pp=function(a){L.call(this);this.Q=a;this.r=new I(this)};
p(Pp,L);Pp.prototype.i=function(){if(!this.xb()){Pp.b.i.call(this);this.r.i()}};
Pp.prototype.ha=function(){return"gphoto.VirtualPage"};
Pp.prototype.Yb=function(){return this.Q};
Pp.prototype.Dc=function(){return""};
Pp.prototype.D=function(){Pp.b.D.call(this);this.r.ya()};
Pp.prototype.ja=function(){};var Qp=function(a){Pp.call(this,a)};
p(Qp,Pp);Qp.prototype.ha=function(){return"gphoto.BasePage"};
Qp.prototype.Qa=function(){return this.Q.Za().Qa()};
Qp.prototype.A=function(){Qp.b.A.call(this);var a=this.Qa();if(a){this.cD();this.r.e(a,Uj,this.cD)}};
Qp.prototype.cD=function(){var a=this.Qa();if(a){var b=a.Te();this.Yb().Dd().ds(b)}};
Qp.prototype.J=function(a){if(!this.Oa)this.Oa=qe("gphoto.BasePage");this.Oa.da(a)};var Rp=function(a){L.call(this);this.hc=a||""};
Rp.prototype.$=function(a){return this.hc+(a?"-"+a:"")};
Rp.prototype.Wd=function(a,b){var c=b||this.f(),d=this.N()+"-"+a,e=v(d);if(!e){var f=Dc(null,this.$(a),c);if(f.length){e=f[0];e.id=d}else e=null}return e};var Tp=function(a){L.call(this);if(!Sp){Sp=true;nc(Tp.prototype,Rp.prototype)}Rp.call(this,a);this.p=new I(this);this.qe={};this.pa=[]},
Sp;p(Tp,L);var Up=new RegExp("\\{\\$prefix\\}","g");Tp.prototype.kg=function(a){return Lc(a.replace(Up,this.$()))};
Tp.prototype.i=function(){if(this.xb())return;Tp.b.i.call(this);this.p.i()};
Tp.prototype.Qg=function(a){while(this.pa.length)this.removeChild(this.pa[0],a)};var Vp=function(a,b){Tp.call(this,"lhcl_NamePopup");this.q0=!!b;a&&this.W(a)};
p(Vp,Tp);Vp.prototype.o=function(){this.xc(this.kg('<div class="{$prefix}"><div class="lhcl_RelativeContainer"><div class="{$prefix}-background_"><div class="{$prefix}-contents_"></div></div></div></div>'));this.bA=this.Wd("contents_");z(this.bA,this.Ue)};
Vp.prototype.W=function(a){Vp.b.W.call(this,a);var b="";if(a){b=ma(a)?a:a.Lb();if(this.q0&&!a.ce())b="Klicka f\u00f6r att namnge";b=db(b,55)}this.Ue=b;this.bA&&z(this.bA,this.Ue)};
Vp.prototype.Y=function(a){if(Ga(this.Ue))a=false;K(this.f(),"visibility",a?"visible":"hidden")};var Wp=function(a,b,c,d,e,f,g){A.call(this,xn);this.subject=a;this.clusterBox=b;this.recommendation=c;this.shape=d;this.confidenceScore=e;this.contactInformation=f;this.quickListApplyButton=!!g};
p(Wp,A);var Yp=function(a,b,c){J.call(this);this.sj=a;this.BW=c;this.ca=b;D(b,["hilite","select",Xp,"dismiss"],this);this.dh=null;this.La=[];this.af=-1;this.pg=0;this.Jb=null;this.ik=null};
p(Yp,J);Yp.prototype.aU=10;Yp.prototype.rz=true;Yp.prototype.gz=false;var Xp="canceldismiss";Yp.prototype.handleEvent=function(a){if(a.target==this.ca)switch(a.type){case "hilite":this.Fg(a.row);break;case "select":this.Wn();break;case Xp:this.Dt();break;case "dismiss":this.JA();break}};
Yp.prototype.TW=function(a){this.rz=a};
Yp.prototype.QW=function(a){this.gz=a};
Yp.prototype.ff=function(a,b){if(this.dh==a)return;this.dh=a;this.sj.hi(this.dh,this.aU,m(this.ZT,this),b);this.Dt()};
Yp.prototype.OC=function(){return this.Jb};
Yp.prototype.Sf=function(a){this.Jb=a};
Yp.prototype.isOpen=function(){return this.ca.Ca()};
Yp.prototype.FD=function(){if(this.af>=this.pg&&this.af<this.pg+this.La.length-1){this.Fg(this.af+1);return true}else if(this.af==-1){this.Fg(this.pg);return true}return false};
Yp.prototype.GD=function(){if(this.af>this.pg){this.Fg(this.af-1);return true}else this.gz&&this.af==this.pg&&this.Fg(-1);return false};
Yp.prototype.Fg=function(a){this.af=a;this.ca.Fg(a);return this.Cu(a)!=-1};
Yp.prototype.Wn=function(){var a=this.Cu(this.af);if(a!=-1){var b=this.La[a];this.BW.Or(b);this.ue();this.dispatchEvent({type:"update",row:b});return true}else{this.ue();this.dispatchEvent({type:"update",row:null});return false}};
Yp.prototype.ue=function(){this.af=-1;this.dh=null;this.pg+=this.La.length;this.La=[];window.clearTimeout(this.ik);this.ik=null;this.ca.ue()};
Yp.prototype.JA=function(){if(!this.ik)this.ik=window.setTimeout(m(this.ue,this),100)};
Yp.prototype.Dt=function(){window.setTimeout(m(function(){if(this.ik){window.clearTimeout(this.ik);this.ik=null}},
this),10)};
Yp.prototype.C=function(){Yp.b.C.call(this);this.ca.i();this.BW.i();this.sj=null};
Yp.prototype.ZT=function(a,b,c){if(this.dh!=a)return;var d=c?this.Cu(this.af):null;this.pg+=this.La.length;this.La=b;var e=[];for(var f=0;f<b.length;++f)e.push({id:this.hC(f),data:b[f]});this.ca.TV(e,this.dh,this.Jb);if(this.rz&&e.length!=0){var g=d!=null?this.hC(d):this.pg;this.Fg(g)}else this.af=-1};
Yp.prototype.Cu=function(a){var b=a-this.pg;if(b<0||b>=this.La.length)return-1;return b};
Yp.prototype.hC=function(a){return this.pg+a};var aq=function(a,b){if(Zp(a))a.selectionStart=b;else if(t){var c=$p(a),d=c[0],e=c[1];if(d.inRange(e)){if(a.type=="textarea"){var f=a.value.substring(0,b);b=Ha(f).length}d.collapse(true);d.move("character",b);d.select()}}};
var bq=function(a,b,c){var d=b.duplicate(),e=a.text,f=e,g=d.text,h=g,i=false;while(!i)if(a.compareEndPoints("StartToEnd",a)==0)i=true;else{a.moveEnd("character",-1);if(a.text==e)f+="\r\n";else i=true}if(c)return[f.length,-1];var j=false;while(!j)if(d.compareEndPoints("StartToEnd",d)==0)j=true;else{d.moveEnd("character",-1);if(d.text==g)h+="\r\n";else j=true}return[f.length,f.length+h.length]},
cq=function(a,b){var c=0,d=0;if(Zp(a)){c=a.selectionStart;d=b?-1:a.selectionEnd}else if(t){var e=$p(a),f=e[0],g=e[1];if(f.inRange(g)){f.setEndPoint("EndToStart",g);if(a.type=="textarea")return bq(f,g,b);c=f.text.length;d=b?-1:f.text.length+g.text.length}}return[c,d]},
dq=function(a,b){if(Zp(a))a.selectionEnd=b;else if(t){var c=$p(a),d=c[0],e=c[1];if(d.inRange(e)){var f=cq(a,true)[0];if(a.type=="textarea"){var g=a.value.substring(0,b);b=Ha(g).length;var h=a.value.substring(0,f);f=Ha(h).length}e.collapse(true);e.moveEnd("character",b-f);e.select()}}},
eq=function(a,b){var c=a.ownerDocument||a.document;if(Zp(a)){a.selectionStart=b;a.selectionEnd=b}else if(c.selection&&a.createTextRange){var d=a.createTextRange();d.collapse(true);d.move("character",b);d.select()}},
$p=function(a){var b=a.ownerDocument||a.document,c=b.selection.createRange(),d;if(a.type=="textarea"){d=b.body.createTextRange();d.moveToElementText(a)}else d=a.createTextRange();return[d,c]},
Zp=function(a){try{return typeof a.selectionStart=="number"}catch(b){return false}};var fq=function(a,b,c,d){ve.call(this);this.Yn=ja(a)?a:",;";this.vT=b||"";this.bl=c!=null?c:true;this.H1=this.bl;this.Ta=new bi(d||150);this.m0=this.Yn.substring(0,1);var e=this.bl?"[\\s"+this.Yn+"]+":"[\\s]+";this.YZ=new RegExp("^"+e+"|"+e+"$","g");this.S1=new RegExp("\\s*["+this.Yn+"]$");this.cd=new I(this);this.Io=new I(this);this.wb=new Qh;this.lT=-1};
p(fq,ve);fq.prototype.z_=true;fq.prototype.PN=true;fq.prototype.yy=false;fq.prototype.HW=true;fq.prototype.Bb=null;fq.prototype.Eq="";fq.prototype.Uf=false;fq.prototype.Vw=false;fq.prototype.f_=true;fq.prototype.lz=function(a){this.Ma=a};
fq.prototype.oz=function(a){Nh(a,"haspopup",true);this.cd.e(a,cf,this.yj);this.cd.e(a,"blur",this.zw);this.Bb||this.Io.e(a,bf,this.vF)};
fq.prototype.GA=function(a){a==this.Bb&&this.zw();this.cd.ka(a,cf,this.yj);this.cd.ka(a,"blur",this.zw);this.Bb||this.Io.ka(a,bf,this.vF)};
fq.prototype.pz=function(){for(var a=0;a<arguments.length;a++)this.oz(arguments[a])};
fq.prototype.vM=function(){for(var a=0;a<arguments.length;a++)this.GA(arguments[a])};
fq.prototype.Or=function(a,b){var c=this.Ma.OC();if(ba(b)?b:this.bl){var d=cq(c,true)[0],e=this.PC(c.value,d),f=this.Lx(c.value),g=a.toString();this.S1.test(g)||(g=Ka(g)+this.m0);if(this.z_){if(e!=0&&!Fa(f[e-1]))g=" "+g;if(e<f.length&&!Fa(f[e+1]))g=g+" "}if(g!=f[e]){f[e]=g;c.value=f.join("");var h=0;for(var i=0;i<=e;i++)h+=f[i].length;c.focus();aq(c,h);dq(c,h)}}else c.value=a.toString();this.Vw=true};
fq.prototype.C=function(){fq.b.C.call(this);this.cd.i();delete this.cd;this.Io.i();this.Io=null};
fq.prototype.xY=function(a){this.yy=a};
fq.prototype.Fc=function(a){switch(a.keyCode){case 40:if(this.Ma.isOpen()){this.Yq();a.preventDefault();return true}else if(!this.bl){this.Od(true);a.preventDefault();return true}break;case 38:if(this.Ma.isOpen()){this.$q();a.preventDefault();return true}break;case 9:this.Od();if(this.Ma.Wn()&&this.H1){a.preventDefault();return true}break;case 13:this.Od();if(this.Ma.Wn()){a.preventDefault();return true}break;case 27:if(this.Ma.isOpen()){this.Ma.ue();return true}break;case 229:if(!this.Uf){this.oZ();
return true}break;default:if(!this.f_){this.Ta.stop();this.Ta.start()}}if(this.HW&&this.bl&&a.charCode&&this.Yn.indexOf(String.fromCharCode(a.charCode))!=-1){this.Od();if(this.Ma.Wn()){a.preventDefault();return true}}return false};
fq.prototype.VJ=function(){this.wb.ag(this.Bb);this.cd.e(this.wb,"key",this.yF);t&&this.cd.e(this.Bb,Ae,this.uF)};
fq.prototype.NV=function(){this.cd.ka(this.wb,"key",this.yF);this.wb.detach();t&&this.cd.ka(this.Bb,Ae,this.uF);this.Uf&&this.Ox()};
fq.prototype.yj=function(a){this.Io.ya();this.Ma&&this.Ma.Dt();if(a.target!=this.Bb){this.Bb=a.target||null;this.Ta.start();this.cd.e(this.Ta,"tick",this.Hn);this.Eq=this.Bb.value;this.VJ()}};
fq.prototype.zw=function(){if(this.Bb){this.NV();this.Bb=null;this.Ta.stop();this.cd.ka(this.Ta,"tick",this.Hn);this.Ma&&this.Ma.JA()}};
fq.prototype.Hn=function(){this.Uf||this.Od()};
fq.prototype.vF=function(a){this.yj(a)};
fq.prototype.yF=function(a){this.lT=a.keyCode;this.Ma&&!this.Uf&&this.Fc(a)};
fq.prototype.wF=function(){this.Uf&&this.lT!=229&&this.Ox()};
fq.prototype.xF=function(a){if(this.Uf&&(a.keyCode==13||a.keyCode==77&&a.ctrlKey))this.Ox()};
fq.prototype.oZ=function(){if(this.Uf)return;this.cd.e(this.Bb,"keyup",this.xF);this.cd.e(this.Bb,Ae,this.wF);this.Uf=true};
fq.prototype.Ox=function(){if(!this.Uf)return;this.Uf=false;this.cd.ka(this.Bb,Ae,this.wF);this.cd.ka(this.Bb,"keyup",this.xF)};
fq.prototype.uF=function(a){if(this.bl&&this.Yn.indexOf(String.fromCharCode(a.charCode))!=-1){this.Od();this.Ma.Wn()&&a.preventDefault()}};
fq.prototype.Od=function(a){if(a||this.Bb&&this.Bb.value!=this.Eq){if(!this.Vw){var b=this.MF();if(this.Ma){this.Ma.Sf(this.Bb);this.Ma.ff(b,this.Bb.value)}}this.Eq=this.Bb.value}this.Vw=false};
fq.prototype.$q=function(){return this.yy?this.Ma.FD():this.Ma.GD()};
fq.prototype.Yq=function(){return this.yy?this.Ma.GD():this.Ma.FD()};
fq.prototype.MF=function(){var a=cq(this.Bb,true)[0],b=this.Bb.value;return this.XZ(this.Lx(b)[this.PC(b,a)])};
fq.prototype.XZ=function(a){return this.YZ?String(a).replace(this.YZ,""):a};
fq.prototype.PC=function(a,b){var c=this.Lx(a);if(b==a.length)return c.length-1;var d=0;for(var e=0,f=0;e<c.length&&f<b;e++){f+=c[e].length;d=e}return d};
fq.prototype.Lx=function(a){if(!this.bl)return[a];var b=String(a).split(""),c=[],d=[];for(var e=0,f=false;e<b.length;e++)if(this.vT&&this.vT.indexOf(b[e])!=-1){if(this.PN&&!f){c.push(d.join(""));d.length=0}d.push(b[e]);f=!f}else if(!f&&this.Yn.indexOf(b[e])!=-1){d.push(b[e]);c.push(d.join(""));d.length=0}else d.push(b[e]);c.push(d.join(""));return c};var gq=function(a,b,c,d){this.wa=a||Cc().body;this.O=Bc(this.wa);this.WV=!a;this.g=null;this.dh="";this.La=[];this.nq=-1;this.lZ=-1;this.xa=false;this.className="ac-renderer";this.rowClassName="ac-row";this.activeClassName="active";this.wh=b;this.k2=d!=null?d:true;this.M1=c!=null?c:false;this.mE=null;this.to=false},
hq;p(gq,J);var iq=0;gq.prototype.Sl=null;gq.prototype.sY=function(a){this.to=a};
gq.prototype.TV=function(a,b,c){this.dh=b;this.La=a;this.nq=0;this.lZ=n();this.Jb=c;this.Jr=[];this.redraw()};
gq.prototype.ue=function(){if(this.xa){this.xa=false;H(this.g,false)}};
gq.prototype.show=function(){if(!this.xa){this.xa=true;H(this.g,true)}};
gq.prototype.Ca=function(){return this.xa};
gq.prototype.HD=function(a){this.kS();this.nq=a;if(a>=0&&a<this.g.childNodes.length){var b=this.Jr[a];uc(b,this.activeClassName);Nh(this.g,"activedescendant",b.id);z(this.Sl,cd(b))}};
gq.prototype.kS=function(){this.nq>=0&&vc(this.Jr[this.nq],this.activeClassName)};
gq.prototype.Fg=function(a){if(a==-1)this.HD(-1);else for(var b=0;b<this.La.length;b++)if(this.La[b].id==a){this.HD(b);return}};
gq.prototype.RX=function(a){uc(a,this.className)};
gq.prototype.cU=function(){if(!this.g){this.Sl=this.O.o("div",{style:"display:none"});Mh(this.Sl,"region");Nh(this.Sl,"live","rude");this.O.appendChild(this.wa,this.Sl);var a=this.O.o("div",{style:"display:none"});this.g=a;this.RX(a);Mh(a,"menu");var b=a.id="goog-acr-"+iq++;Nh(this.Jb,"controls",b);this.O.appendChild(this.wa,a);D(a,B,this.Sh,false,this);D(a,F,this.Mm,false,this);D(this.O.Mb(),B,this.gD,false,this);D(a,ye,this.Be,false,this)}};
gq.prototype.redraw=function(){this.cU();if(this.to)this.g.style.visibility="hidden";this.Jr.length=0;this.O.Qg(this.g);if(this.wh&&this.wh.U)this.wh.U(this,this.g,this.La,this.dh);else{var a=null;wd(this.La,function(f){f=this.Cr(f,this.dh);this.to?this.g.insertBefore(f,a):this.O.appendChild(this.g,f);a=f},
this)}if(this.La.length==0){this.ue();return}else this.show();this.rV(this.g);if(this.Jb&&this.WV){var b=Mg(this.Jb),c=Og(this.Jb),d=Og(nh(this.Jb)),e=Og(this.g);b.y=this.to?b.y-e.height:b.y+c.height;if((this.M1||b.x+e.width>d.width)&&this.mE!="LEFT"){b.x=b.x+c.width-e.width;this.mE="RIGHT"}else this.mE="LEFT";qh(this.g,b);if(this.to)this.g.style.visibility="visible"}yh(this.g,true)};
gq.prototype.UW=function(a){this.WV=a};
gq.prototype.C=function(){gq.b.C.call(this);if(this.g){Ue(this.g,B,this.Sh,false,this);Ue(this.g,F,this.Mm,false,this);Ue(this.O.Mb(),B,this.gD,false,this);Ue(this.g,ye,this.Be,false,this);this.O.removeNode(this.g);this.g=null;this.xa=false}delete this.wa};
gq.prototype.rV=function(a){if(xb&&sb){a.style.width="";a.style.overflow="visible";a.style.width=a.offsetWidth;a.style.overflow="auto"}};
gq.prototype.SV=function(a,b,c){c.innerHTML=s(a.data.toString())};
gq.prototype.Ff=function(a,b){if(a.nodeType==3){var c,d=null;if(ka(b)){c=b.length>0?b[0]:"";if(b.length>1)d=Ub(b,1)}else c=b;if(c.length==0)return;var e=a.nodeValue;c=fb(c);var f=new RegExp("(.*?)(^|\\W+)("+c+")","gi"),g=[],h=0,i=f.exec(e);while(i){g.push(i[1]);g.push(i[2]);g.push(i[3]);h=f.lastIndex;i=f.exec(e)}g.push(e.substring(h));if(g.length>1){a.nodeValue=g[0]+g[1];var j=this.O.createElement("b");this.O.appendChild(j,this.O.createTextNode(g[2]));j=a.parentNode.insertBefore(j,a.nextSibling);
for(var k=g.length-1;k>=3;k--)a.parentNode.insertBefore(this.O.createTextNode(g[k]),j.nextSibling)}else d&&this.Ff(a,d)}else{var o=a.firstChild;while(o){var r=o.nextSibling;this.Ff(o,b);o=r}}};
gq.prototype.Cr=function(a,b){var c=this.O.o("div",{className:this.rowClassName});this.wh&&this.wh.Br?this.wh.Br(a,b,c):this.SV(a,b,c);b&&this.k2&&this.Ff(c,b);c.id="goog-acri-"+iq++;uc(c,this.rowClassName);Mh(c,"menuitem");this.Jr.push(c);return c};
gq.prototype.IC=function(a){while(a&&a!=this.g&&!Lb(tc(a),this.rowClassName))a=a.parentNode;return a?Bb(this.Jr,a):-1};
gq.prototype.Sh=function(a){var b=this.IC(a.target);b>=0&&this.dispatchEvent({type:"select",row:this.La[b].id});a.stopPropagation()};
gq.prototype.Mm=function(a){this.dispatchEvent(Xp);a.stopPropagation();a.preventDefault()};
gq.prototype.gD=function(){this.dispatchEvent("dismiss")};
gq.prototype.Be=function(a){var b=this.IC(a.target);if(b>=0){if(n()-this.lZ<300)return;this.dispatchEvent({type:"hilite",row:this.La[b].id})}};
var jq=function(){};
jq.prototype.U=function(){};var kq=function(a,b){L.call(this,b);this.Ee=a||""};
p(kq,L);kq.prototype.vf=null;kq.prototype.o=function(){this.xc(this.O.o("input",{type:"text"}))};
kq.prototype.ra=function(a){kq.b.ra.call(this,a);if(!this.Ee)this.Ee=a.getAttribute("label")||""};
kq.prototype.A=function(){kq.b.A.call(this);this.vK();this.Yo();this.f().Vc=this};
kq.prototype.D=function(){kq.b.D.call(this);this.FA();this.f().Vc=null};
kq.prototype.vK=function(){var a=new I(this);a.e(this.f(),cf,this.Km);a.e(this.f(),"blur",this.nQ);xb&&a.e(this.f(),[Ae,bf,"keyup"],this.LQ);var b=window;a.e(b,"load",this.NR);this.p=a;this.nz()};
kq.prototype.nz=function(){if(!this.C0&&this.p&&this.f().form){this.p.e(this.f().form,"submit",this.OQ);this.C0=true}};
kq.prototype.FA=function(){if(this.p){this.p.i();this.p=null}};
kq.prototype.C=function(){kq.b.C.call(this);this.FA()};
kq.prototype.Ts="label-input-label";kq.prototype.Km=function(){vc(this.f(),this.Ts);if(!this.hj()&&!this.SD)this.f().value=""};
kq.prototype.nQ=function(){this.vf=null;this.Yo()};
kq.prototype.LQ=function(a){if(a.keyCode==27){if(a.type==bf)this.vf=this.f().value;else if(a.type==Ae)this.f().value=this.vf;else if(a.type=="keyup")this.vf=null;a.preventDefault()}};
kq.prototype.OQ=function(){if(!this.hj()){this.f().value="";di(this.lQ,10,this)}};
kq.prototype.lQ=function(){if(!this.hj())this.f().value=this.Ee};
kq.prototype.NR=function(){this.Yo()};
kq.prototype.hj=function(){return this.f().value!=""&&this.f().value!=this.Ee};
kq.prototype.clear=function(){this.f().value="";if(this.vf!=null)this.vf=""};
kq.prototype.hb=function(a){if(this.vf!=null)this.vf=a;this.f().value=a;this.Yo()};
kq.prototype.sa=function(){if(this.vf!=null)return this.vf;return this.hj()?this.f().value:""};
kq.prototype.Yo=function(){this.nz();if(this.hj())vc(this.f(),this.Ts);else{this.SD||uc(this.f(),this.Ts);di(this.jW,10,this)}};
kq.prototype.rN=function(){var a=this.hj();this.SD=true;this.f().focus();if(!a)this.f().value=this.Ee;this.f().select();di(this.sN,10,this)};
kq.prototype.sN=function(){this.SD=false};
kq.prototype.jW=function(){if(this.f()&&!this.hj())this.f().value=this.Ee};var lq=function(){};
lq.prototype.get=function(){};
lq.prototype.X=function(){};
lq.prototype.Rc=function(){};
lq.prototype.Na=function(){};
lq.prototype.tc=function(){};
lq.prototype.oi=function(){};
lq.prototype.Zb=function(){};
lq.prototype.kx=function(){};
lq.prototype.ed=function(){};
lq.prototype.load=function(){};
lq.prototype.Jg=ea;var mq=function(){};
mq.prototype.X=function(){};
mq.prototype.Rc=function(){return new nq};
mq.prototype.Na=function(){return null};
mq.prototype.tc=function(){return null};
mq.prototype.ed=function(){var a="",b=this.Zb();if(this.Nu&&this.Nu())a=this.Nu().ed()+(b.indexOf("[")!=-1?"":"/");return a+b};
mq.prototype.load=function(){};
mq.prototype.Nu=null;var oq=function(){};
oq.prototype.add=function(){};
oq.prototype.get=function(){};
oq.prototype.xe=function(){};
oq.prototype.S=function(){};
oq.prototype.removeNode=function(){};
var pq=function(a){this.H={};this.Rk=[];this.Hf={};if(a)for(var b=0,c;c=a[b];b++)this.add(c)};
pq.prototype.add=function(a){this.Rk.push(a);var b=a.Zb();if(b){this.H[b]=a;this.Hf[b]=this.Rk.length-1}};
pq.prototype.get=function(a){return this.H[a]||null};
pq.prototype.xe=function(a){return this.Rk[a]||null};
pq.prototype.S=function(){return this.Rk.length};
pq.prototype.removeNode=function(a){var b=this.Hf[a];if(b!=null){this.Rk.splice(b,1);delete this.H[a];delete this.Hf[a];for(var c in this.Hf)this.Hf[c]>b&&this.Hf[c]--}return b!=null};
pq.prototype.indexOf=function(a){return this.Hf[a]};
var nq=function(){pq.call(this)};
p(nq,pq);nq.prototype.add=function(){throw Error("Can't add to EmptyNodeList");};
var qq=function(a,b){this.pL=a;pq.call(this,b)};
p(qq,pq);qq.prototype.add=function(a){if(!this.pL){this.I(a);return}var b=Wb(this.Rk,a,this.pL);if(b<0)b=-(b+1);for(var c in this.Hf)this.Hf[c]>=b&&this.Hf[c]++;Pb(this.Rk,a,b);var d=a.Zb();if(d){this.H[d]=a;this.Hf[d]=b}};
qq.prototype.I=function(a){qq.b.add.call(this,a)};
var rq=qe("goog.ds");var sq=function(a){a&&this.sH(a)};
sq.prototype.sH=function(a,b,c,d){this.a2=a;if(!c&&!d){if(Da(a,"?")){this.UK=true;a=a.substring(0,a.length-1)}if(Da(a,"()"))if(Da(a,"name()")||Da(a,"count()")||Da(a,"position()")){var e=a.lastIndexOf("/");if(e!=-1){this.hu=a.substring(e+1);a=a.substring(0,e)}else{this.hu=a;a="."}if(this.hu=="count()")this.R0=true}}this.je=b||a.split("/");this.qb=this.je.length;this.kn=this.je[this.qb-1];this.ji=this.je[0];if(this.qb==1){this.HG=this;this.vq=Ca(a,"$")}else{this.HG=tq(this.ji,null,this,null);this.vq=
this.HG.vq;this.ji=this.HG.ji}if(this.qb==1&&!this.vq){this.RS=a=="."||a=="";this.bT=Ca(a,"@");this.OS=a=="*|text()";this.NS=a=="@*";this.PS=a=="*"}};
sq.prototype.Tc=function(){return this.a2};
sq.prototype.Ka=function(){if(!this.z1){if(this.qb>1)this.IF=tq(null,this.je.slice(0,this.je.length-1),this,null);this.z1=true}return this.IF};
sq.prototype.uC=function(){if(!this.q1){if(this.qb>1)this.kF=tq(null,this.je.slice(1),null,this);this.q1=true}return this.kF};
sq.prototype.sa=function(a){if(a==null)a=uq();else if(this.vq)a=a.getDataRoot?a.getDataRoot():uq();if(this.R0){var b=this.pP(a);return b.S()}if(this.qb==1)return a.tc(this.ji);else if(this.qb==0)return a.get();var c=a.Na(this.ji);return c==null?null:this.uC().sa(c)};
sq.prototype.pP=function(a,b){return this.Lu(a,false,b)};
sq.prototype.oP=function(a,b){return this.Lu(a,true,b)};
sq.prototype.Lu=function(a,b,c){if(a==null)a=uq();else if(this.vq)a=a.getDataRoot?a.getDataRoot():uq();if(this.qb==0&&b)return a;else if(this.qb==0&&!b)return new pq([a]);else if(this.qb==1)if(b)return a.Na(this.ji,c);else{var d=a.Na(this.ji);return d&&d.Jg()?d.Rc():a.Rc(this.ji)}else{var e=a.Na(this.ji,c);if(e==null&&b)return null;else if(e==null&&!b)return new nq;return this.uC().Lu(e,b,c)}};
sq.prototype.UK=false;sq.prototype.je=[];sq.prototype.qb=null;sq.prototype.kn=null;sq.prototype.RS=false;sq.prototype.bT=false;sq.prototype.OS=false;sq.prototype.NS=false;sq.prototype.PS=false;sq.prototype.hu=null;sq.prototype.IF=null;sq.prototype.kF=null;var wq=function(a){var b=vq[a];if(b==null){b=new sq(a);vq[a]=b}return b},
tq=function(a,b,c,d){var e=a||b.join("/"),f=vq[e];if(f==null){f=new sq;f.sH(e,b,c,d);vq[e]=f}return f},
vq={};wq(".");wq("*|text()");wq("*");wq("@*");wq("name()");wq("count()");wq("position()");var xq=function(){this.am=new pq;this.CK=new Jd;this.zE={};this.cw={};this.nK={};this.u0=0;this.N2={}},
yq=null;p(xq,lq);var uq=function(){yq||(yq=new xq);return yq};
xq.prototype.dt=function(a,b,c){var d=!!b,e=c||a.Zb();Ca(e,"$")||(e="$"+e);a.kx(e);this.am.add(a);this.CK.X(e,d)};
xq.prototype.Wi=function(a){return this.nK[a]?this.nK[a].oP():this.am.get(a)};
xq.prototype.get=function(){return this.am};
xq.prototype.X=function(){throw Error("Can't set on DataManager");};
xq.prototype.Rc=function(a){return a?new pq([this.Na(a)]):this.am};
xq.prototype.Na=function(a){return this.Wi(a)};
xq.prototype.tc=function(a){var b=this.Wi(a);return b?b.get():null};
xq.prototype.Zb=function(){return""};
xq.prototype.ed=function(){return""};
xq.prototype.load=function(){var a=this.am.S();for(var b=0;b<a;b++){var c=this.am.xe(b),d=this.CK.get(c.Zb());d&&c.load()}};
xq.prototype.Jg=function(){return false};
xq.prototype.addListener=function(a,b,c){var d=0;if(Da(b,"/...")){d=1000;b=b.substring(0,b.length-4)}else if(Da(b,"/*")){d=1;b=b.substring(0,b.length-2)}c=c||"";var e=b+":"+c+":"+sa(a),f={dataPath:b,id:c,fn:a},g=wq(b),h=sa(a);this.cw[h]||(this.cw[h]={});this.cw[h][e]={listener:f,items:[]};while(g){var i={listener:f,maxAncestors:d},j=this.zE[g.Tc()];if(j==null){j={};this.zE[g.Tc()]=j}j[e]=i;d=0;g=g.Ka();this.cw[h][e].items.push({key:e,obj:j})}};
xq.prototype.Fh=function(a){if(this.C2)return;var b=wq(a),c=0;while(b){var d=this.zE[b.Tc()];if(d)for(var e in d){var f=d[e],g=f.listener;c<=f.maxAncestors&&g.fn(a,g.id)}c++;b=b.Ka()}this.u0++};var zq=function(a,b){if(!a)throw Error("Cannot create a fast data node without a data name");this.__dataName=a;this.__parent=b};
zq.prototype.Zb=function(){return this.__dataName};
zq.prototype.kx=function(a){this.__dataName=a};
zq.prototype.ed=function(){var a;a=this.__parent?this.__parent.ed()+"/":"";return a+this.Zb()};
var Aq=function(a,b,c){zq.call(this,b,c);this.hB(a)};
p(Aq,zq);Aq.prototype.hB=function(a){for(var b in a)this[b]=a[b]};
var Dq=function(a,b,c){return ka(a)?new Bq(a,b,c):pa(a)?new Aq(a,b,c):new Cq(a,b,c)},
Eq=new nq;Aq.prototype.X=function(){throw"Not implemented yet";};
Aq.prototype.Rc=function(a){if(!a||a=="*")return this;else if(a.indexOf("*")==-1){var b=this.Na(a);return b?new Bq([b],null):new nq}else throw Error("Unsupported selector: "+a);};
Aq.prototype.SI=function(a){var b=this[a];if(b!=null&&!b.Zb)this[a]=Dq(this[a],a,this)};
Aq.prototype.Na=function(a,b){this.SI(a);var c=this[a]||null;if(c==null&&b){c=new Aq({},a,this);this[a]=c}return c};
Aq.prototype.oi=function(a,b){if(b!=null)this[a]=b;else delete this[a];uq().Fh(this.ed()+"/"+a)};
Aq.prototype.tc=function(a){var b=this[a];return b!=null?b.Zb?b.get():b:null};
Aq.prototype.Jg=function(){return false};
Aq.prototype.Zi=function(){var a={};for(var b in this)if(!Ca(b,"__")&&!oa(this[b]))a[b]=this[b].__dataName?this[b].Zi():this[b];return a};
Aq.prototype.qa=function(){return Dq(this.Zi(),this.Zb())};
Aq.prototype.add=function(a){this.oi(a.Zb(),a)};
Aq.prototype.get=function(a){return ba(a)?this.Na(a):this};
Aq.prototype.xe=function(a){var b=0;for(var c in this)if(!Ca(c,"__")&&!oa(this[c])){if(b==a){this.SI(c);return this[c]}++b}return null};
Aq.prototype.S=function(){var a=0;for(var b in this)!Ca(b,"__")&&!oa(this[b])&&++a;return a};
Aq.prototype.removeNode=function(a){delete this[a]};
var Cq=function(a,b,c){this.ec=a;zq.call(this,b,c)};
p(Cq,zq);Cq.prototype.get=function(){return this.ec};
Cq.prototype.X=function(a){if(ka(a)||pa(a))throw"can only set PrimitiveFastDataNode to primitive values";this.ec=a;uq().Fh(this.ed())};
Cq.prototype.Rc=function(){return Eq};
Cq.prototype.Na=function(){return null};
Cq.prototype.tc=function(){return null};
Cq.prototype.oi=function(){throw Error("Cannot set a child node for a PrimitiveFastDataNode");};
Cq.prototype.Jg=function(){return false};
Cq.prototype.Zi=function(){return this.ec};
var Bq=function(a,b,c){this.Mc=[];for(var d=0;d<a.length;++d){var e=a[d].id||"["+d+"]";this.Mc.push(Dq(a[d],e,this));if(a[d].id){if(!this.H)this.H={};this.H[a[d].id]=d}}zq.call(this,b,c)};
p(Bq,zq);Bq.prototype.X=function(){throw Error("Cannot set a FastListNode to a new value");};
Bq.prototype.Rc=function(){return this};
Bq.prototype.Na=function(a,b){var c=this.Lp(a);if(c==null&&this.H)c=this.H[a];if(c!=null&&this.Mc[c])return this.Mc[c];else if(b){this.oi(a,{});return this.Na(a)}else return null};
Bq.prototype.tc=function(a){var b=this.Na(a);return b?b.get():null};
Bq.prototype.Lp=function(a){return a.charAt(0)=="["&&a.charAt(a.length-1)=="]"?Number(a.substring(1,a.length-1)):null};
Bq.prototype.oi=function(a,b){var c=this.Mc.length;if(b!=null){b.Zb||(b=Dq(b,a,this));var d=this.Lp(a);if(d!=null){if(d<0||d>=this.Mc.length)throw Error("List index out of bounds: "+d);this.Mc[a]=b}else{if(!this.H)this.H={};this.Mc.push(b);this.H[a]=this.Mc.length-1}}else this.removeNode(a);var e=uq();e.Fh(this.ed()+"/"+a);this.Mc.length!=c&&this.$v()};
Bq.prototype.$v=function(){var a=uq();a.Fh(this.ed());a.Fh(this.ed()+"/count()")};
Bq.prototype.Jg=function(){return true};
Bq.prototype.Zi=function(){var a=[];for(var b=0;b<this.Mc.length;++b)a.push(this.Mc[b].Zi());return a};
Bq.prototype.add=function(a){a.Zb||(a=Dq(a,String(this.Mc.length),this));this.Mc.push(a);var b=uq();b.Fh(this.ed()+"/["+(this.Mc.length-1)+"]");this.$v()};
Bq.prototype.get=function(a){return ba(a)?this.Na(a):this.Mc};
Bq.prototype.xe=function(a){var b=this.Mc[a];return b!=null?b:null};
Bq.prototype.S=function(){return this.Mc.length};
Bq.prototype.removeNode=function(a){var b=this.Lp(a);if(b==null&&this.H)b=this.H[a];if(b!=null){this.Mc.splice(b,1);if(this.H){var c=null;for(var d in this.H)if(this.H[d]==b)c=d;else this.H[d]>b&&--this.H[d];c&&delete this.H[c]}var e=uq();e.Fh(this.ed()+"/["+b+"]");this.$v()}};
Bq.prototype.indexOf=function(a){var b=this.Lp(a);if(b==null&&this.H)b=this.H[a];if(b==null)throw Error("Cannot determine index for: "+a);return b};var Fq=function(a,b,c,d,e){Aq.call(this,{},b,null);if(a){this.oa=new N(a);this.Ga=new R;this.i2=!!e;D(this.Ga,Pj,this.cp,false,this)}else this.oa=null;this.XH=c;this.YM=d};
p(Fq,Aq);Fq.prototype.yl=function(a){this.Ld=a};
Fq.prototype.load=function(){rq.Wh("Sending JS request for DataSource "+this.Zb()+" to "+this.oa);if(this.oa)if(this.i2){var a;a=this.Ld?this.Ld:this.oa.Ck();var b=this.oa.qa();b.yl(null);this.Ga.send(String(b),"POST",a)}else this.Ga.send(String(this.oa));else this.IE="NOT_LOADED"};
Fq.prototype.AZ=function(){uq().Fh(this.Zb())};
Fq.prototype.cp=function(){if(this.Ga.Lf()){rq.Wh("Got data for DataSource "+this.Zb());var a=this.Ga.kc();if(this.XH){var b=a.indexOf(this.XH);a=a.substring(b+this.XH.length)}if(this.YM){var c=a.lastIndexOf(this.YM);a=a.substring(0,c)}try{var d=eval("["+a+"][0]");this.hB(d);this.IE="LOADED"}catch(e){this.IE="FAILED";rq.HY("Failed to parse data: "+e.message)}l.setTimeout(m(this.AZ,this),0)}else{rq.Wh("Data retrieve failed for DataSource "+this.Zb());this.IE="FAILED"}};var Gq=function(a,b,c,d){this.wW=function(){};
this.NZ=function(){};
fq.call(this,a,b,c);this.oT=null;this.Es=!!d};
p(Gq,fq);Gq.prototype.Or=function(a){if(a instanceof Hq)return;if(this.Es&&a instanceof Iq&&a.$a().name){var b=a.$a().id;if(b=="^Mine")b="s0";a=['"',a.$a().name,'" <.',b,".>"].join("")}else if(a.Vi)a=a.Vi().join(", ");this.wW();Gq.b.Or.call(this,a)};
Gq.prototype.Fc=function(a){this.NZ();fq.prototype.Fc.call(this,a)};
Gq.prototype.Od=function(a){this.oT=this.MF();fq.prototype.Od.call(this,a)};
Gq.prototype.oX=function(a,b){this.wW=a;this.NZ=b};
Gq.prototype.VO=function(){return this.Eq};
Gq.prototype.nC=function(){return this.oT};var Kq=function(a,b){this.A0=a;this.OU=b;this.Fi=[];this.Em=new Jq([])};
Kq.prototype.YX=function(a){this.OU=a};
Kq.prototype.iX=function(a,b){this.Fi=a;this.Em=new Jq(b)};
var Lq=function(a,b,c,d){var e=a.members,f=[],g=[],h=[];for(var i=0;i<e.length;++i){var j=e[i].email;c.hasContext&&c.addressHash[j]?g.push(e[i]):f.push(e[i]);d[j]&&h.push(e[i])}return new Iq(a,b,e,f,g,h)};
Kq.prototype.hi=function(a,b,c){var d=[];if(a=="")return[];if(c){var e="";for(var f=0;f<c.length;++f){var g=c.charAt(f);if(g==";"||g==","){e=Ja(e);e.length>0&&d.push(e);e=""}else e+=g}e=Ja(e);e.length>0&&d.push(e)}return this.mN(a,d,b)};
Kq.prototype.wM=function(a){var b={};for(var c=0;c<a.length;++c){var d=a[c],e=Mq(d);if(e.email)b[e.email]=true}var f={},g=[],h={},i=false,j=0,k={},o=true;for(var c=0;c<this.Fi.length;++c){var r=this.Fi[c],u=r.email;if(b[u]){h[u]=true;i=true;j++;var C=r.groups;if(o){for(var E=0;E<C.length;++E){var O=C[E];f[O.id]=1;g.push(O.id)}o=false}else for(var E=0;E<C.length;++E){var O=C[E];f[O.id]&&f[O.id]++}}}for(var c=0;c<g.length;++c){var Ua=g[c];if(f[Ua]==j)k[Ua]=true}return{hasContext:i,groupIdHash:k,addressHash:h}};
Kq.prototype.vV=function(a,b){var c={},d=[];for(var e=0;e<a.length;++e){var f=a[e].groups;if(f)for(var g=0;g<f.length;++g){var h=f[g].id;if(!f[g].implicit)continue;if(b.hasContext&&!b.groupIdHash[h])continue;if(h.charAt(0)!="^")if(!c[h]){var i=this.Em.get(h);if(i){c[h]=true;d.push(i)}}}}d.sort(function(j,k){return j.affinity>k.affinity?-1:k.affinity>j.affinity?1:0});
return d};
var Nq=function(){};
Nq.prototype.Wz=function(){var a=arguments,b=function(c,d){var e,f;for(e=0;e<a.length;e++){f=a[e](c,d);if(f!=0)return f}return 0};
return b};
Nq.prototype.Az=function(a,b){return a.qm()>b.qm()?-1:b.qm()>a.qm()?1:0};
Nq.prototype.Bz=function(a,b){var c=a.$a().name||"",d=b.$a().name||"";if(c>d)return 1;else if(d>c)return-1;return 0};
Nq.prototype.OK=function(a,b){var c=function(e){if(e.za()!=0)return false;return!e.Du()},
d=function(e){return e.za()==1};
if(c(a)&&!c(b))return-1;if(!c(a)&&c(b))return 1;if(d(a)&&!d(b))return-1;if(!d(a)&&d(b))return 1;return 0};
Kq.prototype.OL=function(a){var b={};for(var c=0;c<a.length;++c)if(a[c].email)b[a[c].email]=true;return b};
Kq.prototype.mN=function(a,b,c){var d=this.kN(a),e=[],f=[];if(this.A0){f=this.lN(a,c);var g={hasContext:false};if(b.length>0)g=this.wM(b);var h=this.vV(d,g,c),i=this.OL(d);for(var j=0;j<c&&j<h.length;++j){var k=h[j];e.push(Lq(k,k.affinity,g,i))}}for(var j=0;j<c&&j<f.length;++j){var k=f[j];e.push(Lq(k,20000000,g,i))}for(var j=0;j<c&&j<d.length;++j){var o=d[j],r=o.affinity;if(j==0)r=10000000;e.push(new Oq(o,r))}var u=new Nq,C=u.Wz(u.Az,u.Bz);e.sort(C);e.length>c&&e.splice(c,e.length-c);if(this.OU){var E=
u.Wz(u.OK,u.Az,u.Bz);e.sort(E)}return this.kW(e)};
Kq.prototype.kW=function(a){var b=0,c=0;for(var d=0;d<a.length;d++){var e=a[d];if(e.za()==0)b++;else e.za()==1&&c++}var f=b*2,g=f>5?f:5;if(c>g){var h=b+g;a.splice(h,a.length-h)}return a};
Kq.prototype.lN=function(a,b){var c=fb(a),d=new RegExp('(^|<| |"|\\()'+c,"i"),e=[],f=this.Em.rP();for(var g=0;g<f.length&&e.length<b;++g){var h=f[g];h.members.length>0&&h.name&&h.name.match(d)&&e.push(h)}return e};
Kq.prototype.kN=function(a){var b=fb(a),c=new RegExp('(^|<| |"|\\()'+b,"i"),d=[],e=this.Fi;for(var f=0;f<e.length;++f){var g=e[f],h=g.toString();if(c.test(h))d.push(g);else if(g.aliases){var i=g.aliases;for(var j=0;j<i.length;++j)if(c.test(i[j])){d.push(g);break}}}return d};
var Pq=function(){};
Pq.prototype.bj=function(){return 0};
Pq.prototype.Vi=function(){return[]};
Pq.prototype.tk=function(){return[]};
Pq.prototype.za=function(){return this.ba};
Pq.prototype.qm=function(){return this.iK};
Pq.prototype.$a=function(){return this.Uc};
var Oq=function(a,b){this.ba=0;this.Uc=a;this.iK=b};
p(Oq,Pq);Oq.prototype.bj=function(){return 1};
Oq.prototype.Vi=function(){return[this.Uc.toString()]};
Oq.prototype.tk=function(){return this.Uc.name?[this.Uc.name]:[]};
Oq.prototype.Du=function(){return!!this.Uc.isDomainContact};
var Iq=function(a,b,c,d,e,f){this.ba=1;this.Uc=a;this.iK=b;this.Zp=c;this.p1=d;this.z2=e;this.h1=f;this.Q={};for(var g=0;g<e.length;++g)this.Q[e[g].email]=true};
p(Iq,Pq);Iq.prototype.bj=function(){return this.Zp.length};
Iq.prototype.Vi=function(){return this.p1};
Iq.prototype.tk=function(){var a=[];for(var b=0;b<this.Zp.length;++b)this.Zp[b].name&&a.push(this.Zp[b].name);return a};
Iq.prototype.getContext=function(){return this.Q};
Iq.prototype.fP=function(){return this.Zp};
Iq.prototype.Ku=function(){return this.h1};
var Hq=function(a){this.ba=a};
Hq.prototype.toString=function(){return""};
Hq.prototype.za=function(){return this.ba};
var Jq=function(a){this.EF=[];this.aS=new Jd;for(var b=0;b<a.length;++b){var c=a[b];this.EF.push(c);this.aS.X(c.id,c)}this.EF.sort(function(d,e){if(d.affinity>e.affinity)return-1;else if(e.affinity>d.affinity)return 1;else{var f=d.affinity||"",g=e.affinity||"";if(f>g)return 1;else if(g>f)return-1;return 0}})};
Jq.prototype.get=function(a){return this.aS.get(a,null)};
Jq.prototype.rP=function(){return this.EF};var Qq=function(a,b){var c=window._Messages||[],d=a;for(var e=0;e<c.length;e++)if(c[e][a]){d=c[e][a];break}var f=b||{},g=function(h,i){return i in f?f[i]:h};
d=d.replace(new RegExp("\\{\\$(\\w+)\\}","g"),g);return d},
Rq=function(a,b){document.write(Qq(a,b))};
wa("_cp_getMsg",Qq);wa("_cp_writeMsg",Rq);var Sq=function(a){this.cl={};this.OJ(a)};
Sq.prototype.OJ=function(a){for(var b=0;b<a.length;b++)this.NJ(a[b])};
Sq.prototype.NJ=function(a){var b=this.gC(a);this.TD(b[0]);b[1]&&this.TD(this.fC(b[0],b[1]))};
Sq.prototype.TD=function(a){this.cl[a]=this.cl[a]?this.cl[a]+1:1};
Sq.prototype.gC=function(a){return Ja(a).split(/[\s,]+/)};
Sq.prototype.Sp=function(a){var b=this.gC(a),c=b[0];if(!this.cl[c]||this.cl[c]<=1)return c;if(b[1]){c=this.fC(b[0],b[1]);if(!this.cl[c]||this.cl[c]<=1)return c}return a};
Sq.prototype.fC=function(a,b){return a+" "+b.charAt(0).toLocaleUpperCase()+"."};
Sq.prototype.zN=function(a,b,c,d,e){var f=fb(d),g=new RegExp('(^|<| |"|\\()'+f,"i");if(a&&g.test(a))return a;if(c&&a)for(var h=0;h<c.length;++h)if(g.test(c[h]))return a;if(g.test(b))return this.VA(b,e);if(a)return this.Sp(a);return this.VA(b,e)};
Sq.prototype.VA=function(a,b){if(b)return a.split("@")[0];return a};var Tq=function(){gq.apply(this,arguments);this.UY=function(){}};
p(Tq,gq);Tq.prototype.xl=function(a){this.wa=a};
Tq.prototype.gY=function(a){this.UY=a};
Tq.prototype.jE=function(a){if(a.bj)if(a.bj()>0)return true;return false};
Tq.prototype.WP=function(){var a=[];for(var b=0;b<this.La.length;b++){var c=this.La[b].data;this.jE(c)&&a.push(c)}return a};
Tq.prototype.SO=function(){var a=this.nq,b=0;for(var c=0;c<a;c++){var d=this.La[c].data;this.jE(d)||b++}return a-b};
Tq.prototype.ht=function(a,b,c){var d=new Uq(a,b);c.push({data:d,id:-1})};
Tq.prototype.pV=function(){if(this.La.length==0)return;if(this.wh&&this.wh.hx){var a=new Od;for(var b=0;b<this.La.length;b++)this.La[b].data.tk&&a.Nl(this.La[b].data.tk());this.wh.hx(new Sq(a.vb()))}var b,c=[],d=false,e=false,f=false;for(b=0;b<this.La.length;b++){var g=this.La[b],h=g.data;if(h.za()==0){if(!d&&h.Du()==false){this.ht("ContactIcon","People",c);d=true}if(!f&&h.Du()==true){var i=h.$a(),j=i.email,k=Vq(j);if(!k||k=="")k="Domain";var o=k.charAt(0).toUpperCase()+k.substring(1,k.length),r=
o+" Contacts";this.ht("ContactIcon",r,c);f=true}}if(!e&&h.za()==1){this.ht("GroupIcon","Groups",c);e=true}c.push(this.La[b])}this.La=c};
Tq.prototype.Cr=function(a,b){var c=a.data.za()=="TITLE",d=c?null:b;return Tq.b.Cr.call(this,a,d)};
Tq.prototype.redraw=function(){var a=false;this.pV();var b=this.La.length;if(b>0&&this.La[b-1].data.za&&this.La[b-1].data.za()=="MORE")a=true;Tq.b.redraw.call(this);if(a){var c=Qq("SEARCHING_FOR_MATCHES");if(b>1){var d=this.O.createElement("div"),e=this.O.o("div",{style:"background-color: #A0B0FF; margin: 8px 0px"});if(t){var f=this.O.o("img",{width:"1",height:"1"});e.appendChild(f)}else e.style.height="1px";d.appendChild(e);this.g.appendChild(d);c=Qq("SEARCHING_FOR_MORE_MATCHES")}var g=this.O.o("div");
g.innerHTML=c;this.g.appendChild(g);if(this.to){var h=Mg(this.Jb),i=Og(this.g);h.y-=i.height;qh(this.g,h)}}this.UY()};
var Wq=function(a,b){this.Ne=a;this.fy=b;this.PH=w("div",{style:"position:absolute; top:-100px; left:-1000px;"},"");y(Cc().body,this.PH)};
Wq.prototype.hY=function(a){this.Ne=!!a};
Wq.prototype.jw=function(a){z(this.PH,a);return this.PH.offsetWidth};
var Vq=function(a){if(!a)return null;var b=a.indexOf("@");if(b<1)return null;var c=a.substr(b+1,a.length-b-1);return c};
Wq.prototype.hx=function(a){this.sL=a};
Wq.prototype.uG=function(a,b,c,d,e){var f="",g=0;this.sL||this.hx(new Sq([]));for(var h=0;h<a.length;++h){var i=a[h],j=i.name,k=i.email,o=i.aliases,r=this.sL.zN(j,k,o,e,b),u=this.jw(r+", ");if(g+u<c||h<d){if(h>0)f+=", ";f+=s(r);g+=u}else break}return{result:f,count:h,width:g}};
Wq.prototype.RV=function(a,b){var c=b.$a().name,d=b.fP(),e=true,f="";if(d.length>0){f=Vq(d[0].email);for(var g=1;g<d.length&&e;++g)e=e&&Vq(d[g].email)==f}var h=400,i=0;if(!this.fy&&c)i=this.jw("&lt;"+c+"&gt; ");if(e)i+=this.jw("@"+f);var j=2,k=this.uG(b.Ku(),e,h-i,j,a),o=k.count;i+=k.width;var r=function(eh){return!Lb(b.Ku(),eh)},
u=Eb(b.Vi(),r),C=this.uG(u,e,h-i,j-o,a);o+=C.count;i+=C.width;var E=k.result;if(k.count>0&&C.count>0)E+=", ";E+=C.result;var O=b.Ku().length+u.length;if(o<O){var Ua=O-o,sc;if(Ua>1){var fh="and "+(Ua+" others<b>...</b>");sc=fh}else sc="and 1 other<b>...</b>";sc=Qq("AND_OTHERS",{count:O-o});E+=" "+sc}if(e)E+="@"+f;return E};
Wq.prototype.UV=function(a,b){if(!this.Ne)return;var c=[],d=a.data,e=d.KO();if(window.manifest&&window.manifest.image&&window.manifest.image[e])e=window.manifest.image[e];else e+=".png";c.push('<table style="font-size: 100%;"><tr>');c.push('<td style="padding: 1px;" width="15">');c.push('<img src = "'+e+'"></td>');c.push('<td style="padding: 1px; color: #666666">');c.push(s(d.Wu()));c.push("</td></tr></table>");b.innerHTML=c.join("")};
Wq.prototype.Br=function(a,b,c){var d=a.data;if(d instanceof Hq)return;if(d.za()=="TITLE"){this.UV(a,c);return}var e=[],f=d.za()==1;if(this.Ne){e.push('<table style="font-size: 100%;"><tr>');e.push('<td style="padding: 1px;" width="15">');e.push("</td>");e.push('<td style="padding: 1px;">')}var g=d.$a().name;g&&e.push('"'+s(g)+'"');this.fy&&g&&e.push("<br>");if(f)if(!g||this.Ne){g&&e.push(" (");e.push(this.RV(b,d));g&&e.push(")")}else{var h=d.$a().members.length;if(h){this.fy||e.push(" ");var i;if(h==
1)i="(1 contact)";else{var j="("+(h+" contacts)");i=j}e.push(i)}}else{!this.fy&&g&&e.push(" ");g&&e.push("&lt;");e.push(s(d.$a().email));g&&e.push("&gt;")}this.Ne&&e.push("</td></tr></table>");c.innerHTML=e.join("")};
var Uq=function(a,b){this.H0=a;this.e2=b};
Uq.prototype.za=function(){return"TITLE"};
Uq.prototype.KO=function(){return this.H0};
Uq.prototype.Wu=function(){return this.e2};var Xq=function(a,b){this.R1=this.EW.bind(this);this.ne={LOG_EVENTS:"ls",ROWS_RANK:"nk",ROWS_NUM_CONTACTS:"nc",SUGGESTED_ITEMS:"si",CONTACTS_IN_CONTEXT:"cc",PREFIX_LENGTH:"pl",EVENT_TYPE:"et",EVENT_TYPE_SHOW:"SH",EVENT_TYPE_SELECT:"SE",LIST_GENERATION_MILLIS:"gm",SELECTED_ROW_NUM:"sr"};this.rn=[];this.X0=0;this.vE=0;this.nT=0;this.gN=0;this.yK="";this.hE=false;this.gE=true;this.Ni=a;var c=m(this.LT,this),d=m(this.KT,this),e=m(this.MZ,this);this.Ni.yg().gY(c);this.Ni.Kp().oX(d,e);this.gw=b;this.Ta=
new bi(10000);var f=this.qN.bind(this);this.Ta.addEventListener("tick",f);this.Ta.start();var g=this.mu.bind(this);D(window,"unload",g)};
Xq.prototype.UG=function(a){this.yK=a};
Xq.prototype.xM=function(){this.gE=false;this.rn=[]};
Xq.prototype.mP=function(){this.nT++;return this.nT};
Xq.prototype.VP=function(){var a=this.Ni.yg().WP(),b=[],c=[];for(var d=0;d<a.length;++d){b[d]=a[d].bj();c[d]=a[d].qm()}var e={};e[this.ne.ROWS_NUM_CONTACTS]=b;e[this.ne.ROWS_RANK]=c;return e};
Xq.prototype.qP=function(){var a=this.Ni.Kp().VO(),b=this.Ni.Kp().nC(),c=0,d=a.indexOf("<");while(d!=-1){c++;d=a.indexOf("<",d+1)}b.indexOf("<")!=-1&&c--;return c};
Xq.prototype.EC=function(){return this.Ni.Kp().nC().length};
Xq.prototype.fA=function(a){var b={};b[this.ne.EVENT_TYPE]=a;b[this.ne.SUGGESTED_ITEMS]=this.VP();b[this.ne.CONTACTS_IN_CONTEXT]=this.qP();b[this.ne.PREFIX_LENGTH]=this.EC();return b};
Xq.prototype.u_=function(a){var b=a[this.ne.SUGGESTED_ITEMS];if(!b)return false;var c=b[this.ne.ROWS_NUM_CONTACTS];return c.length>0};
Xq.prototype.OE=function(a){if(!this.u_(a))return;var b=this.rn.length;this.rn[b]=a;var c=b+1;c>=10&&this.mu()};
Xq.prototype.LT=function(){if(this.gE==false)return;if(this.EC()>1)return;var a=this.fA(this.ne.EVENT_TYPE_SHOW);a[this.ne.LIST_GENERATION_MILLIS]=this.Ni.TO();this.OE(a)};
Xq.prototype.KT=function(){if(this.gE==false)return;var a=this.fA(this.ne.EVENT_TYPE_SELECT);a[this.ne.SELECTED_ROW_NUM]=this.Ni.yg().SO()+1;this.OE(a)};
Xq.prototype.MZ=function(){var a=new Date;this.vE=a.getTime()};
Xq.prototype.qN=function(){if(this.vE==0)return;var a=new Date,b=a.getTime()-this.vE,c=60000;b>c&&this.mu()};
Xq.prototype.mu=function(){if(this.hE)return;if(this.rn.length==0)return;this.hE=true;var a=this.rn;this.rn=[];this.FW(a)};
Xq.prototype.FW=function(a){var b={};b[this.ne.LOG_EVENTS]=a;var c=new pk,d=c.IW(b);this.R1(d)};
Xq.prototype.EW=function(a){var b=new N(this.gw);b.ua("out","js");b.ua("jsx","true");b.ua("tok",this.yK);b.ua("eventsToLog",a);var c=this.mP();this.YV="ACLoggingReq"+c;this.$V="$ACLoggingReq"+c;this.MT=new Fq(b,this.YV,"&&&START&&&","&&&END&&&",true);var d=uq(),e=this.kK.bind(this);d.dt(this.MT,true,this.YV);d.addListener(e,this.$V);this.MT.load()};
Xq.prototype.kK=function(){var a=uq().Wi(this.$V),b=a.Na("Success",false).get();if(b){var c=a.Na("Body",false).AuthToken.Value;this.UG(c)}this.pN(b)};
Xq.prototype.pN=function(a){var b=new Date;this.X0=b.getTime();this.hE=false;if(!a){this.gN++;this.gN>2&&this.xM()}};var Yq=function(){this.Bv=false;this.Fi=[];this.w2=[];this.Gc=null;this.Vm=[];this.Em=[];this.Ma=null;this.ca=null;this.Vo=null;this.sj=null;this.ot=true;this.gw=null;this.mT=0;this.ps=false;this.tq=false;this.Ne=false;this.Es=false;this.Tt=null;this.UZ={};this.$T=250;this.RY=false;xa(Yq.prototype,"addInput",Yq.prototype.ft);xa(Yq.prototype,"removeInput",Yq.prototype.Pw);xa(Yq.prototype,"setTarget",Yq.prototype.Sf)},
Zq="[A-Za-z0-9!#\\$%\\*\\/\\?\\|\\^\\{\\}`~&'\\+\\-=_]",$q="(?:"+Zq+"(?:[A-Za-z0-9!#\\$%\\*\\/\\?\\|\\^\\{\\}`~&'\\+\\-=_\\.]*"+Zq+")?@[\\.A-Za-z0-9\\-]+)",ar=new RegExp("^"+$q+"$"),br=new RegExp("^(.+?)??(?:<("+$q+")>)?,?$");Yq.prototype.zy=null;var cr=function(a){var b=[],c=a.Na("Emails");if(c){var d=c.Rc();for(var e=0,f=d.S();e<f;++e)b.push(d.xe(e).tc("Address"))}var g=wq("Email").sa(a);b.length==0&&g!=null&&b.push(g);return b},
dr=function(a,b){var c=new Yq;if(!b.uri&&b.serverBase)b.uri=b.serverBase+"data/contacts";if(!b.loggingUri&&b.serverBase)b.loggingUri=b.serverBase+"log/emailautocomplete";c.create(a,b);return c};
l._EmailAc_create=dr;Yq.prototype.create=function(a,b){var c=v(a);if(b.groups){this.ps=true;this.tq=!!b.implicitGroups}if(b.extendedInterface)this.Ne=true;if(b.unexpandedGroups)this.Es=true;if(b.debugData)this.Tt=b.debugData;if(b.inputHandler)this.Gc=b.inputHandler;b.max&&this.QX(b.max);var d=new N(b.uri);if(!!b.disableLogging)this.ot=false;if(this.ot)this.gw=(new N(b.loggingUri)).toString();this.ae(c,d.toString(),b.rightAlign,b.twoLine,b.multi,b.topAlign,b.onComplete)};
Yq.prototype.i=function(){this.Gc.i();this.ca.i()};
Yq.prototype.FL=function(){return new Yp(this,this.ca,this.Gc)};
Yq.prototype.Kp=function(){return this.Gc};
Yq.prototype.yg=function(){return this.ca};
Yq.prototype.QX=function(a){this.$T=a<0?10100:a};
Yq.prototype.Sf=function(a){this.Ma.Sf(a)};
Yq.prototype.DB=function(a){var b=null;if(a)if(ka(a)){if(a.length>0)b=a[0].ownerDocument.body}else b=a.ownerDocument.body;return b};
Yq.prototype.ae=function(a,b,c,d,e,f,g){if(this.Bv){rq.Co("Init already called");return}this.Bv=true;this.oa=b;this.sj=new Kq(this.ps,this.Ne);this.Tt||this.BE("$Contacts",m(this.XC,this),null,false);this.Vo=this.DB(a);this.Ww=new Wq(this.Ne,d);this.ca=new Tq(this.Vo,this.Ww,c);this.ca.UW(true);if(!this.Gc)this.Gc=new Gq(",;",'"',e,this.Es);this.Ma=this.FL();this.Gc.lz(this.Ma);if(f){this.ca.sY(true);this.Gc.xY(true)}g&&D(this.Ma,"update",function(i){i.row&&g(i.target.OC())});
if(this.Tt){var h=uq();h.dt(this.Tt.contacts);this.XC("$Contacts","")}a&&this.ft(a)};
Yq.prototype.$Z=function(){if(this.ot&&this.zy==null)this.zy=new Xq(this,this.gw)};
Yq.prototype.BE=function(a,b,c,d){var e=new N(this.oa);e.ua("out","js");if(c){e.ua("tok",c);e.ua("cl","false");e.ua("psort","Name")}d&&e.ua("cd","true");this.ps&&e.ua("groups","true");this.tq&&e.ua("igroups","true");var f=c?10:this.$T;e.ua("max",String(f));var g=new Fq(e,a,"&&&START&&&","&&&END&&&"),h=uq();h.dt(g,true);h.addListener(b,a);g.load()};
Yq.prototype.ft=function(a){if(!this.Bv){rq.Co("Init should be called first");return}if(ka(a)){if(a.length==0)return;this.Vm=this.Vm.concat(a);for(var b=0;b<a.length;b++)this.Gc.pz.call(this.Gc,a[b])}else{this.Vm.push(a);this.Gc.pz.call(this.Gc,a)}if(!this.Vo){this.Vo=this.DB(a);this.ca.xl(this.Vo)}};
Yq.prototype.Pw=function(a){if(!this.Bv){rq.Co("Init should be called first");return}if(ka(a))Cb(a,function(b){this.Pw(b)},
this);else{Rb(this.Vm,a);this.Gc.vM(a)}};
Yq.prototype.hi=function(a,b,c,d){this.eM=a;var e=[],f=new Date;if(a!=""){if(!this.sj)return;e=this.sj.hi(a,b,d)}if(this.RY&&a)if(!this.vD(a,b,true))if(e.length<b){var g=e.concat([]);l.setTimeout(m(this.TN,this,g,b,a,c),500);e.push(new Hq("MORE"))}var h=new Date,i=h.getTime()-f.getTime();this.mT=i;c(a,e)};
Yq.prototype.TO=function(){return this.mT};
Yq.prototype.vD=function(a,b,c){var d=this.UZ[a];return d&&(c||d.count<b)?true:a.length>1?this.vD(a.substring(0,a.length-1),b,false):false};
var er=0;Yq.prototype.TN=function(a,b,c,d){if(c==this.eM&&c!=""){var e="$AdditionalContacts"+er++,f=m(this.fQ,this,a,b,c,d);this.BE(e,f,c,true)}};
Yq.prototype.QS=function(a,b,c){var d=a[b];return d&&Lb(d,c)};
Yq.prototype.fQ=function(a,b,c,d,e){var f=[].concat(a);if(c==this.eM){var g=this.JB(e),h={};for(var i=0;i<a.length;i++)if(a[i].za()==0){var j=a[i].$a().email,k=a[i].$a().name;if(h[j])h[j].push(k);else h[j]=[k]}i=0;while(f.length<b&&i<g.S()){var o=g.xe(i),r=cr(o),k=o.Name;for(var u=0;u<r.length;u++){var j=r[u];if(!this.QS(h,j,k)){var C=this.hA(o,j);f.push(new Oq(C,C.affinity,true));this.Fi.push(C)}}i++}d(c,f,true);this.UZ[c]={count:f.length}}};
Yq.prototype.JB=function(a){var b=uq().Wi(a),c=b.Na("Body",true).Na("Contacts",true).Rc();return c};
Yq.prototype.yz=function(a,b,c,d,e){if(d!=null){var f=d.length;for(var g=0;g<f;g++){var h=d[g].id,i=a.get(h);if(i){if(e)i.implicit=true;i.members.push(c);h.charAt(0)!="^"&&b.push(i)}}}};
Yq.prototype.aO=function(a){var b=uq().Wi(a),c=b.Na("Body",true).AuthToken;return c.Value};
Yq.prototype.aQ=function(a){var b=uq().Wi(a),c=b.Na("Body",true).UsageLoggingEnabled;return!!c};
Yq.prototype.XC=function(a){if(this.aQ(a)&&this.ot){this.$Z();var b=this.aO(a);this.zy.UG(b)}var c=[],d=[],e=new Jd,f=uq().Wi(a),g=f.Na("Body").Na("UserData");if(g){this.RY=g.tc("ShowDomainContacts");this.tq=this.tq&&g.tc("ShowImplicitGroups");this.Ne=this.Ne&&g.tc("EmailAcExtendedInterface");this.Ww.hY(this.Ne);this.sj.YX(this.Ne)}if(this.ps){var h=f.Na("Body").Na("Groups");if(h){var i=h.Rc(),j=i.S();rq.Wh("Got "+j+" groups");for(var k=0;k<j;k++){var o=i.xe(k),r=o.tc("id");if(o.IsLocked&&!(this.Es&&
r=="^Mine"))continue;var u=this.QL(o);d.push(u);e.X(r,u)}}rq.Wh("Created groups array")}var C=this.JB(a),j=C.S();rq.Wh("Got "+j+" contacts");if(j>0)for(var k=0;k<this.Vm.length;k++)this.Vm[k].setAttribute("autocomplete","off");for(var k=0;k<j;k++){var E=C.xe(k),O=cr(E);for(var Ua=0;Ua<O.length;Ua++){var sc=O[Ua],fh=this.hA(E,sc);if(this.ps&&Ua==0){var eh=[],i=E.tc("Groups");this.yz(e,eh,fh,i,false);if(this.tq){var ru=E.tc("ImplicitGroups");this.yz(e,eh,fh,ru,true)}if(eh.length>0)fh.groups=eh}c.push(fh)}}rq.Wh("Created contacts array");
this.Fi=c;this.Em=d;this.sj.iX(this.Fi,this.Em);rq.Wh("Set data source for matcher")};
Yq.prototype.hA=function(a,b){var c=a.Id,d=a.Name,e=a.Affinity,f=!!a.DomainContact;e||(e=0);var g={};g.data=a;g.id=c;g.name=d;g.email=b;g.isDomainContact=f;var h=a.Na("NameAliases",true);if(h){h=h.Rc();var i=h.S(),j=[];for(var k=0;k<i;++k)j.push(h.xe(k).get());g.aliases=j}g.affinity=e;var o=fr(d,b);g.formattedValue=o;g.groups=[];g.toString=function(){return this.formattedValue};
return g};
Yq.prototype.QL=function(a){return{members:[],data:a,id:a.id,affinity:a.Affinity||0,name:a.Name,toString:function(){return this.name}}};
var _emailAutocomplete=l._emailAutocomplete=new Yq;l._initEmailAutocomplete=m(l._emailAutocomplete.ae,l._emailAutocomplete);var _initEmailAutocomplete=l._initEmailAutocomplete,fr=function(a,b){var c=a?'"'+a+'"':"",d=b?" <"+b+">":"";return c+d},
Mq=function(a){var b=null,c=null;a=Ja(a);var d=a.match(br);if(d){b=d[1]||null;c=d[2]||null}if(b&&!c){var e=b.match(ar);if(e){b="";c=e[0]}}if(b){b=Ja(b);if(Ca(b,'"')&&Da(b,'"'))b=b.substr(1,b.length-2)}if(c)c=Ja(c);return{name:b,email:c}};var ir=function(a){var b=new Jd;gr(a,b,hr);return b},
kr=function(a){var b=[];gr(a,b,jr);return b.join("&")},
gr=function(a,b,c){var d=a.elements;for(var e,f=0;e=d[f];f++){if(e.disabled||e.tagName.toLowerCase()=="fieldset")continue;var g=e.name,h=e.type.toLowerCase();switch(h){case "file":case "submit":case "reset":case "button":break;case "select-multiple":var i=lr(e);if(i!=null)for(var j,k=0;j=i[k];k++)c(b,g,j);break;default:var j=lr(e);j!=null&&c(b,g,j)}}var o=a.getElementsByTagName("input");for(var r,f=0;r=o[f];f++)if(r.form==a&&r.type.toLowerCase()=="image"){g=r.name;c(b,g,r.value);c(b,g+".x","0");c(b,
g+".y","0")}},
hr=function(a,b,c){var d=a.get(b);if(!d){d=[];a.X(b,d)}d.push(c)},
jr=function(a,b,c){a.push(encodeURIComponent(b)+"="+encodeURIComponent(c))},
mr=function(a,b){if(a.tagName=="FORM"){var c=a.elements;for(var a,d=0;a=c[d];d++)mr(a,b)}else{b==true&&a.blur();a.disabled=b}},
lr=function(a){var b=a.type;if(!ba(b))return null;switch(b.toLowerCase()){case "checkbox":case "radio":return a.checked?a.value:null;case "select-one":return nr(a);case "select-multiple":return or(a);default:return ba(a.value)?a.value:null}};
var nr=function(a){var b=a.selectedIndex;return b>=0?a.options[b].value:null},
or=function(a){var b=[];for(var c,d=0;c=a.options[d];d++)c.selected&&b.push(c.value);return b.length?b:null};var pr=function(a,b,c){this.O=c||(a?Bc(v(a)):Bc());Fl.call(this,this.O.o("div",{style:"position:absolute;display:none;"}));this.Rt=new ya(0,0);this.ad=null;this.yd=new Od;a&&this.ag(a);b!=null&&this.qY(b)};
p(pr,Fl);var qr=[];pr.prototype.className="goog-tooltip";pr.prototype.QY=500;pr.prototype.cS=0;pr.prototype.ag=function(a){a=v(a);this.yd.add(a);D(a,ye,this.Be,false,this);D(a,ze,this.eq,false,this);D(a,af,this.Th,false,this);D(a,cf,this.Km,false,this);D(a,"blur",this.eq,false,this)};
pr.prototype.detach=function(a){if(a){var b=v(a);this.DA(b);this.yd.remove(b)}else{var c=this.yd.vb();for(var b,d=0;b=c[d];d++)this.DA(b);this.yd.clear()}};
pr.prototype.DA=function(a){Ue(a,ye,this.Be,false,this);Ue(a,ze,this.eq,false,this);Ue(a,af,this.Th,false,this);Ue(a,cf,this.Km,false,this);Ue(a,"blur",this.eq,false,this)};
pr.prototype.qY=function(a){z(this.f(),a)};
pr.prototype.zX=function(a){this.f().innerHTML=a};
pr.prototype.Wr=function(a){var b=this.f();b&&Oc(b);pr.b.Wr.call(this,a);a&&y(this.O.Mb().body,a)};
pr.prototype.Wu=function(){return cd(this.f())};
pr.prototype.En=function(){Dl.prototype.En.call(this);for(var a,b=0;a=qr[b];b++)Uc(a.f(),this.ad)||a.Y(false);Nb(qr,this);var c=this.f();c.className=this.className;this.Xl();D(c,ye,this.sD,false,this);D(c,ze,this.rD,false,this);return true};
pr.prototype.Fn=function(){Rb(qr,this);var a=this.f();for(var b,c=0;b=qr[c];c++)if(Uc(a,b.anchor))b.Y(false);else{b.ad=null;b.Nx()}Ue(a,ye,this.sD,false,this);Ue(a,ze,this.rD,false,this);this.anchor=undefined;this.LG=false;Dl.prototype.Fn.call(this)};
pr.prototype.eU=function(a,b){if(this.ad==a&&(this.LG||!this.a3))this.gV(a,b)};
pr.prototype.gV=function(a,b){var c;if(b)c=b;else{var d=new ya(this.Rt.x,this.Rt.y);c=new rr(d)}this.anchor=a;this.setPosition(c);this.Y(true)};
pr.prototype.dU=function(){if(this.ad==null||this.ad!=this.f()&&!this.yd.contains(this.ad))this.Y(false);this.Xl()};
pr.prototype.Be=function(a){this.ad=a.target;this.Xl();this.Ca()||this.WH(a.target)};
pr.prototype.Th=function(a){var b=this.O.zf();this.Rt.x=a.clientX+b.x;this.Rt.y=a.clientY+b.y;this.LG=true};
pr.prototype.Km=function(a){this.ad=a.target;this.LG=true;if(!this.Ca()){var b=new sr(this.ad);this.WH(a.target,b);this.Xl()}};
pr.prototype.eq=function(a){if(a.target==this.ad)this.ad=null;this.Nx();this.iL()};
pr.prototype.sD=function(){var a=this.f();if(this.ad!=a){this.Xl();this.ad=a}};
pr.prototype.rD=function(){if(this.ad==this.f()){this.ad=null;this.Nx()}};
pr.prototype.WH=function(a,b){this.KH=di(m(this.eU,this,a,b),this.QY)};
pr.prototype.iL=function(){if(this.KH){ei(this.KH);this.KH=null}};
pr.prototype.Nx=function(){if(!this.pv)this.pv=di(this.dU,this.cS,this)};
pr.prototype.Xl=function(){if(this.pv){ei(this.pv);this.pv=null}};
pr.prototype.C=function(){var a=this.f();pr.b.C.call(this);this.detach();a&&Oc(a);this.ad=null;delete this.O};
var rr=function(a,b){Rl.call(this,a,b)};
p(rr,Rl);rr.prototype.Xa=function(a,b,c){var d=nh(a),e=c?new Qf(c.top+10,c.right,c.bottom,c.left+10):new Qf(10,0,0,10),f=Il(d,5,a,5,this.coordinate,e,9);f||Il(d,5,a,7,this.coordinate,e,5)};
var sr=function(a){Ol.call(this,a,4)};
p(sr,Ol);sr.prototype.Xa=function(a,b,c){var d=new ya(0,0),e=c?new Qf(c.top,c.right,c.bottom,c.left-10):new Qf(0,0,0,-10),f=Il(this.element,this.corner,a,b,d,e,9);f||Il(this.element,2,a,3,d,e,5)};var tr=function(a,b,c){Go.call(this,a,b||Co.getInstance(),c);this.Wg(16,true)};
p(tr,Go);ll("goog-toggle-button",function(){return new tr(null)});var vr=function(a,b){tr.call(this,"",new ur(b||"lhcl_Checkbox"))};
p(vr,tr);var wr,xr;vr.prototype.oE=0;vr.prototype.gb=function(a,b){if(this.De(a)&&b!=this.$d(a)){this.Ab=b?this.Ab|a:this.Ab&~a;this.ca.gb(this,a,b)}};
var ur=function(a){Co.call(this);if(!yr){yr=true;nc(ur.prototype,Rp.prototype)}Rp.call(this,a);this.hc=a},
yr;p(ur,Co);ur.prototype.mb=function(){return false};
ur.prototype.o=function(){return w("div",{"class":this.hc})};
ur.prototype.We=function(a,b){switch(a||0){case 4096:return b&&this.$("checkedActive_")||null;case wr:case xr:if(!b)return null;default:return ur.b.We.call(this,a)}};
ur.prototype.Bd=function(){return null};
ur.prototype.Sb=function(){};
ur.prototype.gb=function(a,b,c){var d=a.f();if(b==4||b==16){vc(d,this.We(this.oE,true));var b=null;if(a.$d(4))b=a.$d(16)?4096:4;else if(a.$d(16))b=16;this.oE=b;uc(d,this.We(b,true))}else ur.b.gb.call(this,a,b,c)};var zr=function(a,b,c,d,e){Tp.call(this,e||"lhcl_ScaledImage");this.OD=a;this.Wc=d||-1;this.fe=c||-1;this.Lr=b||1};
p(zr,Tp);zr.prototype.Ih=null;zr.prototype.ma=null;zr.prototype.jj=false;zr.prototype.bf=null;zr.prototype.Qb="standard";zr.prototype.o=function(){zr.b.o.call(this);uc(this.g,this.$());this.bs(this.OD)};
zr.prototype.MO=function(){return this.ma};
zr.prototype.isLoaded=function(){return this.jj};
zr.prototype.bs=function(a){this.OD=a;this.ma=x("img");this.jj=false;Te(this.ma,"load",this.bR,false,this);this.ma.src=this.OD};
zr.prototype.Me=function(a){this.Qb=a};
zr.prototype.qH=function(a,b,c){this.Lr=a||this.Lr;this.fe=b||this.fe;this.Wc=c||this.Wc;this.Lc()};
zr.prototype.Zl=function(a){var b=new Qf(a.top,a.width+a.left,a.height+a.top,a.left),c="rect("+Math.round(b.top)+"px "+Math.round(b.right)+"px "+Math.round(b.bottom)+"px "+Math.round(b.left)+"px)";K(this.ma,"clip",c);var d=Math.round(-b.top)+"px 0 0 "+Math.round(-b.left)+"px";K(this.ma,"margin",d);K(this.ma,"position","absolute")};
zr.prototype.bR=function(){var a=this.f();if(!a)return;this.jj=true;this.bf=new q(this.ma.width,this.ma.height);this.qH();Mc(a);y(a,this.ma);this.dispatchEvent("load")};
zr.prototype.Lc=function(){if(!this.jj)return;if(this.Qb=="standard"){var a=this.Lr;if(this.fe>=0&&this.bf.width*a>this.fe)a=this.fe/this.bf.width;if(this.Wc>=0&&this.bf.height*a>this.Wc)a=this.Wc/this.bf.height;Ng(this.ma,this.bf.width*a,this.bf.height*a)}else if(this.Qb=="zoomandcrop"){var a;a=this.Ih?Math.min(this.Lr,Math.min(this.fe/this.Ih.width,this.Wc/this.Ih.height)):Math.min(this.Lr,Math.max(this.fe/this.bf.width,this.Wc/this.bf.height));var b=this.bf.width*a,c=this.bf.height*a;Ng(this.ma,
b,c);var d=new ch(0,0,b,c);if(this.Ih){d.left=this.Ih.left*a-(this.fe-this.Ih.width*a)/2;d.width=this.fe;d.top=this.Ih.top*a-(this.Wc-this.Ih.height*a)/2;d.height=this.Wc}else{if(b>this.fe){var e=b-this.fe;d.left=e/2;d.width-=e}if(c>this.Wc){var e=c-this.Wc;d.top=e/2;d.height-=e}}this.Zl(d)}};var Ar=function(a){Tp.call(this,a||"lhcl_PhotoOverlay");this.Kz=new Mi(this.wE,250,this);this.fS=new Mi(this.ZQ,3000,this);this.je={}};
p(Ar,Tp);var Br="lowerThird_";Ar.prototype.wt=0;Ar.prototype.Yx=false;var Cr=[Br,"middleThird_","upperThird_"];Ar.prototype.o=function(){this.xc(this.kg('<div class="{$prefix}"><div class="lhcl_RelativeContainer lhcl_FillVertical"><div class="{$prefix}-background_"></div><div class="{$prefix}-above_"></div><div class="{$prefix}-photo_"></div><div class="{$prefix}-below_"></div><div class="{$prefix}-upperThird_"></div><div class="{$prefix}-middleThird_"></div><div class="{$prefix}-lowerThird_"></div></div></div>'))};
Ar.prototype.i=function(){if(this.xb())return;Ar.b.i.call(this);this.Kz.i();this.fS.i()};
Ar.prototype.A=function(){Ar.b.A.call(this);this.$U&&this.pH(this.$U);$b(this.je,function(a,b){this.nH(b,a)},
this);this.p.e(this.f(),af,this.Th);t&&!Ab("7")&&this.p.e(window,"scroll",this.JQ)};
Ar.prototype.JQ=function(){if(nh().scrollTop>0){var a=nh().scrollTop+"px",b=this.f();K(b,"top",a)}};
Ar.prototype.BC=function(){return this.ma.MO()};
Ar.prototype.ZW=function(a){this.wt=a};
Ar.prototype.nH=function(a,b){this.je[a]=b;if(!this.la())return;var c=this.Wd(a);Mc(c);if(!b)return;y(c,b);if(!this.Yx&&(a==Br||a=="middleThird_"||a=="upperThird_"))H(b,false);else if(a=="above_"||a=="below_")this.tE=null};
Ar.prototype.pH=function(a){this.$U=a;if(!this.la())return;if(this.ma){this.removeChild(this.ma,true);this.ma=null}this.ma=new zr(a);this.ga(this.ma);var b=this.Wd("photo_");this.ma.U(b);this.Kz.start()};
Ar.prototype.PP=function(){var a=this.f();if(!a)return new q(0,0);return new q(a.offsetWidth,a.offsetHeight)};
Ar.prototype.ZQ=function(){this.vH(false)};
Ar.prototype.Th=function(){this.vH(true)};
Ar.prototype.wE=function(){var a=this.PP();if(!Ba(this.tE,a)){this.tE=a;if(t&&!Ab("7")){var b=document.documentElement.clientHeight+"px",c=this.f();K(c,"height",b);var d=this.Wd("background_");K(d,"height",b)}var e=this.je.q2,f=e&&e.offsetHeight||0,g=this.je.v2,h=g&&g.offsetHeight||0;this.ma.qH(1,a.width-this.wt*2,a.height-f-h-this.wt*2);var i=this.ma.f(),j=i?i.offsetHeight:0;if(i)K(i,"visibility",j!=0?"visible":"hidden");if(j==0){this.tE=null;di(this.wE,0,this)}var k=j+f+h,o=(a.height-k)/2;if(e){var r=
this.Wd("above_");r&&Lg(r,0,o)}var u=this.Wd("photo_");u&&Lg(u,0,o+f);if(g){var C=this.Wd("below_");C&&Lg(C,0,o+f+j)}}this.Kz.start()};
Ar.prototype.vH=function(a){this.Yx!=a&&Cb(Cr,function(b){var c=this.je[b];c&&H(c,a)},
this);this.Yx=a;a&&this.fS.start()};var Dr="smallviewonly";var Er=function(a,b,c,d){Tp.call(this,"lhcl_ShapeIcon");this.tp=d;this.F=Ao();this.zh=c||0;this.W(a)};
p(Er,Tp);Er.prototype.pb=false;Er.prototype.o=function(){var a='<div class="{$prefix} goog-inline-block"><div class="{$prefix}-inlineWrap_"><div class="{$prefix}-thumbnailArea_ lhcl_NoSpace"><img class="{$prefix}-thumbnail_" width="80" height="96"></div>';if(this.zh!=2)a=a+'<div class="{$prefix}-controlsArea_"><div class="lhcl_RelativeContainer"><div class="{$prefix}-selection_"></div><div class="{$prefix}-contextPhoto_"></div></div></div>';a=a+"</div></div>";var b=this.kg(a);this.xc(b);this.ro=this.Wd("thumbnail_");
this.ro.src=this.eb().Bg();switch(this.zh){case 0:var c=this.Wd("selection_");this.Xn=new vr;this.ga(this.Xn);this.Xn.U(c);break;case 1:this.KZ=this.kg('<img class="{$prefix}-thumbnailProhibitionBadge_" src="img/ui/shapeIcon/noSymbol.gif" style="display: none"/>');this.ro.parentNode.appendChild(this.KZ);break}if(this.zh!=2){var d=this.Wd("contextPhoto_");this.Kt=w("img",{src:"img/ui/shapeIcon/contextPhotoIcon.gif"});this.ep=new pr(this.Kt);this.ep.zX('<div class="lhcl_Tooltip"><nobr>Visa den h\u00e4r bilden i dess ursprungliga sammanhang.</nobr></div>');
y(d,this.Kt)}};
Er.prototype.i=function(){this.ep&&this.ep.i()};
Er.prototype.A=function(){Er.b.A.call(this);this.qd(this.Pk());this.p.e(this.ro,B,this.JR);this.Kt&&this.p.e(this.Kt,B,this.tQ);this.zh==0&&this.p.e(this.Xn,Fh,this.ER);this.p.e(this.f(),ye,this.Be);this.p.e(this.f(),ze,this.Ef)};
Er.prototype.D=function(){Er.b.D.call(this);this.ep&&this.ep.Y(false);this.p.ya()};
Er.prototype.Pk=function(){return this.pb};
Er.prototype.qd=function(a,b){this.pb=a;if(this.la()){switch(this.zh){case 0:this.Xn.Gv()!=a&&this.Xn.YG(a);xc(this.f(),this.$("selected_"),a);break;case 1:this.HM(a);break}b&&this.DM()}};
Er.prototype.DM=function(){this.dispatchEvent({type:"selectionchanged",subType:this.Pk()?"selected":"deselected",shapes:[this.eb()]})};
Er.prototype.Ef=function(){xc(this.f(),this.$("hover_"),false)};
Er.prototype.Be=function(){xc(this.f(),this.$("hover_"),true)};
Er.prototype.uR=function(a,b){b.la()&&b.i();a.i()};
Er.prototype.vR=function(a,b){b.U(a.BC().parentNode)};
Er.prototype.tQ=function(){if(this.tp){var a=this.eb(),b=a.Ze(),c=this.tp();c.xX(a);var d=new Ar;d.ZW(20);d.pH(b.Bf());d.nH(Br,this.kg('<div class="{$prefix}-PhotoOverlayInstructions"><div class="lhcl_RelativeContainer"><div class="{$prefix}-PhotoOverlayInstructions-backgroundTopLeft_"></div><div class="{$prefix}-PhotoOverlayInstructions-backgroundTopRight_"></div><div class="{$prefix}-PhotoOverlayInstructions-backgroundBottomLeft_"></div><div class="{$prefix}-PhotoOverlayInstructions-backgroundBottomRight_"></div><div class="{$prefix}-PhotoOverlayInstructions-backgroundTop_"></div><div class="{$prefix}-PhotoOverlayInstructions-backgroundRight_"></div><div class="{$prefix}-PhotoOverlayInstructions-backgroundBottom_"></div><div class="{$prefix}-PhotoOverlayInstructions-backgroundLeft_"></div><div class="{$prefix}-PhotoOverlayInstructions-contents_">Klicka var som helst f\u00f6r att d\u00f6lja fotot</div></div></div>'));
d.U(document.body);uc(d.f(),this.$("photoOverlay_"));Te(d.f(),B,m(this.uR,this,d,c),false,this);var e=d.BC();c.oH(b.N(),b.wf(),e,false);Te(d,"load",m(this.vR,this,d,c),false,this)}};
Er.prototype.ER=function(){this.qd(this.Xn.Gv(),true)};
Er.prototype.JR=function(a){if(this.zh==2){this.dispatchEvent({type:"picked",shape:this.eb()});return}this.qd(!this.Pk(),true);this.dispatchEvent({type:B,originalEvent:a})};
Er.prototype.HM=function(a){H(this.KZ,a)};var Hr=function(a,b,c){V.call(this,c||"lhcl_FacesMgrDlg",true);this.tp=b;this.Oa=qe("gphoto.sapphire.ui.FacesManagerDialog");this.zh=a;this.F=Ao();this.kM=false;this.Jx=null;this.Al=null;this.ls=null;var d=new Tm;d.X("save","Spara \u00e4ndringar",true);d.X($m,Zg,false,true);this.Hj(d);this.Gg={};$b(Fr,function(e){this.Gg[e]="lhid_FacesMgrDlg-"+Gr++},
this)};
p(Hr,V);var Ir="selectnone",Jr="instructionstext",Kr="shapeicons",Fr={SELECT_ALL:"selectall",SELECT_NONE:Ir,INSTRUCTIONS:"instructions",INSTRUCTIONS_TEXT:Jr,SHAPE_ICONS:Kr},Gr=0;Hr.prototype.J=function(a){this.Oa&&this.Oa.pB(a)};
Hr.prototype.A=function(){Hr.b.A.call(this);this.J("enterDocument");this.p.e(this,Vm,this.DR)};
Hr.prototype.D=function(){Hr.b.D.call(this);this.J("exitDocument");this.p.ya()};
Hr.prototype.ri=function(a,b,c,d,e,f){this.kM=c;this.Jx=d;this.rW=e;this.Qg();f&&this.F.combined.nY(f);this.CN(a,b);this.ET(d);this.Y(true)};
Hr.prototype.CN=function(a,b){var c=this.Zu();Mc(c);y(c,a);var d=this.zh==2?"":'<td class="'+this.Vb+'-selectAllNone_">'+s("V\u00e4lj")+':&nbsp;&nbsp;<span id="'+this.Gg.selectall+'" class="lhcl_fakelink">'+s("Alla")+'</span>&nbsp;|&nbsp;<span id="'+this.Gg[Ir]+'" class="lhcl_fakelink">'+s("Inget")+"</span></td>";this.Sb('<table id="'+this.Gg.instructions+'" class="'+this.Vb+'-instructions_"><tbody><tr><td id="'+this.Gg[Jr]+'" class="'+this.Vb+'-instructionsText_"></td>'+d+'</tr></tbody></table><div id="'+
this.Gg[Kr]+'" class="'+this.Vb+'-shapeIcons_"></div>');this.Ja();var e=v(this.Gg[Jr]);Mc(e);y(e,b);var f=v(this.Gg.selectall);f&&this.p.e(f,F,m(this.RG,this,true));var g=v(this.Gg[Ir]);g&&this.p.e(g,F,m(this.RG,this,false));this.ls=v(this.Gg[Kr])};
Hr.prototype.LP=function(a){var b=[];$b(this.Al,function(c){c.Pk()==a&&b.push(c.eb())},
this);return b};
Hr.prototype.ET=function(){this.hy();this.pn()};
Hr.prototype.hy=function(){this.J("unloadShapes");this.ls!=null&&Mc(this.ls);this.Al=null};
Hr.prototype.pn=function(){this.J("load_: "+this.Jx.join(","));Te(this.F.combined,Fn,this.GR,false,this);var a=this.F.client.lc(),b=Fb(this.Jx,function(c){this.J("sid="+c+"; subject="+a[c]);return a[c]},
this);this.F.combined.DT(b)};
Hr.prototype.GR=function(){this.J("handleSubjectShapesLoaded_");this.Al=[];var a=this.F.client.lc();$b(this.Jx,function(b){var c=a[b];this.dK(c)},
this);if(!this.Al||this.Al.length==0)y(this.ls,w("div",{"class":"lhcl_FacesMgrDlg-noFacesAvailable"},"Det finns inga tillg\u00e4ngliga ansikten."))};
Hr.prototype.dK=function(a){var b=a.ce();$b(a.ub(),function(c){var d=new Er(c,b,this.zh,this.tp);this.Al.push(d);this.ga(d);d.qd(this.kM);d.U(this.ls)},
this)};
Hr.prototype.DR=function(a){switch(a.key){case "save":this.AR(a);break;case $m:this.pQ(a);break;default:throw new Error("unexpected event: key="+a.key);}this.hy()};
Hr.prototype.AR=function(){var a=this.LP(true);this.J("handleSave: selected shapes="+a.length);this.rW(a)};
Hr.prototype.pQ=function(){this.J("CANCEL button clicked")};
Hr.prototype.RG=function(a){$b(this.Al,function(b){b.qd(a,false)},
this)};
Hr.prototype.ha=function(){return"gphoto.sapphire.ui.FacesManagerDialog"};var Lr=function(){Hr.call(this,2,null,"gphoto-portraitChooser");var a=new Tm;a.X($m,"Avbryt",false,true);this.Hj(a);this.r=new I(this);this.r.e(this,"picked",this.JY)};
p(Lr,Hr);Lr.prototype.ri=function(a,b){var c=a.Lb(),d=[a.N()],e="Klicka p\u00e5 det portr\u00e4tt som ska anv\u00e4ndas f\u00f6r "+('"'+(c+'".')),f=Lc('<span><span class="lhcl_FacesMgrDlg-title">'+s("V\u00e4lj en portr\u00e4ttbild f\u00f6r")+'</span><span class="lhcl_FacesMgrDlg-title-subject-name"> '+s(c)+"</span></span>"),g=Lc("<span>"+s(e)+"</span>");Lr.b.ri.call(this,f,g,false,d,b)};
Lr.prototype.JY=function(a){a.stopPropagation();a.preventDefault();this.rW(a.shape);this.hy();this.Y(false)};
Lr.prototype.ha=function(){return"gphoto.sapphire.ui.PortraitPicker"};var Mr=function(){V.call(this,"lhcl_peopleManagerDialog",true);this.J=qe("gphoto.sapphire.ui.PeopleManagerDialog");this.r=new I(this);this.Sd=D(this,Vm,m(this.Df,this));this.F=Ao()};
p(Mr,V);Mr.prototype.ba=null;Mr.prototype.$D=[];Mr.prototype.di=false;Mr.prototype.i=function(){if(!this.xb()){Mr.b.i.call(this);We(this.Sd);this.Oz();this.r.i()}};
Mr.prototype.Y=function(a){this.di||Mr.b.Y.call(this,a)};
Mr.prototype.FC=function(){var a=this.lb[0];if("_subject_"in a)return a;return a.eb().subject};
Mr.prototype.open=function(a,b){this.Oz();delete this.jF;this.ba=a;this.lb=b;var c;Mc(this.Bd());if(a=="edit"){this.qi("Redigera kontaktinformation");this.Sb(this.NL());c="Spara"}else{this.qi("Vilken kontaktinformation vill du spara?");this.Sb(this.UL());c="Klart"}var d=new Tm;d.X("save",c,true);d.X($m,Zg,false,true);this.Hj(d);this.Y(true);var e=v("lhid_photoselect");if(e){var f=this.FC();H(e,f&&f.N());this.r.e(e,[F],this.Hz)}this.Xw=document.getElementsByName("save")[0];this.Xw.tabIndex=4;var g=
document.getElementsByName($m)[0];g.tabIndex=5;K(this.Xw,"font-weight","bold");var h=document.getElementsByName("subjectNickname")[0];if(h&&!h.value)try{h.focus()}catch(i){}else try{var j=document.getElementsByName("subjectEmail")[0];j.focus()}catch(i){}};
Mr.prototype.Hz=function(){var a=this.FC();if(!this.eV)this.eV=new Lr;this.eV.ri(a,m(this.fV,this))};
Mr.prototype.fV=function(a){var b=a.Bg(),c=a.ob().Yi();if(c!=b){this.jF=a;var d=v("lhid_portrait_img");d.src=b}};
Mr.prototype.Oz=function(){while(this.$D.length>0){var a=this.$D.pop();a.i()}this.r.ya()};
Mr.prototype.Vp=function(a){if(a instanceof W)return a;return a.eb().subject};
Mr.prototype.v_=function(){var a=document.getElementsByName("subjectNickname")[0].value,b=document.getElementsByName("subjectName")[0].value,c=document.getElementsByName("subjectEmail")[0].value,d=v("lhid_nicknameWarning"),e=v("lhid_nameWarning"),f=v("lhid_emailWarning"),g=!Ga(a);H(d,!g);var h=!Ga(b);H(e,!h);var i=Ga(c)||pg(c);H(f,!i);return g&&h&&i};
Mr.prototype.Df=function(a){var b=v("lhid_photoselect");b&&this.r.ka(b,[F],this.Hz);if(a.key==$m){a.stopPropagation();a.preventDefault();var c=new Nr("cancelpeoplemgr",null,null);c.cancelled=true;this.Kr(c);return}if(a.key=="save"){a.stopPropagation();var d=Dc("form","",this.Ja())[0],e=ir(d),f=this.F.combined,g;if(this.ba=="edit"){if(!this.v_()){a.preventDefault();return}g=this.lb[0];if(g.N()){c=new Nr(this.ba,g,null);var h=this.Vp(g),i=m(function(){c.subject=h;this.Kr(c)},
this),j;j=this.jF?m(function(){f.pi(h,this.jF,i)},
this):i;f.gi(h,String(Md(e,"subjectName","")),String(Md(e,"subjectNickname","")),String(Md(e,"subjectEmail","")),j)}else{var k={name:String(Md(e,"subjectName","")),displayName:String(Md(e,"subjectNickname","")),email:String(Md(e,"subjectEmail",""))};c=new Nr(this.ba,g,null);c.contactinfo=k;this.Kr(c);return}}else{var o=Md(e,"subject"),r,u,C=[];for(var E=0;E<this.lb.length;E++){var O=this.Vp(this.lb[E]);if(O.N()==o){g=this.lb[E];r=E;u=O}else C.push(O)}Qb(this.lb,r);var c=new Nr(this.ba,g,this.lb);
f.$h(u,C,m(this.Kr,this,c))}this.Xw.disabled=true;this.di=true}};
Mr.prototype.Kr=function(a){this.di=false;this.Y(false);this.Xw.disabled=false;this.dispatchEvent(a)};
Mr.prototype.NL=function(){var a=this.Vp(this.lb[0]),b=Or(a);b.lhui_photoselect="\u00c4ndra portr\u00e4tt";return tg('<div><form action="javascript:void 0"><div style="float: left"><img src="{lhui_src}" id="lhid_portrait_img" width="80" height="96"><div id="lhid_photoselect" style="display: none;"class="lhcl_fakelink" title="{lhui_photoselect}">{lhui_photoselect}</div></td></div><div style="float: left"><div id="lhid_nicknameWarning" class="lhcl_warning" style="display:none" > Alias f\u00e5r inte vara tomt.</div><div><label for="lhid_subjectNickname">Alias</label><input type="text" id=lhid_subjectNickname" class="lhcl_input" tabindex="1" name="subjectNickname" value="{lhui_nickname}" maxlength="15"></div><div id="lhid_nameWarning" class="lhcl_warning" style="display:none" > Namnet f\u00e5r inte vara tomt.</div><div><label for="lhid_subjectName">Namn</label><input type="text" id="lhid_subjectName" class="lhcl_input" tabindex="2"name="subjectName" value="{lhui_name}" maxlength="128"></div><div id="lhid_emailWarning" class="lhcl_warning" style="display:none" > Ogiltig e-postadress.</div><div><label for="lhid_subjectEmail">E-post</label><input type="text" id="lhid_subjectEmail" class="lhcl_input" tabindex="3"name="subjectEmail" value="{lhui_email}"  maxlength="128"></div></div><div style="clear: both"/></form></div>',
b)};
Mr.prototype.UL=function(){var a=["<form><table><tbody>"];for(var b=0;b<this.lb.length;b++){var c=this.Vp(this.lb[b]),d=Or(c);d.lhui_sid=c.N();d.lhui_numShapes=c.aj();if(b!=0){a.push('<tr><td colspan="3"><div class="lhcl_pseudo_hr" />');a.push("</td></tr>")}else d.lhui_checked="checked";a.push(tg('<tr><td><div><input type="radio" name="subject" {lhui_checked} value="{lhui_sid}" id="radio{lhui_sid}" /></div></td><td><label for="radio{lhui_sid}"><img src="{lhui_src}" class="lhcl_sp_iconicShape" /></label></td><td width="100%"><div class="lhcl_sp_subjectName">{lhui_nickname} <span class="lhcl_notbold" style="font-size: 84%;">({lhui_numShapes})</span></div><div class="lhcl_sp_subjectInfo">{lhui_name}<br />{lhui_email}</div></td></tr>',
d))}a.push("</tbody></table></form>");return a.join("")};
var Or=function(a){return{lhui_src:a.Yi(),lhui_nickname:a.yB(true,-1),lhui_name:a.getName(true,-1),lhui_email:a.wk(true,-1)}};
Mr.prototype.ha=function(){return"gphoto.sapphire.ui.PeopleManagerDialog"};
var Nr=function(a,b,c){A.call(this,a,b);this.remainingSubjects=c;this.cancelled=false};
p(Nr,A);var Pr=function(a,b){this.La=a;this.j2=!b};
Pr.prototype.hi=function(a,b,c){var d=this.yP(a,b);if(d.length==0&&this.j2)d=this.OP(a,b);c(a,d)};
Pr.prototype.yP=function(a,b){var c=[];if(a!=""){var d=fb(a),e=new RegExp("(^|\\W+)"+d,"i");xd(this.La,function(f){String(f).match(e)&&c.push(f);return c.length>=b})}return c};
Pr.prototype.OP=function(a,b){var c=[];wd(this.La,function(f,g){var h=a.toLowerCase(),i=String(f).toLowerCase(),j=0;if(i.indexOf(h)!=-1)j=parseInt((i.indexOf(h)/4).toString(),10);else{var k=h.split(""),o=-1,j=0,r=10;for(var u=0,C;C=k[u];u++){var E=i.indexOf(C);if(E>o){var O=E-o-1;if(O>r-5)O=r-5;j+=O;o=E}else{j+=r;r+=5}}}j<h.length*6&&c.push({str:f,score:j,index:g})});
c.sort(function(f,g){var h=f.score-g.score;if(h!=0)return h;return f.index-g.index});
var d=[];for(var e=0;e<b&&e<c.length;e++)d.push(c[e].str);return d};var Qr=function(){W.call(this,{name:"",id:""});this.Oi="";this.E2=""};
p(Qr,W);Qr.prototype.TX=function(a){this.Kd=a;this.Ue="Skapa ny kontakt:";this.D2="";this.G2=""};
Qr.prototype.Lb=function(a){return Qr.b.Lb.call(this,a,-1)};
Qr.prototype.toString=function(){return Qr.b.getName.call(this)};
Qr.prototype.Uh=function(){return false};
var Rr=function(a){Pr.call(this,[],false);this.zl(a||[]);this.aV=new Qr};
p(Rr,Pr);Rr.prototype.zl=function(a){this.La=a};
Rr.prototype.hi=function(a,b,c){var d=fb(a),e=new RegExp("(^|\\W+)"+d,"i"),f=[];Cb(this.La,function(g){if(e.test(g.getName())||e.test(g.Lb())||e.test(g.wk()))f.push(g)});
if(!f||!f.length){this.aV.TX(a);f=[this.aV]}c(a,Ub(f,0,b))};var Sr=function(){jq.call(this);this.zM=false};
p(Sr,jq);Sr.prototype.U=hq;Sr.prototype.ue=function(){Sr.b.ue.call(this);this.zM=true};
Sr.prototype.Sh=function(a,b){a.VG(true);this.v1(b);a.VG(false)};
Sr.prototype.Br=function(a,b,c){this.zM=false;var d=a.data,e=d.wk(true),f=d.Lb(true),g=d.getName(true),h;h=g&&e?g+", "+e:g+e;var i="iconholder";if(!d.Uh()){h='"'+h+'"';i=i+" gphoto-newsubject"}c.innerHTML='<div class="'+i+'"><img src="'+d.Yi()+'"></div><div><span>'+f+"</span></div><div>"+h+"</div>";uc(c,"gphoto-subjectinfo-row")};
Sr.prototype.Ff=function(a,b){if(a.nodeType==3){var c,d=null;if(ka(b)){c=b.length>0?b[0]:"";if(b.length>1)d=Ub(b,1)}else c=b;if(c.length==0)return;var e=a.nodeValue;c=fb(c);var f=new RegExp("(.*?)("+c+")(.*)","gi"),g=[],h=0,i=f.exec(e);if(i){g.push(i[1]);g.push(i[2]);g.push(i[3]);h=f.lastIndex;a.nodeValue=g[0];var j=this.O.o("span",{"class":"gphoto-subject-match"});g[1]&&this.O.appendChild(j,this.O.createTextNode(g[1]));this.O.appendChild(a.parentNode,j);g[2]&&this.O.appendChild(a.parentNode,this.O.createTextNode(g[2]))}else d&&
this.Ff(a,d)}else{var k=a.firstChild;while(k){var o=k.nextSibling;this.Ff(k,b);k=o}}};
var Tr=function(a,b,c){L.call(this);this.$C=b;this.W_=c;this.r=new I(this);this.Vc=new kq("Skriv ett namn h\u00e4r");this.ga(this.Vc);this.Gc=new fq(null,null,false);this.xZ=new Rr;this.Ww=new Sr;this.ca=new gq(null,this.Ww);this.ca.Ff=m(Sr.prototype.Ff,this.ca);this.ca.v1=this.ca.Sh;this.ca.Sh=m(Sr.prototype.Sh,this.ca,this);this.Ma=new Yp(this.xZ,this.ca,this.Gc);this.Gc.lz(this.Ma);this.Ma.TW(false);this.Ma.QW(false);this.jz=new Go("Verkst\u00e4ll",Fo.getInstance());this.zl(a)};
p(Tr,L);Tr.prototype.sz=false;Tr.prototype.o=function(){Tr.b.o.call(this);this.ra(this.g)};
Tr.prototype.ra=function(a){uc(a,"gphoto-subjectinput");var b=w("div",{"class":"inputwrapper"}),c=w("input",{type:"text",maxlength:"128",size:"50"}),d=x("table"),e=x("tbody"),f=x("tr"),g=x("td");rc(g,"inputholder");y(d,e);y(e,f);y(f,g);y(g,b);y(b,c);g=x("td");rc(g,"buttonholder");y(f,g);this.jz.U(g);y(a,d);this.xc(a);this.Vc.va(c)};
Tr.prototype.A=function(){Tr.b.A.call(this);this.Gc.oz(this.Vc.f());this.clear();this.Ma&&this.r.e(this.Ma,"update",this.BK);this.r.e(this.jz,Fh,function(){this.cu()})};
Tr.prototype.D=function(){this.r.ya();var a=this.Vc.f();if(a){this.Gc.GA(a);this.Vc.hb("")}Tr.b.D.call(this)};
Tr.prototype.zl=function(a){if(!a)return;this.xZ.zl(a)};
Tr.prototype.js=function(a){this.U1=a};
Tr.prototype.BX=function(a){this.$C=a};
Tr.prototype.VG=function(a){this.sz=a};
Tr.prototype.clear=function(){this.Vc.f()&&this.Vc.hb("")};
Tr.prototype.BK=function(a){a.stopPropagation();a.preventDefault();var b=a.row;if(b&&!b.Uh()){b=null;if(this.sz){this.cu();return}}if(b&&b.getName()){if(!b.yB()){var c=this.VB(b.getName());b.lX(c)}this.dispatchEvent(new Wp(b,this.W_))}else{var d=this.Vc.f();Te(d,"keyup",m(function(e){e.keyCode==13&&this.cu(b)},
this))}};
Tr.prototype.YC=function(){di(this.BV,10,this)};
Tr.prototype.BV=function(){try{this.Vc.rN()}catch(a){}};
Tr.prototype.VB=function(a){if(!a)return"";var b=a.indexOf(" ");if(b<0)b=15;return a.substr(0,Math.min(15,b))};
Tr.prototype.cu=function(a){if(!this.QF)this.QF=new Mr;var b,c,d,e=a;if(e)d=e.Yi();else{b=this.Vc.sa();var f=Mq(b);c=f.email;b=f.name;var g=this.VB(b);e=new W({dispname:g,name:b,email:c},Ao())}if(this.$C){var h=this.$C();h&&h!=d&&e.CX(h)}this.dispatchEvent({type:yn,subject:e});Te(this.QF,"edit",this.wZ,false,this);this.QF.open("edit",[e])};
Tr.prototype.wZ=function(a){a.stopPropagation();a.preventDefault();var b=new Wp(a.subject,this.clusterBox,null,this.U1,null,a.contactinfo);this.dispatchEvent(b)};
Tr.prototype.Y=function(a){a||this.Ma.ue();H(this.f(),a)};
Tr.prototype.Ha=function(a){this.jz.Ha(a);var b=this.Vc.f();if(a){this.Vc.la()||this.Vc.A();b.removeAttribute("disabled")}else{this.Vc.la()&&this.Vc.D();b.setAttribute("disabled","disabled")}};var Ur=function(a,b){Tp.call(this,"lhcl_NamingPopup");this.J=qe("gphoto.sapphire.ui.NamingPopup");this.v0=b||this;this.Fe=new Tr;this.F=Ao();Te(this.F.combined,En,m(this.FI,this));this.F.combined.JE();this.ga(this.Fe);this.W(a)};
p(Ur,Tp);Ur.prototype.W=function(a){Ur.b.W.call(this,a);this.Fe.clear();this.j&&this.Fe.BX(m(this.j.Bg,this.j))};
Ur.prototype.js=function(a){this.Fe.js(a)};
Ur.prototype.vd=function(){this.dispatchEvent("cancel");this.Y(false)};
Ur.prototype.o=function(){this.xc(this.kg('<div class="{$prefix}"><table class="lhcl_NoSpace"><tr><td><div class="{$prefix}-nameText_"></div></td><td class="lhcl_NamingPopup-quickCancelCell_"><img class="lhcl_NamingPopup-quickCancel_" src="img/tag_delete_normal.png"></td></tr></table></div>'));this.Fe.U(this.Wd("nameText_"))};
Ur.prototype.A=function(){Ur.b.A.call(this);this.p.e(this.Fe,xn,this.Fm);this.p.e(this.Fe,yn,m(this.Y,this,false));this.p.e(this.Wd("quickCancel_"),B,this.vd);this.p.e(this.Fe,"blur",this.vd);this.p.e(this.F.client,Gn,this.FI);this.Fe.YC()};
Ur.prototype.D=function(){Ur.b.D.call(this);this.p.ya()};
Ur.prototype.hasFocus=function(){return this.Fe.hasFocus()};
Ur.prototype.Y=function(a){if(this.g){K(this.g,"visibility",a?"visible":"hidden");this.Fe.Y(a);a&&this.Fe.YC()}};
Ur.prototype.Fm=function(a){a.stopPropagation();var b=new Wp(a.subject,null,null,this.eb(),null,a.contactInformation,false);this.v0.dispatchEvent(b)};
Ur.prototype.FI=function(){this.Fe.zl(this.F.client.$P())};var Vr=function(a,b,c,d){Tp.call(this,"lhcl_ShapeBox");this.tp=b;this.BU=c;this.tw=d;this.J=qe("gphoto.sapphire.ui.ShapeBox");this.dV=new I(this);this.Ic=null;this.W(a)};
p(Vr,Tp);Vr.prototype.ph=false;Vr.prototype.yq=false;Vr.prototype.Hc=false;Vr.prototype.Yk=null;Vr.prototype.wn=[0,0];Vr.prototype.vd=function(a){this.Oe(false);this.ph&&a.target!=this&&this.dispatchEvent("cancel")};
Vr.prototype.o=function(){this.xc(this.kg('<div class="{$prefix}" style="visibility: hidden;"><div class="lhcl_RelativeContainer lhcl_FillVertical"><div class="{$prefix}-backgroundTopLeft_"></div><div class="{$prefix}-backgroundTopRight_"></div><div class="{$prefix}-backgroundBottomLeft_"></div><div class="{$prefix}-backgroundBottomRight_"></div><div class="{$prefix}-backgroundTop_"></div><div class="{$prefix}-backgroundRight_"></div><div class="{$prefix}-backgroundBottom_"></div><div class="{$prefix}-backgroundLeft_"></div></div></div>'));
this.wy();this.Y(false)};
Vr.prototype.A=function(){Vr.b.A.call(this);this.p.e(this.f(),B,this.cv);this.p.e(this,"cancel",this.vd);this.ly()};
Vr.prototype.D=function(){Vr.b.D.call(this);this.p.ya();if(this.Sd){We(this.Sd);delete this.Sd}this.Ep();this.wI()};
Vr.prototype.WG=function(a){this.ph=a;xc(this.f(),this.$("beingEdited_"),a);this.wI();this.wy();di(function(){this.cv()},
0,this)};
Vr.prototype.Ib=function(a){this.yq=a;xc(this.f(),this.$("highlighted_"),a);this.Y(true);this.HH(true);this.wy()};
Vr.prototype.Y=function(a,b){a=this.yq||a;if(this.Hc==a&&!b)return;this.Hc=a;var c=this.f();if(c)K(c,"visibility",a?"visible":"hidden");this.HH(a);a&&!this.Ic&&this.Oe(false)};
var Wr=function(a,b){var c=a.eb().getBounds(),d=b.eb().getBounds();if(a.ph)return-1;else if(b.ph)return 1;return c.width*c.height>d.width*d.height?1:c.width*c.height<d.width*d.height?-1:0};
Vr.prototype.Oe=function(a){a=this.kE()&&a;this.rG();var b=this.Ka();if(!b)return;var c=b.Oe(this.eb(),a,this);if(a&&c){Te(c,"cancel",this.vd,false,this);if(!this.Sd)this.Sd=D(c,yn,this.Ep,false,this)}else if(this.Sd){We(this.Sd);delete this.Sd}};
Vr.prototype.ha=function(){return"gphoto.sapphire.ui.ShapeBox"};
Vr.prototype.Ep=function(){if(this.Ic){this.dV.ya();this.Ic.Y(false)}};
Vr.prototype.su=function(){var a=this.eb(),b=this.Ka().wu(),c=a.getBounds(),d=a.CC(),e=b.width/d.width;return new ch(c.left*e,c.top*e,c.width*e,c.height*e)};
Vr.prototype.cv=function(a){var b=this.Ka();if(!b||b.za()!="editor")return;a&&a.stopPropagation();this.kE()&&this.Oe(true)};
Vr.prototype.SQ=function(a){a.stopPropagation()};
Vr.prototype.TQ=function(a){this.Ep();this.Oe(false);this.Yk=ph(a,this.Ka().wm());this.Cw=this.su();var b=this.f(),c=b.offsetWidth,d=b.offsetHeight,e=ph(a,b),f=e.x,g=e.y,h=10;this.wn=[f<h?-1:f>=c-h?1:0,g<h?-1:g>=d-h?1:0]};
Vr.prototype.UQ=function(a){if(!this.Yk)return;var b=this.Ka().wm(),c=b.offsetWidth,d=b.offsetHeight,e=ph(a,b);if(e.x<0||e.y<0||e.x>=c||e.y>=d)return;if(this.wn[0]!=0&&this.wn[1]!=0){var f=this.su().jI();if(this.wn[0]==-1)f.left=Math.min(f.right-20,e.x);else f.right=Math.max(f.left+20,e.x);if(this.wn[1]==-1)f.top=Math.min(f.bottom-20,e.y);else f.bottom=Math.max(f.top+20,e.y);this.eb().XG(new ch(f.left,f.top,f.right-f.left,f.bottom-f.top),new q(c,d));this.ly()}else{var g=new ya(e.x-this.Yk.x,e.y-this.Yk.y),
h=new ch(this.Cw.left+g.x,this.Cw.top+g.y,this.Cw.width,this.Cw.height);if(h.left<0)h.left=0;else if(h.left+h.width>=c)h.left=c-h.width-1;if(h.top<0)h.top=0;else if(h.top+h.height>=d)h.top=d-h.height-1;this.eb().XG(h,new q(c,d));this.ly()}};
Vr.prototype.VQ=function(){this.Yk=null};
Vr.prototype.WQ=function(){this.Oe(true);this.Yk=null};
Vr.prototype.kE=function(){return this.eb().ob().N()==Zn};
Vr.prototype.rG=function(){if(this.Ic){this.Ic.i();this.Ic=null}};
Vr.prototype.xG=function(){if(this.Ic){var a=this.Ic.f(),b=Og(a),c=Og(this.g),d=(c.width-b.width)/2,e=c.height;if(this.Ic instanceof this.tw){d+=this.g.offsetLeft;e+=this.g.offsetTop}Lg(this.Ic.f(),d,e)}};
Vr.prototype.HH=function(a){a=this.yq||a;if(a){if(!this.Ic||!(this.Ic instanceof this.BU)){this.Ic&&this.rG();this.Ic=new this.BU(this.eb().ob(),this.Ka().za()=="editor");this.ga(this.Ic);this.Ic.U(this.f())}this.xG();this.Ic.Y(true);this.dV.e(this.Ic.f(),B,this.cv)}else this.Ep()};
Vr.prototype.ly=function(){var a=this.su(),b=this.Ka().wu();a.left+=b.left;a.top+=b.top;var c=this.f();Lg(c,a.left,a.top);Ng(c,a.width,a.height);this.xG()};
Vr.prototype.wI=function(){if(this.ph&&this.la()){if(!this.Dg)this.Dg=w("div",{"class":this.$("glassPane_")});y(this.f().parentNode,this.Dg)}else if(this.Dg&&(!this.ph||!this.la()))Oc(this.Dg);if(this.Dg){var a=this.ph?this.p.e:this.p.ka;a.call(this.p,this.Dg,F,this.TQ);a.call(this.p,this.Dg,$e,this.WQ);a.call(this.p,this.Dg,af,this.UQ);a.call(this.p,this.Dg,ze,this.VQ);a.call(this.p,this.Dg,B,this.SQ)}};
Vr.prototype.wy=function(){var a=this.eb();xc(this.f(),this.$("noTemplate_"),!a.$R()&&!a.ob().ce()&&!this.ph&&!this.yq)};var Xr=function(a,b){Tp.call(this,"lhcl_DrawingPane");this.fL=new Mi(this.qQ,250,this);this.F=Ao();this.Xg={};this.ba=a;this.xj=new Vp;this.tw=b;this.K2=new Mi(this.Gk,2000,this)};
p(Xr,Tp);var Yr=function(a,b){return new Xr(a||"viewonly",b)};
Xr.prototype.RD=false;Xr.prototype.vd=function(){if(this.tf){this.cs(false);this.jf()}};
Xr.prototype.o=function(){Xr.b.o.call(this);uc(this.f(),this.$());this.xj.U(this.f())};
Xr.prototype.A=function(){Xr.b.A.call(this);this.p.e(this.F.client,An,this.pR);this.p.e(this.F.client,zn,this.nR);this.p.e(this.F.client,wn,this.kQ);this.p.e(this.F.client,Bn,this.mR);this.p.e(this.f(),af,this.Th);this.p.e(this.f(),ze,this.Ef);this.p.e(this.f(),ye,this.Be);this.p.e(this,"cancel",this.vd);this.p.e(this,xn,this.Fm);this.p.e(this.F.client,Cn,this.gq);this.p.e(this.F.combined,Dn,this.jf);this.jf()};
Xr.prototype.D=function(){Xr.b.D.call(this);this.p.ya()};
Xr.prototype.wu=function(){return new ch(this.ma.offsetLeft,this.ma.offsetTop,this.ma.offsetWidth,this.ma.offsetHeight)};
Xr.prototype.wm=function(){return this.ma};
Xr.prototype.za=function(){return this.ba};
Xr.prototype.xX=function(a){this.jS=a;this.jf()};
Xr.prototype.oH=function(a,b,c,d){this.ld=a;this.of=b;this.ma=c;this.cs(false);d&&this.hL();this.jf();this.fL.start()};
var Zr=function(a,b,c,d,e,f,g,h){if(a&&c&&b){if(!a.ic)a.ic=new Xr(f||"viewonly",h);if(a.ic.la()){a.ic.D();Oc(a.ic.f())}if(e){a.ic.oH(c,d,b,g);a.ic.U(b.parentNode)}}};
Xr.prototype.jf=function(){if(!this.la())return;var a=this.F.client.wg()[this.ld];this.Qg(true);gc(this.Xg);if(this.ba==Dr){var b=a&&Pn(bc(a.ub()).sort($r))||[],c=[],d=0;Cb(b,function(h){if(h.N()==Zn)d++;else c.push(h.Lb())},
this);var e,f=d+" utan namn",g=f;if(c.length>3||c.length==3&&d>0){c[3]="...";c.length=4;e=c.join(", ")}else if(c.length==3){c.length=3;e=c.join(", ")}else if(c.length>0)e=c.join(", ")+(d>0?" + "+g:"");else if(d>0)e=g;this.xj.W(e)}else if(a){$b(a.ub(),function(h){var i=new Vr(h,Yr,Vp,Ur);this.Xg[h.N()]=i;this.ga(i);i.U(this.f());this.jS&&h.N()==this.jS.N()&&i.Ib(true)},
this);this.Gk()}this.gZ()};
Xr.prototype.hL=function(){var a=this.F.client.wg()[this.ld];if(a){this.F.client.Qw(a);this.la()&&this.jf()}};
Xr.prototype.zR=function(){this.vd();this.Qg(true);this.df&&this.df.Y(false);gc(this.Xg);var a=this.F.client.wg()[this.ld];if(a){a.HT();this.F.client.Qw(a)}di(m(function(){this.F.combined.HE([this.ld],false)},
this),4000)};
Xr.prototype.PR=function(){this.vd();this.df&&this.df.Y(false)};
Xr.prototype.hO=function(a){var b=new ya(a.offsetX,a.offsetY),c=new Qf(this.ma.offsetTop,this.ma.offsetLeft+this.ma.offsetWidth,this.ma.offsetTop+this.ma.offsetHeight,this.ma.offsetLeft);if(!c.contains(b))return null;var d=null,e=-1;$b(this.Xg,function(f){var g=f.f(),h=new ya(g.offsetLeft+g.offsetWidth/2,g.offsetTop+g.offsetHeight/2),i=za(h,b);if(e<0||i<e){e=i;d=f}});
return d};
Xr.prototype.kQ=function(){if(this.ba!="editor"||this.tf)return;var a=this.ma.offsetWidth,b=this.ma.offsetHeight,c=new ya(a/2,b/2);if(!(new Qf(0,a,b,0)).contains(c))return;var d=Math.min(this.ma.offsetWidth,this.ma.offsetHeight)/6,e=d*0.8,f=d;if(c.x-e<0)c.x=e;else if(c.x+e>=a)c.x=a-e-1;if(c.y-f<0)c.y=f;else if(c.y+f>=b)c.y=b-f-1;var g=this.F.client.wg()[this.ld];if(!g){g=new Ln({id:this.ld,aid:this.of,url:this.ma.src,shapes:[]});this.F.client.bK(g)}var h=new Nn({id:"tempid-"+co++,subject:this.F.client.lc()[Zn],
type:"Face",photo:g,x1:c.x-e,y1:c.y-f,x2:c.x+e,y2:c.y+f,w:a,h:b},this.F);this.tf=new Vr(h,Yr,Vp,Ur);this.cs(true);this.ga(this.tf);this.tf.U(this.f());this.tf.WG(true);this.tf.Y(true)};
Xr.prototype.Oe=function(a,b,c){if(!this.df){if(!this.tw||!b)return null;this.df=new this.tw(null,this);this.df.U(document.body)}if(b&&a&&c){this.df.W(a);this.df.js(a);var d=Og(this.df.f()),e=c.f(),f=Og(e),g=Mg(e),h=(f.width-d.width)/2+g.x,i=f.height+g.y;Lg(this.df.f(),h,i)}this.df.Y(b);return this.df};
Xr.prototype.Fm=function(a){this.Oe(null,false,null);if(!a.shape)return;if(!a.shape.Uh()){this.tf.WG(false);this.F.combined.nf(a.shape,m(this.Fm,this,a));this.jf();this.tf=null;this.cs(false);return}if(a.contactInformation){var b=a.contactInformation;this.F.combined.Po(b.name,b.displayName,b.email,[a.shape],"",m(this.jf,this),false,"TEXT_BOX","ONE_UP_VIEW")}else if(a.subject)this.F.combined.kd(a.subject,[a.shape],m(this.jf,this),a.recommendation?"RECOMMENDATION":"TEXT_BOX","ONE_UP_VIEW",a.confidenceScore)};
Xr.prototype.qQ=function(){var a=this.wu();if(!dh(a,this.V0)){this.V0=a;this.jf()}this.ba!=Dr&&this.fL.start()};
Xr.prototype.mR=function(a){var b=this.Xg[a.shape.N()];b&&b.Oe(true)};
Xr.prototype.Th=function(a){if(this.RD||!Lb(tc(a.target),this.$())||this.ba==Dr)return;var b=this.hO(a);if(!b){this.Gk();return}this.Gk(b);b.Y(true)};
Xr.prototype.Ef=function(a){if(this.ba==Dr)this.xj&&this.xj.Y(false);else if(a.target==this.f()&&(!a.relatedTarget||!Uc(this.f(),a.relatedTarget)))this.Gk()};
Xr.prototype.nR=function(a){var b=this.Xg[a.shape.N()];b&&b.Y(false)};
Xr.prototype.Be=function(){if(this.ba==Dr&&this.xj){var a=Og(this.xj.f()),b=Og(this.f()),c=(b.width-a.width)/2,d=b.height-a.height-4;Lg(this.xj.f(),c,d);this.xj.Y(true)}};
Xr.prototype.pR=function(a){var b=this.Xg[a.shape.N()];b&&b.Y(true)};
Xr.prototype.gq=function(a){a.subType==Hn&&Lb(a.photoIds,this.ld)&&this.jf()};
Xr.prototype.Gk=function(a){$b(this.Xg,function(b){b!=a&&b.Y(false,true)},
this)};
var $r=function(a,b){return Vb(a.getBounds().left,b.getBounds().left)};
Xr.prototype.cs=function(a){this.RD=a;if(a)this.Gk();else{if(this.tf){var b=this.tf.eb();b.Ze().Rn(b)}this.tf=null}};
Xr.prototype.gZ=function(){bc(this.Xg).sort(Wr);var a=this.f();Db(this.Xg,function(b){var c=b.f();Oc(c);y(a,c)})};var as=function(a,b){var c=n();b.iconClass=b.iconClass||Yo;U.call(this,b.iconClass,b.listCssClass,b.iconCssClass);if(!this.Ed||!this.Ed.prototype.ke)this.fH(Yo);this.Ed.prototype.as&&this.Ed.prototype.as(b.iconListUseImageLoaderStartIndex);this.Ea=b;this.ea=a;this.p=new I(this);this.fW=new Mi(this.yi,100,this);this.h2=new Mi(this.m_,10,this);this.HF=b.maxPageSize&&b.maxPageSize!=-1;this.Vg(1);this.WM(b.keyboardShortcuts);var d=n()-c;this.J.da("Created: "+d+"ms.")};
p(as,U);as.prototype.qB=true;as.prototype.Gh=0;as.prototype.vv=3;as.prototype.J=qe("gphoto.BasicFeedList");as.prototype.xa=true;as.prototype.JG=0;as.prototype.QC=function(){return this.cy};
as.prototype.show=function(a){if(this.xa!=a){this.J.da("Show list: "+a);this.xa=a;if(a){H(this.g,true);window.scrollTo(0,this.JG)}else{this.JG=Ic().y;H(this.g,false)}this.Xz(a);if(a)if(this.qB){this.qB=false;this.AG()}else this.yi();else{this.cy&&H(this.cy,false);this.Fz()}if(a&&this.od)if(this.od.loaded>=this.od.expected){this.Hu().stop();un(qn)}else this.UH(this.od.expected)}};
as.prototype.Fz=function(){this.Vd(function(a){a.Et()})};
as.prototype.Ca=function(){return this.xa};
as.prototype.Xz=function(a){var b=n(),c=a?this.p.e:this.p.ka;c.call(this.p,this.Ka().Ka(),df,this.$b);this.HF&&c.call(this.p,this.ea,Ep,this.fq);var d=n()-b;this.J.da("connectEvents: "+d+"ms.")};
as.prototype.A=function(){U.prototype.A.call(this);this.Xz(this.Ca());this.p.e(this,"load",this.$Q)};
as.prototype.o=function(){as.b.o.call(this);this.Lq=w("div",{style:"display:none;"});rc(this.Lq,"lhcl_list_loading_info");this.Lq.innerHTML=al;y(this.g,this.Lq)};
as.prototype.hp=function(){if(!this.yb){var a=aj[3];this.yb=w("div",{"class":this.xd+"-area "+this.xd+"-"+a});y(this.g,this.yb);var b=x("div");K(b,"clear","both");K(b,"font-size","0");y(this.g,b);this.cy=w("div",{"class":this.xd+"-tooltip",style:"display: none;"});y(this.yb,this.cy)}};
as.prototype.D=function(){as.b.D.call(this);this.p.ya()};
as.prototype.$b=function(){this.fW.start()};
as.prototype.W=function(a){this.J.da("Model changed: "+a);var b=n();if(!a||a==this.j){this.Wk.ya();this.p.ka(this.j.Qa(),Tj,this.yi);this.r.ka(this,Im,this.$p);this.r.ka(this,[Dh,Ch],this.bq);return}if(this.j){this.j=a;this.yi()}else{this.j=a;this.hp();this.xa&&this.AG();this.Wk.e(this.j,["remove","insert"],this.yi);this.p.e(this.j.Qa(),Tj,this.yi);this.r.e(this,Im,this.$p);this.r.e(this,[Dh,Ch],this.bq)}var c=n()-b;this.J.da("setModel, total time: "+c+"ms.")};
as.prototype.zC=function(){var a=this.Qp(),b=Math.ceil(this.uU/a);return b*a};
as.prototype.AG=function(){H(this.Lq,true);if(this.HF){this.uU=this.Ea.maxPageSize;var a=this.zC();this.ea.Mj(a)}else this.ea.Mj(1000);var b=this.ea.Xe(),c=this.ea.Bm(b),d=this.ea.Ye();this.Gh=c;this.J.da("Request data: "+c+"-"+(c+d));this.uA=n();this.j.ii(c,c+d,m(this.fM,this))};
as.prototype.fM=function(){this.uA=n()-this.uA;this.J.da("Data loaded, time: "+this.uA+"ms.");this.J.da("Create icon list.");H(this.Lq,false);this.TL();this.LX()};
as.prototype.TL=function(){var a=n(),b=this.Hu().Ql("icon creation","js");b.start();this.tB(function(d){var e=this.yf(d);e||this.lk(d,this.yb,false)});
b.stop();this.UH(this.j.S());var c=n()-a;this.J.da("Icon list created, time: "+c+"ms.")};
as.prototype.LX=function(){var a=n();this.tB(function(c,d){var e=this.yf(c);if(e){e.cH(d);e.W(this.j.$a(d))}});
var b=n()-a;this.J.da("Icon list data set, time: "+b+"ms.")};
as.prototype.tB=function(a){var b=this.ea.Xe();this.Gh=this.ea.Bm(b);var c=Math.min(this.ea.Ye(),this.j.S()),d=Math.max(this.Gh+c,0),e=Math.max(d-this.Gh,0);for(var f=0;f<e;f++)a.call(this,f,this.Gh+f)};
as.prototype.fq=function(){if(this.la()&&this.j){this.gL();var a=this.ea.Xe();this.Gh=this.ea.Bm(a);this.yi()}};
as.prototype.gL=function(){this.Vd(function(a){a.clear()})};
as.prototype.eo=function(a){if(!this.la()||!this.xa)return;this.vv=a;var b=this.Ed.prototype.ke(a);if(b){this.J.da("User has resized list to step: "+a);this.Fz();this.ea.Mj(this.zC());xb?this.h2.start():this.yi()}};
as.prototype.m_=function(){var a=this.j.S(),b=this.Ui(),c=this.tC(a,b);this.ED(b,c);var d=aj[this.vv];rc(this.yb,this.xd+"-area "+this.xd+"-"+d);this.fW.start()};
as.prototype.tC=function(a){var b;if(this.HF){var c=this.Qp(),d=Math.ceil(this.uU/c),e=Math.max(a-this.Gh,0);b=Math.min(d*c,e)}else b=a;return b};
as.prototype.ED=function(a,b){for(var c=a-1;c>=b;c--){var d=this.yf(c);d&&d.show(false)}};
as.prototype.yi=function(a){if(!this.la()||!this.xa&&!ba(a))return;var b=n(),c=this.Ui(),d=this.tC(this.j.S(),c);this.ED(c,d);if(!xb){var e=aj[this.vv];rc(this.yb,this.xd+"-area "+this.xd+"-"+e)}var f=-1,g=-1;for(var h=0;h<d;h++){var i=this.Gh+h,j=this.yf(h);j||(j=this.lk(h,this.yb,false));j.cH(i);var k=this.j.$a(i);if(!k||k==Zj){if(f==-1)f=i;g=i}else j.W(k);j.show(true)}f!=-1&&this.j.ii(f,g+1,m(this.k_,this));var o=n()-b;this.J.da("List updated, time: "+o+"ms.")};
as.prototype.k_=function(){this.Vd(function(a){var b=a.zO(),c=this.j.$a(b);a.W(c)},
this)};
as.prototype.lk=function(a,b,c){var d;if(this.j)d=this.j.$a(a);var e=new this.Ed(this,this.oq,a,d);e.WX(!!c);this.ga(e);e.U(b);return e};
as.prototype.UH=function(a){var b=this.Hu().Ql("image loads","network");b.start();var c=0;if(this.od)c=this.od.loaded;this.od={loaded:c,expected:a,threshold:[],timer:b};if(this.od.loaded>=this.od.expected){this.od.timer.stop();un(qn);return}for(var d=0;d<bs.length;d++){var e=bs[d];if(e>a)break;this.od.threshold.push(e)}};
as.prototype.$Q=function(){this.od.loaded++;var a=this.od.loaded,b=Bb(this.od.threshold,a);b>=0&&this.od.timer.LZ("load"+a);if(a>=this.od.expected){this.od.timer.stop();un(qn)}};
as.prototype.Hu=function(){var a;a=qn.Rm("ajax")?qn.get("ajax").get(String(qn.ajaxIndex)):qn.get(sn).get(tn);return a.get("images")};
var bs=[1,5,10,50,100,500,1000];var cs=function(a,b){Jm.call(this);this.aa=a;this.aa.aY(true);b&&this.ZX(b)};
p(cs,Jm);cs.prototype.Oa=qe("gphoto.FeedModel");cs.prototype.ea=null;cs.prototype.Dd=function(){return this.ea};
cs.prototype.ZX=function(a){this.ea&&Ue(this.ea,Ep,this.gg,false,this);this.ea=a;D(this.ea,Ep,this.gg,false,this)};
cs.prototype.S=function(){if(!this.aa.isLoaded())return-1;return this.aa.Te()};
cs.prototype.$a=function(a){return this.aa.vg(a)};
cs.prototype.remove=function(a){var b=this.$a(a);this.aa.remove(a);return b};
cs.prototype.ii=function(a,b,c){this.aa.load(a,b-a,function(d,e,f){c(e,d.qu().slice(e,e+f+1))})};
cs.prototype.Le=function(a){this.aa=a};
cs.prototype.Qa=function(){return this.aa};
cs.prototype.isLoaded=function(){return this.aa.isLoaded()};
cs.prototype.gg=function(){this.dispatchEvent("update")};var ds=function(a,b,c,d){this.j=a;this.GK=b;this.qb=b;this.TH=d||0;this.$y=0;this.Zh=c||b*2;this.ja(true);this.j.addEventListener(Dp,m(this.ja,this,false));this.j.addEventListener(Ep,m(this.ja,this,false))};
p(ds,J);var es=function(a){A.call(this,"windowscroll",a);this.active=a.$y};
p(es,A);ds.prototype.ja=function(a){var b=this.j.Wp(),c=b-1,d=Math.min(c,this.TH+(this.qb-1)),e=this.j.Xe(),f=Math.min(this.Zh,this.GK+e);f=Math.max(f,this.GK);var g=this.Zh;if(f>b){f=b;g=b;d=c}var h=Math.ceil(g/2),i=-1,j=-1;if(f==this.Zh)if(e>c-h){var k=c-e;j=this.Zh-1-k;i=c-this.Zh+1}else{j=h;i=e-h}else{i=0;j=e}this.qb=f;this.TH=i;this.$y=j;a||this.dispatchEvent(new es(this))};
ds.prototype.FO=function(){return this.TH};
ds.prototype.S=function(){return this.qb};
ds.prototype.SN=function(){return this.$y};
var fs=function(a,b,c){var d=c||b*2;return new ds(a,b,d,a.Xe())};var gs=function(a){L.call(this);this.hc=a||""};
p(gs,L);gs.prototype.o=function(){this.g=x("td");this.Z=x("div");this.eh=x("div");y(this.g,this.Z);y(this.g,this.eh)};
gs.prototype.A=function(){gs.b.A.call(this);this.m1=D(this.g,F,m(this.Rf,this))};
gs.prototype.D=function(){We(this.m1);gs.b.D.call(this)};
gs.prototype.Rf=function(){this.Hh&&this.Hh()};
gs.prototype.sX=function(){this.show(true);rc(this.Z,this.hc+"pagerfirst");z(this.eh,"");delete this.Hh};
gs.prototype.cY=function(a){this.show(true);rc(this.Z,this.hc+"pagerprev");z(this.eh,"F\u00f6reg\u00e5ende");rc(this.g,this.hc+"firstCell");rc(this.eh,this.hc+"firstCellTxt");this.Hh=m(a.sV,a)};
gs.prototype.VX=function(a){this.show(true);rc(this.Z,this.hc+"pagernext");rc(this.eh,this.hc+"pagernextnum");z(this.eh,"N\u00e4sta");this.Hh=m(a.CU,a)};
gs.prototype.IX=function(){this.show(true);rc(this.Z,this.hc+"pagerlast");z(this.eh,"");delete this.Hh};
gs.prototype.fX=function(){this.show(true);rc(this.Z,this.hc+"pagercurrent");rc(this.eh,this.hc+"pagercurrentpagenum");delete this.Hh};
gs.prototype.Tg=function(a,b){this.show(true);rc(this.Z,this.hc+"pagerpage");z(this.eh,b+1);rc(this.eh,this.hc+"pagerpagenum");this.Hh=m(a.jx,a,b)};
gs.prototype.show=function(a){H(this.g,a)};
var hs=function(a,b,c){L.call(this);this.W(a);this.m2=b;this.hc=c||"";this.qc=fs(a,this.m2)};
p(hs,L);hs.prototype.xa=false;hs.prototype.o=function(){this.g=w("table",{id:"lhid_pager"});rc(this.g,this.hc+"pager");var a=x("tbody");this.ey=x("tr");y(this.g,a);y(a,this.ey)};
hs.prototype.A=function(){L.prototype.A.call(this);this.j.addEventListener(Ep,this.ja,false,this);this.j.addEventListener(Dp,this.ja,false,this)};
hs.prototype.D=function(){this.j.removeEventListener(Ep,this.ja,false,this);this.j.removeEventListener(Dp,this.ja,false,this);this.show(false);L.prototype.D.call(this)};
hs.prototype.ja=function(){var a=this.qc.S(),b=0;b=a<=1?-1:1;if(b!=0&&this.g){this.xa=b>0;H(this.g,this.xa)}if(!b)return;var c=this.qc.FO(),d=this.qc.SN(),e=d-c;if(!this.ti)this.ti=[];var f=this.ti[0];if(!f){f=new gs(this.hc);this.ti[0]=f;this.ga(f);f.U(this.ey)}c==0&&e==0?f.sX():f.cY(this.j);for(var g=0;g<a;++g){var h=this.ti[g+1];if(!h){h=new gs(this.hc);this.ti[g+1]=h;this.ga(h);h.U(this.ey)}h.Tg(this.j,c+g);d==g&&h.fX()}var i=a+1,j=this.ti[i];if(!j){j=new gs(this.hc);this.ti[i]=j;this.ga(j);j.U(this.ey)}this.j.Xe()+
1==this.j.Wp()?j.IX():j.VX(this.j);for(var g=i+1;g<this.ti.length;++g){var k=this.ti[g];k&&k.show(false)}};
hs.prototype.show=function(a){if(this.xa!=a){this.xa=a;a&&this.ja();this.g&&H(this.g,a)}};var is=function(a){L.call(this);this.Ea=a};
p(is,L);is.prototype.Hc=false;is.prototype.show=function(a){H(this.g,a);a&&!this.Hc&&window.scrollTo(0,0);this.Hc=a};
is.prototype.Le=function(a){this.aa=a};
is.prototype.ja=function(){this.j&&this.dispatchEvent(new rp(this.j))};
is.prototype.isOwner=function(a){return this.wa&&this.wa.isOwner(a)};
is.prototype.Yb=function(){return this.Ea.appContext};
is.prototype.tm=function(){return this.Ea};var X=function(a,b,c){L.call(this);this.Z=[null,null];this.nw=a||0;this.l2=b||false;this.l0=c||512;this.r=new I(this)};
p(X,L);X.prototype.Pi=false;X.prototype.nB=false;var js=new q(320,240);X.prototype.Sm=false;X.prototype.Qb=0;X.prototype.Ua=false;X.prototype.mb=function(){return false};
X.prototype.o=function(){var a=x("div");K(a,"position","relative");K(a,"overflow","hidden");Cb(this.Z,function(b,c,d){var e=x("img");K(e,"position","absolute");H(e,false);y(a,e);d[c]=e},
this);this.hh=this.Z.length;this.xc(a)};
X.prototype.dM=function(){if(this.Aq(this.eb())){var a=_LH.locale;if(a!="en_US")a+="&messagesUrl="+Pa("http://video.google.com/FlashUiStrings.xlb?frame=flashstrings&hl="+_LH.locale);var b=this.Xp(this.j),c=Qa(this.j.vsurl);if(this.j.xD()&&this.Sm)c=Qa(this.j.IO());var d="http://video.google.com/googleplayer.swf?videoUrl="+Pa(c)+"&hl="+a+"&autoplay=yes",e=x("embed");K(e,"position","absolute");var f=this.l2?"mini":"normal";e.setAttribute("FlashVars","avoidgeturl=true&fs=true&playerMode="+f);e.setAttribute("allowFullScreen",
"true");e.setAttribute("salign","TL");e.setAttribute("src",d);e.setAttribute("scale","noScale");e.setAttribute("bgcolor","#eeeeee");e.setAttribute("quality","best");e.setAttribute("swLiveConnect","true");e.setAttribute("allowscriptaccess","always");e.setAttribute("width",b.width);e.setAttribute("height",b.height+27);e.setAttribute("type","application/x-shockwave-flash");e.setAttribute("wmode","opaque");H(e,false);Jg();y(this.g,e);this.Z[this.hh]=e;this.Ke(this.j,this.Z[this.hh]);H(this.Z[this.hh],
true)}};
X.prototype.Aq=function(a){var b=a.videostatus;return a.nc()&&(!b||b=="ready"||b=="final")};
X.prototype.Xp=function(a){var b=a.h,c=a.w;if(c<js.width||b<js.height){c=js.width;b=js.height}else{c=2*js.width;b=2*js.height}return new q(c,b)};
X.prototype.QV=function(){if(this.Z[this.hh]){H(this.Z[this.hh],false);Oc(this.Z[this.hh]);delete this.Z[this.hh]}};
X.prototype.i=function(){if(!this.xb()){X.b.i.call(this);this.r.i()}};
X.prototype.A=function(){X.b.A.call(this);this.Pi=false;this.ia={available:null,actualSize:null,active:false,inDrag:false,elt:null,minX:0,minY:0,curX:0,curY:0,xOff:0,yOff:0};if(this.Ka()&&this.Ka().Ka()){this.r.e(this.Ka().Ka().Ka(),"zoomin",this.zoomIn);this.r.e(this.Ka().Ka().Ka(),"zoomout",this.zoomOut);this.r.e(this.Ka().Ka().Ka(),"hqvideo",this.gS);this.r.e(this.Ka().Ka().Ka(),"stdvideo",this.iZ)}var a=this.uk(new q(0,this.l0));Ng(this.g,a);this.ja()};
X.prototype.D=function(){X.b.D.call(this);this.Jq&&Wo(this.Jq);this.r.ya();this.g&&Oc(this.g);this.g=null;Cb(this.Z,function(a,b,c){c[b]=null})};
X.prototype.W=function(a){if(this.eb()!=a){X.b.W.call(this,a);if(this.la()){this.Pi=false;this.ja()}}else{this.Ua=true;this.rq()}};
X.prototype.NX=function(a){this.Qb=a};
X.prototype.kH=function(a,b){b=a>0&&!!b;this.Wc=a;this.nB=!!b;this.la()&&!this.Ua&&this.ja()};
X.prototype.mC=function(a){var b=this.uk(a);return lj(a,b)};
X.prototype.uk=function(a){var b=this.la()?this.g.offsetWidth:0;return new q(Math.max(b,this.nw),this.Wc?this.Wc:a.height)};
X.prototype.wm=function(){return this.Z&&this.Z[0]};
X.prototype.ja=function(){if(this.j){var a=this.Aw||this.j,b=new q(a.w,a.h);if(this.Aw!=this.j)b=new q(this.j.w,this.j.h);var c=this.uk(b),d=lj(b,c);if(this.Aq(a)){b=this.Aw!=this.j?this.Xp(this.j):this.Xp(a);var e=new q(b.width,b.height+27);c=this.uk(e);c.height-=27;d=lj(b,c);d.height+=27;d.height=Math.max(d.height,js.height);d.width=Math.max(d.width,js.width)}var f=pj(this.j.videostatus,""),g=false;if(!f||a.videostatus=="ready")f=this.j.Lh();else g=true;var h=Xo(f,Math.max(d.width,d.height));if(this.Aw!=
this.j||h<0){if(h<0)h=128;if(g)h=0;this.Ua=true;this.Jq=Vo(f,b,h,false,m(this.sR,this,this.j),m(this.qq,this))}else if(this.Qb==0){var i=Ba(b,d)?0:Math.max(d.width,d.height);this.Lc(f,i,this.j)}else this.rq()}else this.eS();if(this.ia.active){this.KI();this.ia.inDrag=false}};
X.prototype.qs=function(a){this.QV();var b=this.j&&!!this.j.vsurl;b&&a&&this.dM()};
X.prototype.eS=function(){Cb(this.Z,function(a){a&&H(a,false)})};
X.prototype.sR=function(a,b){if(this.la()){this.Ke(a,this.Z[1]);this.Jq=Vo(b.baseUrl,null,b.imgMax,b.crop,m(this.mD,this,a),m(this.qq,this),this.Z[1])}};
X.prototype.mD=function(a,b){if(this.la()){this.Aw=a;this.dispatchEvent("show");H(this.Z[0],false);H(this.Z[1],true);this.Ke(a,this.Z[0]);this.Jq=Vo(b.baseUrl,null,b.imgMax,b.crop,m(this.aR,this,a),m(this.qq,this),this.Z[0])}};
X.prototype.aR=function(){if(this.la()){H(this.Z[1],false);H(this.Z[0],true);var a=this.eb().nc();this.qs(a);a?this.rq():this.ja()}};
X.prototype.Lc=function(a,b,c){var d=hj(a,b);if(this.Z[0].src==d){if(this.Aq(c)){if(this.Z[this.hh]){this.Ke(c,this.Z[this.hh]);H(this.Z[0],false);H(this.Z[1],false);H(this.Z[this.hh],true)}}else{this.Ke(c,this.Z[0]);H(this.Z[1],false);H(this.Z[0],true)}this.rq()}else{H(this.Z[0],true);this.Ke(c,this.Z[1]);this.Ua=true;this.Jq=Vo(a,null,b,false,m(this.mD,this,c),m(this.qq,this),this.Z[1])}};
X.prototype.qq=function(){if(this.Ua){this.Ua=false;this.Pi=true;this.dispatchEvent("error")}};
X.prototype.rq=function(){if(this.Ua){this.Ua=false;this.dispatchEvent("load")}};
X.prototype.Ke=function(a,b){if(!a||!b)return new q(this.nw,this.nw);var c=this.nw;if(this.Aq(a)){var d=this.Xp(a),e=new q(d.width,d.height+27),f=this.uk(e);f.height-=27;var g=lj(d,f);g.height+=27;g.height=Math.max(g.height,js.height);g.width=Math.max(g.width,js.width);c=js.width}else{var d=new q(a.w,a.h),f=this.uk(d),g=lj(d,f)}if(!this.nB)f.height=g.height;this.ia.available=f;var h=new ya((f.width-g.width)/2,(f.height-g.height)/2);if(this.la()){Ng(this.f(),f.width<c?c:"",f.height);Ng(b,g);Lg(b,h)}return g};
X.prototype.KI=function(){var a=this.ia.available.width,b=Math.min(this.ia.available.height,this.ia.actualSize.height),c=0;if(a>this.ia.actualSize.width){c=Math.floor((a-this.ia.actualSize.width)/2);a=this.ia.actualSize.width}Ng(this.ia.elt,new q(a,b));Lg(this.ia.elt,new ya(c,0));this.ia.minX=a-this.ia.actualSize.width;this.ia.minY=b-this.ia.actualSize.height;this.ia.curX=0;this.ia.curY=0;K(this.ia.elt,"background-position","0 0");K(this.ia.elt,"background-color","white")};
X.prototype.zoomOut=function(){if(this.ia.active){this.r.ka(this.ia.elt,F,this.SH);this.r.ka(this.ia.elt,af,this.OA);this.r.ka(this.ia.elt,$e,this.ok);this.r.ka(this.ia.elt,ze,this.ok);this.r.ka(window,ze,this.ok);this.g.removeChild(this.ia.elt);this.ia.active=false}};
X.prototype.zoomIn=function(){if(!this.bL())return;if(!this.ia.active){this.ia.active=true;var a=kj[kj.length-1],b=new q(a,a);this.ia.actualSize=new q(this.j.w,this.j.h);if(!this.ia.actualSize.jm(b))this.ia.actualSize=this.ia.actualSize.Zw(b);this.ia.elt=x("div");this.KI();K(this.ia.elt,"background-image","url("+this.j.Lh()+")");K(this.ia.elt,"position","absolute");K(this.ia.elt,"z-index","1000");y(this.g,this.ia.elt);this.r.e(this.ia.elt,F,this.SH);this.r.e(this.ia.elt,af,this.OA);this.r.e(this.ia.elt,
$e,this.ok);this.r.e(this.ia.elt,ze,this.ok);this.r.e(window,ze,this.ok)}};
X.prototype.gS=function(){if(!this.Sm){this.Sm=true;this.qs(true)}};
X.prototype.iZ=function(){if(this.Sm){this.Sm=false;this.qs(true)}};
X.prototype.SH=function(a){this.ia.xOff=a.offsetX;this.ia.yOff=a.offsetY;this.ia.inDrag=true;a.preventDefault()};
X.prototype.OA=function(a){if(this.ia.inDrag){var b=Zh(this.ia.curX+a.offsetX-this.ia.xOff,this.ia.minX,0),c=Zh(this.ia.curY+a.offsetY-this.ia.yOff,this.ia.minY,0);this.ia.xOff=a.offsetX;this.ia.yOff=a.offsetY;this.ia.curX=b;this.ia.curY=c;K(this.ia.elt,"background-position",b+"px "+c+"px")}};
X.prototype.ok=function(){this.ia.inDrag=false};
X.prototype.bL=function(){return true};var ks=function(a,b){is.call(this,b);this.Tl=b.authUser;this.ea=a;this.p=new I(this);this.ew=new Mi(this.GE,10,this);this.Mw=new Mi(this.il,50,this)};
p(ks,is);ks.prototype.J=qe("gphoto.PhotoEntityView");ks.prototype.kq=0;ks.prototype.ac=[];ks.prototype.Ua=false;ks.prototype.A=function(){ks.b.A.call(this);this.ic&&this.ic.A();var a=this.Ka().Ka();this.p.e(a,df,this.$b);this.p.e(a,"zoomin",this.tD);this.p.e(a,"zoomout",this.tD);this.p.e(a,"rotate",this.Om);this.p.e(l,Xf,m(this.MH,this,false));this.p.e(l,Yf,m(this.MH,this,true))};
ks.prototype.D=function(){ks.b.D.call(this);this.p.ya();this.ic&&this.ic.D()};
ks.prototype.i=function(){if(!this.xb()){ks.b.i.call(this);this.ew.i();this.Mw.i();this.p.i();this.ic&&this.ic.i()}};
ks.prototype.show=function(a){is.prototype.show.call(this,a);this.ea.OX(a);if(a){if(this.aa&&this.ea){var b=this.aa.vg(this.ea.Cd());if(b!=this.j)this.j=null}this.ja();this.p.e(this.ea,Fp,this.th);this.p.e(this.ea,Ep,this.gg)}else{this.ic&&this.ic.Oe(null,false,null);this.ew.stop();this.Mw.stop();this.Ua=false;Mb(this.ac);this.p.ka(this.ea,Fp,this.th);this.p.ka(this.ea,Ep,this.gg);if(this.kb){this.p.ka(this.kb,["load","error"],this.jd);this.p.ka(this.kb,"show",this.Pm);this.removeChild(this.kb,true);
delete this.kb}}};
ks.prototype.U=function(a){ks.b.U.call(this,a)};
ks.prototype.MH=function(a){if(a){this.kq>0&&this.kq--;this.ja()}else this.kq++};
ks.prototype.th=function(){var a=this.ea.Cd();this.J.da("currentItemChanged_, load: "+a);a>=0&&this.aa.load(a,1,m(this.im,this,false))};
ks.prototype.gg=function(){if(this.aa&&this.ea){var a=this.ea.Cd(),b=this.ea.Ye();this.aa.load(a,b,function(){})}};
ks.prototype.im=function(a,b,c){if(!this.kb)return;var d=this.ea.Cd();this.J.da("entityLoaded: "+c+", myIndex: "+d);var e=b.vg(c);if(a&&e){this.J.da("Prefetching: "+c);var f=new q(e.w,e.h);this.oV&&Wo(this.oV);var g=e.Lh();if(g)this.oV=Vo(g,f,this.kb.mC(f),false,null)}else if(d==c){if(!e){this.Yb().aE();return}this.W(e)}};
ks.prototype.W=function(a,b){this.J.da("Model changed: "+a);if(!a||a==Zj)return;ks.b.W.call(this,a);b||this.ja()};
ks.prototype.ja=function(){ks.b.ja.call(this);if(!this.kb){this.kb=new X;this.ga(this.kb,true);this.p.e(this.kb,["load","error"],this.jd);this.p.e(this.kb,"show",this.Pm)}if(this.j)if(this.ac[this.ac.length-1]!=this.j){this.ac.push(this.j);this.GE()}};
ks.prototype.$b=function(){if(this.kb&&this.j){var a=Hc(),b=Mg(this.f()).y;this.kb.kH(a.height-b)}};
ks.prototype.GE=function(){this.ew.stop();this.Mw.stop();if(!this.kb||this.Ua)return;if(this.ac.length==0){this.Mw.start();return}this.J.da("Consume model off queue");this.Ua=true;this.$b();var a=this.ac.shift();this.dispatchEvent("consumed");var b=this.ac.length?1:0,c=this.Bk();c.zD()||c.start();this.kb.NX(b);this.kb.W(a);this.ic&&this.ic.Oe(null,false,null);if(a.nc())this.kb.qs(this.kq==0);else if(_features.fr&&_features.froptin)Zr(this,this.kb.wm(),a.id,null,true,this.isOwner(a)?"editor":"viewonly",
false,Ur)};
ks.prototype.jd=function(){this.Ua=false;this.J.da("ScaledImage loaded");this.ew.start()};
ks.prototype.Pm=function(){};
ks.prototype.Bk=function(){var a;a=qn.Rm("ajax")?qn.get("ajax").get(String(qn.ajaxIndex)):qn.get(sn).get(tn);return a.get("images")};
ks.prototype.il=function(){var a=this.ea.Cd()+this.ea.nO();a>=0&&a<this.aa.Te()&&this.aa.load(a,1,m(this.im,this,true))};
ks.prototype.tD=function(a){this.ic&&this.ic.PR(a)};
ks.prototype.Om=function(a){this.ic&&this.ic.zR(a)};var ls=function(a){L.call(this);this.ea=a.appContext.Dd();this.p=new I(this);this.Ea=a;this.Mf=new this.Ea.feedListClass(this.ea,this.Ea);this.hk=new this.Ea.entityDetailClass(this.ea,this.Ea);this.I0=new Mi(this.AX,1,this);this.ga(this.hk);this.ga(this.Mf);if(this.Ea.maxPageSize!=-1){this.Ng=new hs(this.ea,10);this.ga(this.Ng)}this.xL=this.Ea.appContext.Za()};
p(ls,L);ls.prototype.J=qe("gphoto.BasicFeedView");ls.prototype.qS=1;ls.prototype.vw=144;ls.prototype.Le=function(a){var b=this.aa!=a;this.aa=a;b&&this.hN()};
ls.prototype.Qa=function(){return this.aa};
ls.prototype.hN=function(){var a=n();this.p.e(this.aa,Uj,function(){this.ea.ds(this.aa.Te())});
this.ea.ds(this.aa.Te());if(this.Zv)this.Zv.Le(this.aa);else this.Zv=new cs(this.aa,this.ea);this.Mf.W(this.Zv);this.hk.Le(this.aa);if(_features.fr)this.F=Ao();var b=n()-a;this.J.da("feedChanged: "+b+"ms.")};
ls.prototype.A=function(){L.prototype.A.call(this);this.p.e(this.Mf,"change",this.Bq);this.p.e(this.Mf,"select",this.AW);this.p.e(this.ea,Dp,this.GF)};
ls.prototype.D=function(){this.p.ya();L.prototype.D.call(this)};
ls.prototype.GF=function(){this.Ng&&this.Ng.show(this.Mf.Ca()&&this.ea.Wp()>1)};
ls.prototype.i=function(){this.p.i();L.prototype.i.call(this)};
ls.prototype.AW=function(){var a=this.Mf.dj()[0];if(a){var b=a.vp;this.ea.Ij(b)}};
ls.prototype.Ag=function(){var a=this.ea.Cd();return this.aa.vg(a)};
ls.prototype.Bq=function(){var a=this.Mf.dj()[0];qn.startNewAjaxTimer("list_1up");this.Xr(a.eb(),true);this.dispatchEvent("itemactivated")};
ls.prototype.eo=function(a){this.qS=a-this.vw;this.vw=a;this.I0.start()};
ls.prototype.AX=function(a){var b=a||this.vw;b=Zh(b,0,bj);this.Mf.eo(b)};
ls.prototype.U=function(a){L.prototype.U.call(this,a);this.hk.U(a);this.Mf.U(a);if(this.Ng){this.Ng.U(a);this.Ng.ja()}};
ls.prototype.ja=function(){this.hk.ja()};
ls.prototype.Gx=function(a){if(!this.Hb)return;if(a){this.hk.show(false);this.Mf.show(true);if(this.Ng){this.GF();this.Ng.A()}}else{this.Mf.show(false);this.hk.show(true);this.Ng&&this.Ng.D()}};
ls.prototype.Xr=function(a,b){this.c3=a;this.hk.W(a,b)};
ls.prototype.isOwner=function(a){if(a&&this.Ea&&this.Ea.authUser)return a.isOwner(this.Ea.authUser);return false};
ls.prototype.AQ=function(){this.Zv.dispatchEvent("remove")};
ls.prototype.tm=function(){return this.Ea};var ms=function(){ve.call(this);this.CE=new Mi(this.zT,500,this)},
ns;p(ms,ve);ms.prototype.J=qe("gphoto.FeedHelper");ms.prototype.on=[];ms.prototype.IA=false;var os=function(){ns||(ns=new ms);return ns};
ms.prototype.C=function(){ms.b.C.call(this);this.CE.i()};
ms.prototype.Nf=function(a,b){if(a&&a!=Zj){if(this.fw!=a){this.fw=a;this.IA=false;this.CE.stop();Mb(this.on)}ba(b)&&!Lb(this.on,b)&&this.on.push(b);this.IA||this.CE.start()}};
ms.prototype.zT=function(){this.J.da("Load details for: "+this.fw.N());this.Ua=true;this.EE=n();this.fw.Nf(m(this.yT,this))};
ms.prototype.yT=function(a){if(this.fw==a){this.EE=n()-this.EE;this.J.da("Details loaded for "+a.N()+" in "+this.EE+"ms.");this.Ua=false;while(this.on.length){var b=this.on.shift();b(a)}}};var ps=function(a,b){this.element=a;this.headerElement=b};
ps.prototype.D=function(){this.element&&Oc(this.element)};
var qs=function(a){L.call(this);this.sd=a;this.p=new I(this);this.KG={};this.Xc=this.Yb().Za().hd();this.zp=os()};
p(qs,L);qs.prototype.Yb=function(){return this.sd.tm().appContext};
qs.prototype.A=function(){qs.b.A.call(this);this.p.e(this.sd,qp,this.th)};
qs.prototype.D=function(){this.p.ya();$b(this.KG,function(a){a.D()});
qs.b.D.call(this)};
qs.prototype.i=function(){if(!this.$m()){qs.b.i.call(this);this.p.i()}};
qs.prototype.th=function(a){var b=a.entity;this.W(b)};
qs.prototype.o=function(){this.g=w("div",{"class":"lhcl_sidebox",style:"display: none;"})};
qs.prototype.Am=function(a){var b=this.KG[a];if(!b){var c=w("div",{"class":"lhcl_hideoverflow",style:"position: relative"}),d=w("table",{width:"100%",cellspacing:"0",cellpadding:"0"}),e=x("tbody"),f=x("tr");y(this.g,c);y(c,d);y(d,e);y(e,f);b=new ps(c,f);this.KG[a]=b}return b};
qs.prototype.qi=function(a,b,c){var d=this.Am(a),e;if(c){e=x("a");e.href=c;e.title=b;z(e,b)}if(!d.titleElement){d.titleElement=w("td",{"class":"lhcl_title"});y(d.headerElement,d.titleElement)}if(e){Mc(d.titleElement);y(d.titleElement,e)}else z(d.titleElement,b)};
qs.prototype.show=function(a){this.g&&H(this.g,a)};var rs,ss;(function(){var a="ScriptEngine"in l,b=false,c="0";if(a){b=l.ScriptEngine()=="JScript";if(b)c=l.ScriptEngineMajorVersion()+"."+l.ScriptEngineMinorVersion()+"."+l.ScriptEngineBuildVersion()}rs=b;ss=c})();var ts=function(a){this.cg=rs?[]:"";a!=null&&this.I.apply(this,arguments)};
ts.prototype.X=function(a){this.clear();this.I(a)};
if(rs){ts.prototype.xt=0;ts.prototype.I=function(a,b){if(b==null)this.cg[this.xt++]=a;else{this.cg.push.apply(this.cg,arguments);this.xt=this.cg.length}return this}}else ts.prototype.I=function(a,
b){this.cg+=a;if(b!=null)for(var c=1;c<arguments.length;c++)this.cg+=arguments[c];return this};
ts.prototype.clear=function(){if(rs){this.cg.length=0;this.xt=0}else this.cg=""};
ts.prototype.toString=function(){if(rs){var a=this.cg.join("");this.clear();a&&this.I(a);return a}else return this.cg};var us="ALL_RIGHTS_RESERVED",vs="ATTRIBUTION_NO_DERIVATIVES",ws="ATTRIBUTION_NON_COMMERCIAL_NO_DERIVATIVES",xs="ATTRIBUTION_NON_COMMERCIAL",ys="ATTRIBUTION_NON_COMMERCIAL_SHARE_ALIKE",zs="ATTRIBUTION_SHARE_ALIKE",As=function(a){var b=a.chk_remix.checked,c=a.chk_com.checked,d=a.chk_sa.checked;if(!b&&!c)return ws;if(!b&&c)return vs;if(b&&!c&&!d)return xs;if(b&&!c&&d)return ys;if(b&&c&&!d)return"ATTRIBUTION";if(b&&c&&d)return zs},
Bs=function(a){return a.rb_c.checked?us:As(a)},
Gs=function(a,b){var c=a!=us;b.rb_c.checked=!c;b.rb_cc.checked=c;b.chk_remix.checked=c?Cs(a):false;b.chk_com.checked=c?Ds(a):false;b.chk_sa.checked=c?Es(a):false;Fs(a,b)},
Cs=function(a){switch(a){case us:case ws:case vs:return false}return true},
Ds=function(a){switch(a){case us:case xs:case ys:case ws:return false}return true},
Es=function(a){switch(a){case ys:case zs:return true}return false},
Fs=function(a,b){var c=a!=us;H(b.div_cc,c);H(b.img_c,!c);H(b.img_by,c);H(b.img_nc,c?!Ds(a):false);H(b.img_nd,c?!Cs(a):false);H(b.img_sa,c?Es(a):false);H(b.lab_c,!c);H(b.lab_cc,c);if(!b.chk_remix.checked)b.chk_sa.checked=false;b.chk_sa.disabled=!b.chk_remix.checked;b.lab_sa.disabled=!b.chk_remix.checked;b.lab_cc.href=Hs(a)},
Hs=function(a){switch(a){case us:return"";case "ATTRIBUTION":return"http://creativecommons.org/licenses/by/3.0/";case zs:return"http://creativecommons.org/licenses/by-sa/3.0/";case vs:return"http://creativecommons.org/licenses/by-nd/3.0/";case xs:return"http://creativecommons.org/licenses/by-nc/3.0/";case ys:return"http://creativecommons.org/licenses/by-nc-sa/3.0/";case ws:return"http://creativecommons.org/licenses/by-nc-nd/3.0/";default:return""}},
Is=function(){};var Js=function(a){qs.call(this,a)};
p(Js,qs);Js.prototype.o=function(){var a=w("div",{"class":"lhcl_licenseBox",id:"lhid_license"});this.ra(a)};
Js.prototype.ra=function(a){Js.b.ra.call(this,a);var b=new ts;b.I('<img id="lhid_lic_img_c" src="img/transparent.gif" ');b.I('    class="SPRITE_license_no lhcl_spriting_alignMiddle"');b.I('    style="display:none" />');b.I('<img id="lhid_lic_img_by" src="img/transparent.gif" ');b.I('    class="SPRITE_license_by lhcl_spriting_alignMiddle"');b.I('    style="display:none" />');b.I('<img id="lhid_lic_img_nc" src="img/transparent.gif" ');b.I('    class="SPRITE_license_nc lhcl_spriting_alignMiddle"');b.I('    style="display:none" />');
b.I('<img id="lhid_lic_img_nd" src="img/transparent.gif" ');b.I('    class="SPRITE_license_nd lhcl_spriting_alignMiddle"');b.I('    style="display:none" />');b.I('<img id="lhid_lic_img_sa" src="img/transparent.gif" ');b.I('    class="SPRITE_license_sa lhcl_spriting_alignMiddle"');b.I('    style="display:none" />');b.I('<span id="lhid_lic_text_c" class="lhcl_license ');b.I('    lhcl_license_greyTextColor lhcl_spriting_marginRight5"');b.I('    style="display:none" >');b.I(s("Med ensamr\u00e4tt"));b.I("</span>");
b.I('<a id="lhid_lic_text_cc" ');b.I('   class="lhcl_license lhcl_license_greyTextColor ');b.I('          lhcl_spriting_marginRight5" ');b.I('   target="_blank"');b.I('   style="display:none" >');b.I(s("Vissa r\u00e4ttigheter reserverade"));b.I("</a>");b.I('<span id="lhid_lic_editButton" ');b.I('    class="lhcl_fakelink lhid_lic_editBtn"');b.I('    style="display:none" >');b.I("redigera");b.I("</span>");b.I('<div id="lhid_lic_editDiv" style="display:none;">');b.I('  <ul style="margin:5px 0 0;padding-left:0px;"');
b.I('      class="lhcl_license">');b.I('    <li class="lhcl_license_checkboxLabel">');b.I('      <label class="lhcl_license">');b.I('        <input type="radio" id="lhid_lic_category_c" ');b.I('         class="lhid_lic_category_c lhcl_license ');b.I('           lhcl_license_inputElement" ');b.I('         name="lhid_lic_category" />');b.I(s("Till\u00e5t inte \u00e5teranv\u00e4ndning"));b.I("      </label>\n");b.I("    </li>");b.I('    <li class="lhcl_license_checkboxLabel">');b.I('      <label class="lhcl_license">');
b.I('        <input type="radio" id="lhid_lic_category_cc" ');b.I('          class="lhid_lic_category_cc lhcl_license ');b.I('          lhcl_license_inputElement" name="lhid_lic_category" />');b.I(s("Till\u00e5t \u00e5teranv\u00e4ndning"));b.I('</label> (<a href="http://creativecommons.org/licenses/" ');b.I('          class="lhcl_license_textColor" ');b.I('          target="_blank">Creative Commons</a>)');b.I('      <div id="lhid_lic_cc_popup" style="display:none;">\n');b.I('        <ul style="list-style-type:none;">');
b.I('          <li class="lhcl_license_checkboxLabel">');b.I("            <label>");b.I('              <input type="checkbox" id="lhid_lic_cc_remix" ');b.I('                name="lhid_lic_cc_remix" ');b.I('                class="lhid_lic_cc_remix lhcl_license ');b.I('                  lhcl_license_inputElement"');b.I('                value="lhid_license_allowRemix" />');b.I(s("Till\u00e5t \u00e4ndringar och till\u00e4gg"));b.I("            </label>");b.I("            <br />");b.I("          </li>");
b.I('          <li class="lhcl_license_checkboxLabel">');b.I("            <label>");b.I('              <input type="checkbox" id="lhid_lic_cc_com" ');b.I('                  name="lhid_lic_cc_com" class="lhid_lic_cc_com ');b.I('                  lhcl_license lhcl_license_inputElement" />');b.I(s("Till\u00e5t kommersiell anv\u00e4ndning"));b.I("            <label>");b.I("            <br />");b.I("          </li>");b.I('          <li class="lhcl_license_checkboxLabel">');b.I('            <label id="lhid_lic_cc_sa_lab">');
b.I('              <input type="checkbox" id="lhid_lic_cc_sa" ');b.I('                name="lhid_lic_cc_sa" class="lhid_lic_cc_sa ');b.I('                  lhcl_license lhcl_license_inputElement" />');b.I(s("Kr\u00e4v lika delning"));b.I("            </label>");b.I("          </li>");b.I("        </ul>");b.I("      </div>");b.I('      <div class="lhid_lic_saveCancelDiv" ');b.I('          style="margin:5px 0">');b.I("      </div>");b.I('      <div id="lhid_license_resetToDefaultButton" ');b.I('          class="lhid_license_resetToDefaultButton ');
b.I('          lhcl_fakelink">');b.I(s("\u00c5terst\u00e4ll fotot till kontots standardinst\u00e4llning")+"</div>");b.I(s("Ange kontots standardinst\u00e4llningar:"));b.I('        <a href="/lh/settings#licensing" ');b.I('            class="lhcl_license_linkButton ');b.I('            lhid_license_setDefaultButton">');b.I(s("Inst\u00e4llningar")+"</a>");b.I("    </li>");b.I("  </ul>");b.I("</div>");a.innerHTML=b.toString();var c=Fo.getInstance(),d=Dc("div","lhid_lic_saveCancelDiv",a)[0],e=new Go("Spara",
c);e.Wf("gphoto-button");this.ga(e);e.U(d);this.p.e(e,[F,Fh],this.pW);var f=new w("span");K(f,"marginLeft","5px");y(d,f);var g=new Go(Zg,c);g.Wf("gphoto-button");this.ga(g);g.U(d);this.p.e(g,Fh,this.cL);h=Dc("div","lhid_license_resetToDefaultButton",a);this.p.e(h[0],B,this.dW);if(_authuser.isOwner){var h=Dc("span","lhid_lic_editBtn",a);this.p.e(h[0],F,this.QM)}h=Dc("input","lhid_lic_category_c",a);this.p.e(h[0],B,this.yo);h=Dc("input","lhid_lic_category_cc",a);this.p.e(h[0],B,this.yo);h=Dc("input",
"lhid_lic_cc_remix",a);this.p.e(h[0],B,this.yo);h=Dc("input","lhid_lic_cc_com",a);this.p.e(h[0],B,this.yo);h=Dc("input","lhid_lic_cc_sa",a);this.p.e(h[0],B,this.yo)};
Js.prototype.QM=function(){this.lo(true)};
Js.prototype.lo=function(a){var b=v("lhid_lic_editDiv");H(b,a);var c=v("lhid_lic_editButton");H(c,!a)};
Js.prototype.W=function(a){Js.b.W.call(this,a);if(a&&a.Zm()){var b=this.ym();this.xH(this.j.Gu(),b);var c=a.isOwner(this.sd.tm().authUser),d=v("lhid_lic_editButton");H(d,c)}};
Js.prototype.ym=function(){var a=new Is;a.rb_c=v("lhid_lic_category_c");a.rb_cc=v("lhid_lic_category_cc");a.lab_c=v("lhid_lic_text_c");a.lab_cc=v("lhid_lic_text_cc");a.div_cc=v("lhid_lic_cc_popup");a.img_c=v("lhid_lic_img_c");a.img_by=v("lhid_lic_img_by");a.img_nc=v("lhid_lic_img_nc");a.img_nd=v("lhid_lic_img_nd");a.img_sa=v("lhid_lic_img_sa");a.chk_remix=v("lhid_lic_cc_remix");a.chk_sa=v("lhid_lic_cc_sa");a.lab_sa=v("lhid_lic_cc_sa_lab");a.chk_com=v("lhid_lic_cc_com");return a};
Js.prototype.yo=function(){var a=this.ym(),b=Bs(a);this.GI(b,a)};
Js.prototype.GI=function(a,b){Fs(a,b);var c=v("lhid_license_resetToDefaultButton");H(c,this.j.iE())};
Js.prototype.xH=function(a,b){Gs(a,b);var c=v("lhid_license_resetToDefaultButton"),d=this.j.iE()!=0;H(c,d)};
Js.prototype.pW=function(){var a=this.ym(),b=Bs(a),c=["iid="+this.j.id,"opt=SET","lic="+b],d=_setLicensePath+"&"+c.join("&"),e=m(this.qW,this,a);Ek(d,function(){var f=this.kc();e(f,b)})};
Js.prototype.qW=function(a,b,c){b.indexOf("<result>success</result>")==-1&&alert($g);this.j.hH(c);this.j.iH(true);this.GI(c,a);Js.prototype.lo(false)};
Js.prototype.cL=function(){var a=this.ym();Gs(this.j.Gu(),a);this.lo(false)};
var Ks=/<result>(.*)<\/result>/,Ls=/<accountlic>(.*)<\/accountlic>/;Js.prototype.dW=function(){var a=["iid="+this.j.id,"opt=DELETE"],b=_setLicensePath+"&"+a.join("&"),c=m(this.eW,this);Ek(b,function(){var d=this.kc(),e=d.match(Ks)[1],f=d.match(Ls),g=f?f[1]:"";c(e,g)})};
Js.prototype.eW=function(a,b){a!="success"&&alert($g);b!=""&&this.j.hH(b);this.j.iH(false);var c=this.ym();this.xH(this.j.Gu(),c);this.lo(false)};var Ms=function(a){var b=a.status;if(!!!b&&a.target&&a.target.ye)b=a.target.ye();if(b>=0&&b<400)return null;if(b==403)return"Servern nekade beh\u00f6righet f\u00f6r den h\u00e4r \u00e5tg\u00e4rden. Se efter att du fortfarande \u00e4r inloggad p\u00e5 kontot och f\u00f6rs\u00f6k igen.";if(b==404)return"Det verkar som om objektet du beg\u00e4rde har hamnat fel. Kontrollera Internetanslutningen, h\u00e5ll tummarna och f\u00f6rs\u00f6k igen.";if(b>=500)return Ug+"\n"+("Fel: "+b);return"N\u00e5got ovanligt har intr\u00e4ffat. F\u00f6rhoppningsvis n\u00e5got s\u00e5 ovanligt att du aldrig mer kommer att se den h\u00e4r dialogrutan.\n"+
("Fel: "+b)},
Ns=function(a){var b=a.text;if(a.target&&a.target.kc)b=a.target.kc();if(b.indexOf("success")<0){var c=b.replace(/\<[^>]*\>/g,"");return c}return null},
Os=function(a){var b=Ms(a);b||(b=Ns(a));b&&alert(b);return!!b};function Ps(a,b,c,d,e,f){this.wa=a;this.Yc=c?c:_photo;this.b3=e;var g={lhui_albumtitle:lg(_album.title),lhui_indexbox:G("indexbox"),lhui_infoheader:G("infoheader"),lhui_infobox:G("infobox"),lhui_exifbox:G("exifbox"),lhui_downloadlink:G("download"),lhui_albumlink:G("lhid_viewalbum"),lhui_slideshowlink:G("slideshow"),lhui_togglelink:G("toggle"),lhui_links:G("links")};g.lhui_slideshow_link_markup=d?"":tg('<a href="#" id="{lhui_slideshowlink}" onclick="_d(\'hideSlideshow\');">Bildspel</a><br />',g);var h=
Qs;g.flash_str=_features.newStrings?"You need Adobe\u00ae Flash\u00ae Player 7 or higher to watch videos.":"Du m\u00e5ste ha Flash 7 eller h\u00f6gre f\u00f6r att titta p\u00e5 videor.";this.g=vg(h,g);b.appendChild(this.g);this.wS=v(g.lhui_indexbox);this.zS=v(g.lhui_infoheader);this.yS=v(g.lhui_infobox);this.Eh=v(g.lhui_exifbox);this.bu=v(g.lhui_downloadlink);this.ez=v(g.lhui_albumlink);this.fZ=d?null:v(g.lhui_slideshowlink);f&&H(v(g.lhui_links),false);this.f2=v(g.lhui_togglelink);this.lI=g.lhui_togglelink;
yg(this.lI,m(this.CJ,this));this.FH=false;var i=document.getElementById("hdf_profile");if(i)i.innerHTML+='<div id="debug_meta_rss"></div>';_features.geotagging&&Rs.push(["latitude","Latitud"],["longitude","Longitud"])}
Ps.prototype.Da=function(){this.g&&Oc(this.g);this.icon&&this.icon.close();this.lI&&zg(this.lI);for(var a in this)this[a]=null};
Ps.prototype.Us=function(a){this.uc=a;var b=this.Yc[a];if(!b)return;b.album=b.album||_album;if(!ba(b.uc))b.uc=a;this.hX(b)};
Ps.prototype.uP=function(){return(this.hg?this.hg.album:null)||_album};
Ps.prototype.xP=function(){return this.hg?this.hg.user:_user};
Ps.prototype.hX=function(a){this.hg=a;if(_photo&&_photo.length&&this.wS)this.wS.innerHTML="Foto "+(a.uc+1+(" av "+_photo.length));this.Di(a.B||null);if(a.vsurl){this.bu.innerHTML="";v("lhid_flashMsg").style.display=lp?"none":""}else{this.bu.href=a.s+"?imgdl=1";z(this.bu,"H\u00e4mta foto");v("lhid_flashMsg").style.display="none"}H(this.bu,a.dl);var b=a.album;if(this.ez&&b){z(this.ez,"Visa album");this.ez.href=b.link}if(this.fZ)this.fZ.href=location.href.replace(/#/,"#s")};
Ps.prototype.Di=function(a){if(!a||!a.UR()){if(!this.Of)this.Of=vg(Ss,{});kg(this.yS,this.Of);this.Xy(null);return}var b=v("debug_meta_rss");if(b)b.innerHTML=tg('<a href="/lh/rssPhoto?uname={username}&amp;iid={id}&js=1">RSS</a><br />',{username:_user.name,id:a.N()});var c=a.aC().time||a.getDate();/[^0-9]/.test(c)||(c=Ts(c));this.xP();this.uP();var d=a.eQ()+"&times;"+a.zu()+" bildpunkter &#8211; "+(Math.round(a.EO()/1024)+"KB");this.yS.innerHTML=tg('<div class="gphoto-sidebar-photoinfo">{datestring}<br />{sizestring}<br /></div>',
{datestring:c,sizestring:d});a.co("title",a.DO());if(this.zS)this.zS.innerHTML=a.nc()?"Information om videon":"Fotoinformation";if(a.VR()){a.co("latitude",a.WO());a.co("longitude",a.dP())}else{a.co("latitude",null);a.co("longitude",null)}this.Xy(a.aC())};
Ps.prototype.Xy=function(a){if(a){if(a.exposure){var b=parseFloat(a.exposure);if(b&&b<=0.5)a.exposure="1/"+Math.round(1/b)}var c=a.focalLength||a.focallength;if(c){var d=parseFloat(c);if(d)a.focalLength=Math.round(d*10)/10}if(a.flash)a.flashused=a.flash=="true"?"Ja":"Nej";if(_features.geotagging){var e=parseFloat(a.latitude),f=parseFloat(a.longitude);if(isNaN(e*f)){a.latitude=null;a.longitude=null}else{e=e.toFixed(6);f=f.toFixed(6);a.latitude=e<0?-e+"&deg; S":e+"&deg; N";a.longitude=f<0?-f+"&deg; V":
f+"&deg; \u00d6"}}}var g=[];for(var h=0;h<Rs.length;h++){var i=Rs[h],j=i[0],k=i[1],o="";if(a){o=a[j];if(!o||o=="0"||o=="0.0")o="saknas";else{if(i.length>=3)o=tg(i[2],{s:o});if(j!="latitude"&&j!="longitude")o=s(o);o="<em>"+Tk(o)+"</em>"}}g.push(s(k)+": "+o)}var r='<div class="lhcl_exifbox">'+g.join("<br />")+"</div>";Mc(this.Eh);this.Eh.innerHTML=r};
Ps.prototype.CJ=function(){var a=this.Eh,b=this.f2;if(!(a&&b))return;if(this.FH){a.className="lhcl_exifoff";b.innerHTML="mer information";this.FH=false}else{a.className="gphoto-sidebar-photoinfo";b.innerHTML="mindre information";this.FH=true}};
var Ts=function(a){var b=new Ij;b.setTime(Number(a));return Mf(2,b)},
Rs=[["title","Filnamn"],["make","Kamera"],["model","Modell"],["iso","ISO"],["exposure","Exponering","{s} sec"],["fstop","Bl\u00e4ndare","f/{s}"],["focalLength","Br\u00e4nnvidd","{s}mm"],["flashused","Blixt anv\u00e4ndes"]],Ss='<div class="gphoto-sidebar-photoinfo">'+al+"<br />&nbsp;</div>",Qs='<div class="lhcl_sidebox lhcl_hideoverflow"><div class="lhcl_title" id="{lhui_infoheader}">Fotoinformation</div><div id="{lhui_infobox}">'+Ss+'</div><div class="lhcl_exifoff" id="{lhui_exifbox}"></div><div style="text-align:right"><span class="gphoto-more-less lhcl_fakelink" id="{lhui_togglelink}" onclick="_d(\'{lhui_togglelink}\')">mer information</span></div><div id="{lhui_links}"><a href="#" id="{lhui_downloadlink}">H\u00e4mta foto</a><br />{lhui_slideshow_link_markup}</div><div id="lhid_flashMsg" class="lhcl_output" style="display:none;"><span>{flash_str}</span><br /><br /><a href="http://www.macromedia.com/go/getflashplayer">H\u00e4mta Flash</a></div></div>';var Us=function(a){qs.call(this,a);if(_features.creativecommons){this.qj=new Js(this.sd);this.ga(this.qj)}};
p(Us,qs);Us.prototype.o=function(){var a=v("lhid_tools");this.Jd=new Ps(null,a,null,null,null,true);this.g=this.Jd.g;if(_features.creativecommons){this.Y0=this.Am("license");this.qj.U(this.Y0.element)}this.Fq=this.Am("links");H(this.Fq.element,false);var b=w("div",{"class":"gphoto-photo-actions"});y(this.Fq.element,b);if(this.Xc=="a"){this.sn("Ange som framsida p\u00e5 albumet",this.nb);this.sn("Kopiera till ett annat album",this.zL);this.sn("Flytta till ett annat album",this.yn);this.qM=this.sn(Tg,
this.cm);this.tM=this.sn(Sg,this.cm)}var c=w("div");c.innerHTML=Vs;K(c,"padding-top","10px");y(this.Fq.element,c);this.p.e(v("lhid_snippet_size"),"change",this.gh);v("lhid_snippet_link").onchange=m(this.gh,this);this.p.e(v("lhid_link"),"blur",this.gh);this.p.e(v("lhid_snippet"),"blur",this.gh);this.gh();this.show(false);Oc(this.g)};
Us.prototype.sn=function(a,b){var c=w("div",{"class":"lhcl_fakelink"});z(c,a);this.p.e(c,F,b);y(this.Fq.element,c);return c};
Us.prototype.D=function(){Us.b.D.call(this);this.Jd.Da()};
Us.prototype.W=function(a){Us.b.W.call(this,a);if(a){a.Zm()||this.Jd.Di(null);this.zp.Nf(a,m(function(){this.Jd.Di(a);H(this.Fq.element,this.sd.isOwner(a));this.sd.isOwner(a)&&this.gh();_features.creativecommons&&this.qj.W(a)},
this))}else this.Jd.Di(null)};
Us.prototype.zL=function(){this.j&&LH_copyDialog([this.j.id])};
Us.prototype.yn=function(){var a=true;if(!this.j)return;if(_album&&_album.isdefault&&_features.newStrings)a=confirm("Vill du verkligen flytta detta foto? Om du flyttar det visas det inte p\u00e5 n\u00e5gon annan webbplats.");else if(_album&&_album.blogger)a=confirm("Vill du flytta den h\u00e4r bilden? Den visas inte l\u00e4ngre i bloggen om du flyttar den.");a&&LH_moveDialog([this.j.id])};
Us.prototype.cm=function(){this.j&&this.j.pp()};
Us.prototype.c_=function(a,b){if(!Os(b)){this.j.reload(function(){});
this.dispatchEvent(new wm(this.j.album.id,a))}};
Us.prototype.nb=function(){var a=["selectedphotos="+this.j.id,"noredir=true","optgt=BANNER","uname="+_user.name,"aid="+this.j.album.id],b=this.j.Lh();Ws.ih(_selectedPhotosPath,m(this.c_,this,b),a.join("&"))};
Us.prototype.gh=function(){v("lhid_link").value=window.location.href.toString();var a=v("lhid_snippet_size").value,b=v("lhid_snippet_link");if(this.j){var c=this.j.s,d=c.lastIndexOf("/"),e=c.substr(0,d),f=c.substr(d),g={l:this.j.vm(),s:e+"/s"+a+f,al:this.j.album.link,a:this.j.album.name};v("lhid_snippet").value=tg(b.checked?'<a href="{l}"><img src="{s}" /></a>':'<table style="width:auto;"><tr><td><a href="{l}"><img src="{s}" /></a></td></tr><tr><td style="font-family:arial,sans-serif; font-size:11px; text-align:right">Fr\u00e5n <a href="{al}">{a}</a></td></tr></table>',
g);if(this.qM&&this.tM){H(this.qM,!this.j.nc());H(this.tM,this.j.nc())}}};
var Vs='<img src="img/transparent.gif" class="SPRITE_link lhcl_spriting_alignMiddle lhcl_spriting_marginRight5" /><span style="vertical-align:middle">L\u00e4nk</span><br><input id="lhid_link" class="gphoto-sidebar-inputbox" type="text"  onclick="this.select()"></input><div id="lhid_embed_form" style="padding-top:5px"><img src="img/transparent.gif" class="SPRITE_embed lhcl_spriting_alignMiddle"> B\u00e4dda in bild<br><input onclick="this.select()" class="gphoto-sidebar-inputbox" type="text" id="lhid_snippet" /><div class="gphoto-embed-options">V\u00e4lj storlek<select id="lhid_snippet_size"><option value="144">Miniatyr '+
Xg(144)+'</option><option value="288">Liten '+Xg(288)+'</option><option value="400">Mellanstor '+Xg(400)+'</option><option value="800">Stor '+Xg(800)+'</option></select></div><input type="checkbox" id="lhid_snippet_link"/>D\u00f6lj albuml\u00e4nk<br /></div>';var Xs=function(a){L.call(this);this.og=a;this.Aa=a.CO();this.ea=a.zk();this.p=new I(this);this.wb=new Qh(document);this.cA={};this.Oc=[];this.yv=v("lhid_indexbox");this.tt=v("lhid_backlink");this.uz=v("lhid_backlink_msg");this.zr=this.Ol("previous");this.gr=this.Ol("next");this.vs=this.fK("streamtoggle");this.nl=this.Ol("rotate-ccw");this.pl=this.Ol("rotate-cw");this.Fo=this.Ol("zoom-on");this.Um=false;var b=Uf("_lh_hq");if(b)this.ij=true;this.yM()};
p(Xs,L);Xs.prototype.J=qe("gphoto.FeedNavBar");Xs.prototype.qp=0;Xs.prototype.ij=false;Xs.prototype.Ol=function(a){var b=new Go(w("div",{"class":"goog-inline-block SPRITE_"+a,id:"lhid_"+a}),Fo.getInstance());b.Wf("lhcl_"+a);this.ga(b);return b};
Xs.prototype.fK=function(a){var b=w("div",{"class":"goog-inline-block lhcl_"+a,id:"lhid_"+a}),c=new Go(b,Fo.getInstance());c.Wf("lhcl_"+a);this.ga(c);return c};
Xs.prototype.nh=function(a,b){var c=this.cA[a.N()];if(!c){c=[];this.cA[a.N()]=c}c.push(b)};
Xs.prototype.ra=function(a){L.prototype.ra.call(this,a);v("lhid_leftnav");var b=v("lhid_midnav"),c=v("lhid_rightnav");this.zr.U(b);this.gr.U(b);this.vs.U(c);this.Fo.U(c);this.pl.U(c);this.nl.U(c)};
Xs.prototype.A=function(){L.prototype.A.call(this);this.p.e(this.zr,Fh,this.fF);this.p.e(this.gr,Fh,this.eF);this.p.e(this.nl,Fh,this.mW);this.p.e(this.pl,Fh,this.nW);this.p.e(this.Fo,Fh,this.Cs);this.p.e(this.vs,Fh,this.TZ);this.p.e(this.og,Ys,this.bF);this.p.e(this.ea,Gp,this.dy);this.p.e(this.ea,Fp,this.dy);this.p.e(this.wb,"key",this.dR);this.p.e(l,Xf,m(this.du,this,false));this.p.e(l,Yf,m(this.du,this,true));this.bF()};
Xs.prototype.dR=function(a){if(!Zs(a)&&this.qp==0)switch(a.keyCode){case 37:case 75:this.fF();a.preventDefault();break;case 39:case 74:this.eF();a.preventDefault();break;case 85:var b=window.location.href.replace(/#.*$/,"#");window.location.href=b;a.preventDefault();break}};
var Zs=function(a){if(a.altKey||a.ctrlKey||a.metaKey)return true;var b=a.target.nodeName.toLowerCase();if(b=="button"||b=="input"||b=="select"||b=="textarea")return true;return false};
Xs.prototype.D=function(){this.p.ya();L.prototype.D.call(this)};
Xs.prototype.es=function(a,b){var c=this.cA[a.N()];if(c){var d=0;for(var e=0;e<c.length;++e){var f=c[e];f&b&&++d}var g=d==c.length;H(a.g,g)}};
Xs.prototype.bF=function(){var a=this.og.Yd();if(a==0)return;var b=!!(a&4);this.du(b);this.Vd(m(function(d){this.es(d,a)},
this));this.dy();this.yv&&H(this.yv,b);if(this.tt&&this.uz){if(b){this.tt.href="javascript:void 0";D(this.tt,F,function(d){d.preventDefault();$s()});
var c=this.og.Yb().Za();c.hd()!="a"?z(this.uz,"Tillbaka till alla resultat"):z(this.uz,"Visa album")}H(this.tt,b)}this.Um&&this.Cs()};
var $s=function(){qn.startNewAjaxTimer("1up_list");window.location.href=window.location.href.replace(/#.*$/,"#")};
Xs.prototype.show=function(a){this.g&&H(this.g,a)};
Xs.prototype.Rf=function(a){this.Um&&this.Cs();var b=this.ea.Cd(),c=this.ea.Np(),d=Zh(b+a,0,c-1);if(b!=d){qn.startNewAjaxTimer("1up_1up");this.J.da("Navigate to index "+d);this.ea.Ij(d)}};
Xs.prototype.dy=function(){var a=this.ea.Cd();this.VM(a);this.yv&&z(this.yv,"Foto "+(a+1+(" av "+this.Aa.Qa().gy())));var b=this.Aa.Ag();if(b&&b!=Zj){var c=b.nc(),d=b.xD();this.Fo.Ha(!c);var e=b.aT();this.nl.Ha(e&&!c);this.pl.Ha(e&&!c);if(c){H(this.nl.f(),false);H(this.pl.f(),false);H(this.Fo.f(),false)}else{var f=this.og.Yd();this.es(this.nl,f);this.es(this.pl,f);this.es(this.Fo,f)}H(this.vs.f(),c&&d);if(c){this.HI();var g="stdvideo";if(d&&this.ij)g="hqvideo";this.og.dispatchEvent(g)}}};
Xs.prototype.yM=function(){this.zr.Ha(false);this.gr.Ha(false)};
Xs.prototype.du=function(a){if(a&&this.qp>0)this.qp--;else a||this.qp++};
Xs.prototype.VM=function(a){this.zr.Ha(a>0);this.gr.Ha(a+1<this.ea.Np())};
Xs.prototype.fF=function(){this.Rf(-1)};
Xs.prototype.eF=function(){this.Rf(1)};
Xs.prototype.mW=function(){this.IG("ROTATE270")};
Xs.prototype.nW=function(){this.IG("ROTATE90")};
Xs.prototype.IG=function(a){this.Um&&this.Cs();if(this.Aa.Ag().nc())return;this.og.dispatchEvent("rotate");var b=this.Aa.Ag(),c=["selectedphotos="+b.id,"optgt="+a,"uname="+b.user.name,"aid="+b.album.id,"noredir=true"],d=_selectedPhotosPath+"&"+c.join("&");Ek(d,m(Xs.prototype.Om,this),"POST")};
Xs.prototype.Cs=function(){var a=v("lhid_zoom-on"),b=v("lhid_zoom");if(this.Um){H(b,false);vc(a,"SPRITE_zoom-off");uc(a,"SPRITE_zoom-on");this.og.dispatchEvent("zoomout")}else if(!this.Aa.Ag().nc()){z(b,"F\u00f6rstoring. Flytta bilden genom att klicka och dra.");H(b,true);vc(a,"SPRITE_zoom-on");uc(a,"SPRITE_zoom-off");this.og.dispatchEvent("zoomin")}this.Um=!this.Um};
Xs.prototype.TZ=function(){this.ij=!this.ij;this.HI();var a=this.ij?"hqvideo":"stdvideo";this.og.dispatchEvent(a);this.ij?Tf("_lh_hq","1"):Wf("_lh_hq")};
Xs.prototype.HI=function(){z(this.vs.f(),this.ij?"View standard video":"View HQ video")};
Xs.prototype.Om=function(){var a=this.Aa.Ag();a.reload(m(Xs.prototype.nD,this,true))};
Xs.prototype.nD=function(a){var b={type:df,rotated:!!a};this.og.dispatchEvent(b)};var at=function(){return pl.call(this)};
p(at,pl);ga(at);at.prototype.o=function(a){return a.O.o("div",{"class":this.$()+" goog-inline-block"},"\u00a0")};
at.prototype.va=function(a,b){b=at.b.va.call(this,a,b);uc(b,"goog-inline-block");return b};
at.prototype.$=function(){return"goog-toolbar-separator"};var bt=function(){sl.call(this)};
p(bt,sl);ga(bt);bt.prototype.dd=function(){return"toolbar"};
bt.prototype.Xi=function(a){return a.tagName=="HR"?new rl(at.getInstance()):bt.b.Xi.call(this,a)};
bt.prototype.$=function(){return"goog-toolbar"};
bt.prototype.tu=function(){return tl};var ct=function(a,b,c){T.call(this,b,a||bt.getInstance(),c)};
p(ct,T);var dt=function(){Co.call(this)};
p(dt,Co);ga(dt);var et="__goog_wrapper_div";if(xb)dt.prototype.Sb=function(a,b){var c=dt.b.Ja.call(this,a&&a.firstChild);c&&Pc(this.createCaption(b,Bc(a)),c)};
dt.prototype.Ja=function(a){var b=dt.b.Ja.call(this,a&&a.firstChild);if(xb&&b&&b[et])b=b.firstChild;return b};
dt.prototype.va=function(a,b){var c=Ec("*","goog-menu",b)[0];if(c){H(c,false);y(Ac(c).body,c);var d=new Cl;d.va(c);a.wx(d)}return dt.b.va.call(this,a,b)};
dt.prototype.Rd=function(a,b){return dt.b.Rd.call(this,[this.createCaption(a,b),this.LL(b)],b)};
dt.prototype.createCaption=function(a,b){var c={"class":"goog-inline-block "+this.$()+"-caption"};if(vh&&uh(a)){c[et]=true;return b.o("div",c,w("div",null,a))}else return b.o("div",c,a)};
dt.prototype.LL=function(a){return a.o("div",{"class":"goog-inline-block "+this.$()+"-dropdown"},"\u00a0")};
dt.prototype.$=function(){return"goog-menu-button"};var ft=function(a,b,c,d){Go.call(this,a,c||dt.getInstance(),d);this.Wg(64,true);b&&this.wx(b);this.Ta=new bi(500)};
p(ft,Go);ft.prototype.oK=true;ft.prototype.XS=false;ft.prototype.A=function(){ft.b.A.call(this);this.ta&&this.To(this.ta,true);Nh(this.f(),"haspopup","true")};
ft.prototype.D=function(){ft.b.D.call(this);if(this.ta){this.Tb(false);this.ta.D();this.To(this.ta,false);var a=this.ta.f();a&&Oc(a)}};
ft.prototype.C=function(){ft.b.C.call(this);if(this.ta){this.ta.i();delete this.ta}this.Ta.i()};
ft.prototype.Ae=function(a){ft.b.Ae.call(this,a);if(this.Jf()){this.Tb(!this.isOpen());this.ta&&this.ta.Lj(this.isOpen())}};
ft.prototype.Fk=function(a){ft.b.Fk.call(this,a);this.ta&&!this.Jf()&&this.ta.Lj(false)};
ft.prototype.Dj=function(){this.setActive(false);return true};
ft.prototype.HQ=function(a){this.ta&&this.ta.Ca()&&!this.pf(a.target)&&this.Tb(false)};
ft.prototype.pf=function(a){return a&&Uc(this.f(),a)||this.ta&&this.ta.pf(a)};
ft.prototype.Lm=function(a){if(this.ta&&this.ta.Ca()){var b=this.ta.Fc(a);if(a.keyCode==27){this.Tb(false);return true}return b}if(a.keyCode==40||a.keyCode==38||a.keyCode==32){this.Tb(true);return true}return false};
ft.prototype.jR=function(){this.Tb(false)};
ft.prototype.kR=function(){this.Jf()||this.Tb(false)};
ft.prototype.ze=function(a){this.Iv()||this.Tb(false);ft.b.ze.call(this,a)};
ft.prototype.gP=function(){this.ta||this.wx(new Cl(this.O));return this.ta||null};
ft.prototype.wx=function(a){var b=this.ta;if(a!=b){if(b){this.Tb(false);this.la()&&this.To(b,false);delete this.ta}if(a){this.ta=a;a.xl(this);a.Y(false);a.SG(this.Iv());this.la()&&this.To(a,true)}}return b};
ft.prototype.oe=function(a){this.gP().oe(a)};
ft.prototype.Y=function(a,b){var c=ft.b.Y.call(this,a,b);c&&!this.Ca()&&this.Tb(false);return c};
ft.prototype.Ha=function(a){ft.b.Ha.call(this,a);this.jb()||this.Tb(false)};
ft.prototype.cE=function(){return this.oK};
ft.prototype.Iv=function(){return this.XS};
ft.prototype.Hx=function(){this.Tb(true)};
ft.prototype.Tb=function(a){ft.b.Tb.call(this,a);if(this.ta){if(a){this.ta.la()||this.ta.U();this.XF();this.ta.rl(-1)}else{this.setActive(false);this.ta.Lj(false)}this.ta.Y(a);this.wK(a)}};
ft.prototype.XF=function(){var a=this.cE()?7:8,b=new Pl(this.f(),a,true),c=this.ta.f();if(!this.ta.Ca()){c.style.visibility="hidden";H(c,true)}var d=this.cE()?5:6;b.Xa(c,d,new Qf(0,0,0,0));if(!this.ta.Ca()){H(c,false);c.style.visibility="visible"}};
ft.prototype.Hn=function(){this.XF()};
ft.prototype.To=function(a,b){var c=this.tg(),d=b?c.e:c.ka;d.call(c,a,Fh,this.jR);d.call(c,a,"highlight",this.dq);d.call(c,a,Eh,this.hq)};
ft.prototype.dq=function(a){Nh(this.f(),Lh,a.target.f().id)};
ft.prototype.hq=function(){this.ta.Mh()||Nh(this.f(),Lh,null)};
ft.prototype.wK=function(a){var b=this.tg(),c=a?b.e:b.ka;c.call(b,this.O.Mb(),F,this.HQ,true);this.Iv()&&c.call(b,this.ta,"blur",this.kR);c.call(b,this.Ta,"tick",this.Hn);a?this.Ta.start():this.Ta.stop()};
ll("goog-menu-button",function(){return new ft(null)});var gt=function(){dt.call(this)};
p(gt,dt);ga(gt);var ht="goog-toolbar-menu-button";gt.prototype.$=function(){return ht};var it=function(a,b,c,d){ft.call(this,a,b,c||gt.getInstance(),d)};
p(it,ft);ll(ht,function(){return new it(null)});var jt=function(a){Hr.call(this,1,a)};
p(jt,Hr);jt.prototype.ri=function(a,b,c,d){var e=[b],f="Klicka p\u00e5 ansikten som inte \u00e4r "+('"'+(a+'".')),g=Lc('<span><span class="lhcl_FacesMgrDlg-title">'+s("R\u00e4tta felaktiga namnetiketter:")+'</span><span class="lhcl_FacesMgrDlg-title-subject-name"> '+s(a)+"</span></span>"),h=Lc("<span>"+s(f)+"</span>");jt.b.ri.call(this,g,h,false,e,c,d)};
jt.prototype.ha=function(){return"gphoto.sapphire.ui.TaggedFacesManagerDialog"};function kt(){jp.kf(this);yg("ClearCart",m(this.$I,this))}
kt.prototype.Da=function(){jp.mf(this);zg("ClearCart")};
kt.prototype.$I=function(){if(confirm("Vill du rensa best\u00e4llningen?")){var a=v("lhid_clearform"),b=new N(_updateCartPath);b.ua("cartop","clear");b.ua("rtok",Uf("_rtok",""));a.action=b.toString();a.submit()}};
function lt(a){jp.kf(this);var b={lhui_ok_func:G("func"),lhui_cancel_func:G("func")};this.B=b;this.nb=x("div");this.nb.className="lhcl_cover";document.body.appendChild(this.nb);this.lf();this.Fj=m(this.lf,this);bg(window,"resize",this.Fj);window.scrollTo(0,0);this.tb=vg('<div class="lhcl_dialog" style="width:400px; top:100px"><div class="lhcl_dialog_body"><form id="lhid_chooseProviderForm"><div class="lhcl_selectProviderTitle">V\u00e4lj en leverant\u00f6r i listan nedan:</div><div style="padding:0 25px 15px 0;">'+
a+mt,this.B);document.body.insertBefore(this.tb,document.body.firstChild);var c=Uf("printProvider");if(!c)document.getElementById("lhid_accept_provider").disabled=true;yg(this.B.lhui_ok_func,m(this.WI,this));yg(this.B.lhui_cancel_func,m(this.Hy,this));this.lr=ag(this,this.Qy);bg(document,"keydown",this.lr)}
lt.prototype.Qy=function(a){a.keyCode==27&&this.Hy()};
lt.prototype.Da=function(){jp.mf(this);if(this.B){zg(this.B.lhui_ok_func);zg(this.B.lhui_cancel_func)}cg(document,"keydown",this.lr);cg(window,"resize",this.Fj);nt=false;for(var a in this)this[a]=null};
lt.prototype.$c=function(){Oc(this.tb);Oc(this.nb);Ag("restoreVideo");this.Da()};
lt.prototype.lf=function(){var a=Math.max(document.body.offsetHeight,document.body.scrollHeight);a=Math.max(a,document.body.clientHeight);a=Math.max(a,document.documentElement.clientHeight);this.nb.style.height=a+"px"};
lt.prototype.Hy=function(){this.$c()};
function ot(a){Tf("printProvider",a,2592000);var b=x("img");b.width=150;b.height=50;b.src="/lh/providerLogo/"+a;var c=v("lhid_currentprovider");kg(c,b);v("lhid_hasprovider").style.display="";v("lhid_noprovider").style.display="none";c=v("lhid_instructions3");if(c){v("lhid_instructions3_none").style.display="none";if(cartPhotoCount>0){c.style.display="";v("lhid_instructions").className="lhcl_cartinstructions lhcl_instep3"}}}
lt.prototype.WI=function(){var a=v("lhid_chooseProviderForm").provider;if(typeof a.length=="undefined")ot(a.value);else for(var b=0;b<a.length;b++)if(a[b].checked){ot(a[b].value);break}this.$c()};
function pt(){var a=0,b="";for(var c=1;c<=4;c++){var d=Uf("_cart"+c);if(d)b+=d}var e=b.split("@");if(e.length>=2){var f=e[1].match(/\:/g);if(f)a=f.length}if(a>0){v("lhid_cartDiv").style.display="";v("lhid_cartCount").innerHTML=a}}
var nt=false,mt='</div><table style="width:100%"><tr><td style="width:50%; text-align:right;"><input type="button" value="'+Zg+'" onclick="_d(\'{lhui_cancel_func}\')"/></td><td><input id="lhid_accept_provider" type="button" value="OK" onclick="_d(\'{lhui_ok_func}\')"/></td></tr></table></form></div></div>';var qt=function(){Co.call(this)};
p(qt,Co);ga(qt);var rt="goog-toolbar-button";qt.prototype.$=function(){return rt};var st=function(a,b,c){Go.call(this,a,b||qt.getInstance(),c)};
p(st,Go);ll(rt,function(){return new st(null)});var tt=function(a,b,c,d){this.id=a;this.msg=b;this.txtClass=c;this.iconClass=d};
tt.prototype.Rd=function(){return this.bM()};
tt.prototype.bM=function(){return new st(w("div",{id:this.id,"class":"goog-toolbar-button"},w("div",{"class":"goog-inline-block "+this.iconClass},"\u00a0"),w("div",{"class":"goog-inline-block "+this.txtClass},this.msg)))};var ut=function(a,b){ve.call(this);this.jg=this.EY();this.cG=this.FY();this.kk=this.DY();this.Oc=this.GY(a);this.r=new I(this);this.J2=b};
p(ut,ve);ut.prototype.i=function(){this.r.i()};
ut.prototype.GY=function(a){return{SLIDESHOW:new vt("lhid_slideshow","Bildspel","lhcl_toolbar_text","SPRITE_slideshow lhcl_spriting_alignBottom",["a","s","gt","pgt","ct","ft","pgp","gp","ap"],m(this.Cn,this,a),a),SHARE:new vt("lhid_share","Dela","lhcl_toolbar_text","SPRITE_share lhcl_spriting_alignBottom",["a","s","gt","pgt","ct","ft","pgp","gp","pg","ap"],m(this.LY,this),a),DOWNLOAD:new vt("lhid_dowload","H\u00e4mta","lhcl_toolbar_text",null,["a"],m(this.kw,this),a,this.kk),PRINTS:new vt("lhid_prints",
"Utskrifter","lhcl_toolbar_text",null,["a"],m(this.kw,this),a,this.cG),EDIT:new vt("lhid_editMenu","Redigera","lhcl_toolbar_text",null,["a","pgp","gp"],m(this.kw,this),a,this.jg)}};
ut.prototype.EY=function(){return{ALBUM_PROPERTIES:{id:"lhid_editAlbumPropertiesButton",msg:"Egenskaper f\u00f6r album",enabled:m(this.ZK,this)},ALBUM_COVER:{id:"lhid_albumCoverButton",msg:"Albumomslag",enabled:m(this.qr,this)},ALBUM_MAP:{id:"lhid_albumMapButton",msg:"Albumkarta",enabled:m(this.qr,this)},CAPTIONS:{id:"lhid_editCaptionsButton",msg:"Bildtexter",enabled:m(this.qr,this)},DELETE_ALBUM:{id:"lhid_deleteAlbumButton",msg:"Ta bort album",enabled:m(this.VK,this)},DELETE_PHOTO:{id:"lhid_deletePhotoButton",
msg:Tg,enabled:m(this.pt(false),this)},DELETE_VIDEO:{id:"lhid_deleteVideoButton",msg:Sg,enabled:m(this.pt(false),this)},ORGANIZE:{id:"lhid_organizeButton",msg:"Organisera och sortera",enabled:m(this.qr,this)},EDIT_IN_PICASA:{id:"lhid_editInPicasaButton",msg:_features.PWA_NEWUI?"Edit in Picasa":"Redigera i Google Fotolabb",enabled:m(this.$K,this)},EDIT_CONTACT:{id:"lhid_editContact",msg:"Redigera kontakt",enabled:m(this.an,this)},CORRECT_NAME_TAGS:{id:"lhid_correctNameTagsButton",msg:"R\u00e4tta felaktiga namnetiketter",
enabled:m(this.an,this)}}};
ut.prototype.FY=function(){return{VIEW_ORDER:{id:"lhid_viewOrder",msg:"Visa best\u00e4llning",enabled:m(this.pt(_features.cart))},ORDER_PRINTS:{id:"lhid_orderPrints",msg:"Best\u00e4lla kopior",enabled:m(this.aL,this)}}};
ut.prototype.DY=function(){var a="H\u00e4mta till Picasa";return{TO_PICASA:{id:"lhid_downloadToPicasa",msg:a,enabled:m(this.XK,this)},TO_GPL:{id:"lhid_downloadToPhotoLab",msg:_features.PWA_NEWUI?a:"H\u00e4mta till Google Fotolabb",enabled:m(this.WK,this)},PRINT_PICASA:{id:"lhid_printWithPicasa",msg:_features.PWA_NEWUI?"Print with Picasa":"Skriv ut med Google Fotolabb",enabled:m(this.Bt,this)},COLLAGE_PICASA:{id:"lhid_collageWithPicasa",msg:"G\u00f6r ett kollage",enabled:m(this.Bt,this)},MOVIE_PICASA:{id:"lhid_movieWithPicasa",
msg:"G\u00f6r en film",enabled:m(this.Bt,this)},DOWNLOAD_PHOTO:{id:"lhid_downloadPhoto",msg:"H\u00e4mta foto",enabled:m(this.YK,this)}}};
ut.prototype.fO=function(){return this.Oc};
ut.prototype.pt=function(a){return function(){return a}};
ut.prototype.RU=function(a){return a.OI()};
ut.prototype.kw=function(a,b){for(var c in a)if(a[c].enabled(b))return true;return false};
ut.prototype.aw=function(a){return a.feedViewPage.Yd()==3};
ut.prototype.ZK=function(a){return!this.an(a)&&this.aw(a)};
ut.prototype.qr=function(a){return this.aw(a)&&this.Cn(a)&&!this.an(a)};
ut.prototype.Cn=function(a){return a.feedViewPage?this.mF(a):_album.photoCount>0};
ut.prototype.mF=function(a){var b=a.feedViewPage.Qa();return b&&b.isLoaded()&&b.gy()>0};
ut.prototype.Bt=function(a){return _album.picasa.length>0&&_picasaVersion>=3&&!(a.feedViewPage.Yd()&4)};
ut.prototype.XK=function(a){return _album.picasa.length>0&&_picasaVersion>0&&_picasaVersion<3&&!(a.feedViewPage.Yd()&4)};
ut.prototype.WK=function(a){return _album.picasa.length>0&&_picasaVersion>=3&&!(a.feedViewPage.Yd()&4)};
ut.prototype.$K=function(a){if(_features.editinpicasa&&a.feedViewPage.Yd()==5&&_picasaVersion>=3){var b=a.contextManager.Xd();return b&&!b.nc()}return false};
ut.prototype.VK=function(a){return this.aw(a)&&(!_album.blogger||_album.blogger&&!this.Cn(a))&&!this.an(a)};
ut.prototype.YK=function(a){if(_album.picasa&&a.feedViewPage.Yd()&4){var b=a.contextManager.Xd();return b&&!b.nc()}return false};
ut.prototype.aL=function(a){var b=a.contextManager.Xd(),c=a.feedViewPage.Yd()&2;return _features.cart&&ba(_updateCartPath)&&this.Cn(a)&&(c||b&&!b.nc())&&(a.OI()||_album.prints)};
ut.prototype.LY=function(a){var b=this.RU(a);return(b||!_album.unlisted)&&(this.Cn(a)||!a.feedViewPage)};
ut.prototype.an=function(a){return _features.fr&&a.feedViewPage.Yb().lc().length==1&&this.mF(a)&&(a.pageType=="pgp"||a.pageType=="gp")&&a.feedViewPage.Yd()&2&&_authuser.isOwner};
ut.prototype.hQ=function(a,b,c,d,e){switch(a){case "lhid_slideshow":var f="slideshow";if(c)f+="/"+c.id;b.feedViewPage.Yb().ff(f);break;case "lhid_share":this.KY(b,c,d,e);break;case this.cG.VIEW_ORDER.id:window.location="/lh/viewCart";break;case this.cG.ORDER_PRINTS.id:this.PU(b,c,d,e);break;case this.kk.TO_PICASA.id:case this.kk.TO_GPL.id:window.location=_album.picasa;break;case this.jg.EDIT_IN_PICASA.id:var g=new N(c.mg);g.ua("alt","atom");g.ua("imgdl","1");window.location="picasa://editimagefeed/?url="+
Pa(g.toString());break;case this.kk.PRINT_PICASA.id:var g=new N(_album.photosRss);g.ua("imgdl","1");window.location="picasa://printalbumfeed/?url="+Pa(g.toString());break;case this.kk.COLLAGE_PICASA.id:window.location="picasa://collagefeed/?url="+Pa(_album.photosRss);break;case this.kk.MOVIE_PICASA.id:window.location="picasa://makemoviefeed/?url="+Pa(_album.photosRss);break;case this.kk.DOWNLOAD_PHOTO.id:window.location=gj(c.s);break;case this.jg.ALBUM_PROPERTIES.id:new wt(5);break;case this.jg.ALBUM_MAP.id:window.location=
_album.mapLink;break;case this.jg.ORGANIZE.id:window.location=_reorderPath;break;case this.jg.CAPTIONS.id:window.location=_editCaptionsPath;break;case this.jg.ALBUM_COVER.id:b.feedViewPage.it();break;case this.jg.DELETE_ALBUM.id:this.nM();break;case this.jg.CORRECT_NAME_TAGS.id:this.PY(b);break;case this.jg.EDIT_CONTACT.id:this.SY(b);break}};
ut.prototype.KY=function(a,b,c,d){if(b&&c&4){var e="/lh/emailPhoto?uname="+b.user.name+"&iid="+b.id;window.location=e}else if(a.pageType=="a"&&c&2){var f="/lh/emailAlbum?uname="+d+"&aid="+_album.id;window.location=f}else if(c&2){var g=a.contextManager.Qa().vg(0),h=[],i=new N(g.Lh()),j=i.ab("imgmax"),k=a.contextManager.NC();if(j==null||j==0||j>400)i.ua("imgmax","400");h.push("source="+Pa(i.toString()));k&&h.push("subjectids="+Pa(k));h.push("uname="+Pa(g.user.name));h.push("continue="+Pa(window.location.toString()));
var o="/lh/emailFeedForm?"+h.join("&");window.location=o}};
ut.prototype.nM=function(){var a="Vill du radera det h\u00e4r albumet?";if(_album.isdefault)a+=" Foton i albumet utan titel tas bort fr\u00e5n andra sidor d\u00e4r de anv\u00e4nds.";if(!confirm(a))return;var b=w("form",{method:"post",action:_deleteAlbumPath},w("input",{type:"hidden",name:"aid",value:_album.id}));y(Cc().body,b);b.submit()};
ut.prototype.PU=function(a,b,c,d){var e=a.pageType=="a"&&c&2,f=m(e?this.LJ:this.aK,a.feedViewPage);Lp();var g=Uf("_rtok",""),h=["uname="+d,"noredir=true","rtok="+g];if(e)h.push("aid="+a.contextManager.zc);else b&&h.push("iid="+b.N());Ek(_updateCartPath,f,"POST",h.join("&"))};
ut.prototype.aK=function(a){if(!Ms(a)){Kp("Det h\u00e4r fotot har lagts till.",3000);pt()}};
ut.prototype.LJ=function(a){if(!Os(a))window.location="/lh/viewCart"};
ut.prototype.PY=function(a){var b=Ao();b.client.yY("uname",_authuser.name);var c=a.feedViewPage.Yb().lc(),d=new jt(Yr),e=c[0];d.ri(e.dispname,e.id,m(this.AL,this,a),c)};
ut.prototype.AL=function(a,b){if(!b||b.length==0)return;var c=Ao();c.combined.kd(c.client.lc()[Zn],b,m(this.pG,this,a))};
ut.prototype.pG=function(){window.location.hash=""};
ut.prototype.SY=function(a){var b=new Mr,c=a.feedViewPage.Yb().lc(),d=Ao(),e=new W(c[0],d);d.client.Xf(e);this.r.e(b,"edit",this.pG);b.open("edit",[e])};
var vt=function(a,b,c,d,e,f,g,h){tt.call(this,a,b,c,d,h);this.NK=f;this.SU=e;this.Q=g;this.menuItems=h};
p(vt,tt);vt.prototype.Rd=function(){return this.menuItems?this.cM():vt.b.Rd.call(this)};
vt.prototype.enabled=function(){var a=false,b=this.SU.length;for(var c=0;c<b;c++)if(this.SU[c]==this.Q.pageType){a=true;break}if(!a)return false;if(this.menuItems)return this.NK(this.menuItems,this.Q);return this.NK(this.Q)};
vt.prototype.cM=function(){var a=new Cl;a.$r(this.id);$b(this.menuItems,function(b){if(b.enabled(this.Q)){var c=new zl(b.msg);c.$r(b.id);c.bo(255,true);a.oe(c)}},
this);return new it(w("div",{"class":"goog-toolbar-menu-button"},w("div",{"class":"goog-inline-block "+this.txtClass},this.msg)),a)};var yt=function(a,b,c,d,e){L.call(this);this.Q=new xt(a,b,c,d,e);this.Ub=null;this.r=new I(this);this.by=new I(this);this.Oc=new ut(this.Q,this)};
p(yt,L);yt.prototype.A=function(){L.prototype.A.call(this);this.Q.contextManager&&this.r.e(this.Q.contextManager,"changed",this.Ks);if(this.Q.feedViewPage){this.r.e(this.Q.feedViewPage,Ys,this.Ks);this.r.e(this.Q.feedViewPage,qp,this.d_)}this.MK=v("lhid_feedToolbar");this.Ks()};
yt.prototype.Ks=function(){var a=this.Q&&this.Q.feedViewPage?this.Q.feedViewPage.Qa():null;if(a&&!a.isLoaded()){if(!this.ju)this.ju=D(a,[Uj,"noitems"],m(this.Ks,this));return}else if(this.ju){We(this.ju);this.ju=0}H(this.MK,false);if(this.Q.feedViewPage){var b=this.Q.feedViewPage.Yd(),c=this.Q.contextManager.hd();this.Q.pageType=c;this.Qb=b;if(this.Ub){this.Ub.i();this.Ub=null;this.by.ya()}this.wG();this.Ub&&this.by.e(this.Ub,Fh,this.qD)}else{this.Qb=-1;this.wG();this.Ub&&this.by.e(this.Ub,Fh,this.qD)}this.Ub&&
H(this.MK,true)};
yt.prototype.qD=function(a){var b=a.target.Bd().id;b||(b=a.target.N());this.Oc.hQ(b,this.Q,this.f0,this.Q.feedViewPage?this.Q.feedViewPage.Yd():null,this.Q.contextManager?this.Q.contextManager.av():null)};
yt.prototype.wG=function(){if(!this.Q.pageType)return;this.Ub=new ct;var a=this.Oc.fO();$b(a,function(b){if(!b.enabled(this.Q))return;this.Ub.ga(b.Rd(),true);this.Ub.ga(new rl(at.getInstance()),true)},
this);this.Ub.ef(false);this.Ub.U(this.g)};
yt.prototype.D=function(){if(this.Ub){this.Ub.i();this.Ub=null}this.r.ya();this.by.ya();this.Q.pageType=null;this.Qb=null;L.prototype.D.call(this)};
yt.prototype.d_=function(a){this.f0=a.target};
var xt=function(a,b,c,d,e){this.pageType=a;if(!this.pageType&&c)this.pageType=c.hd();this.feedViewPage=b;this.contextManager=c;this.authUserName=d||null;this.ownerName=e||null};
xt.prototype.OI=function(){return this.feedViewPage?!!(this.feedViewPage.Yd()&1):this.authUserName&&this.ownerName?this.authUserName==this.ownerName:false};var zt=function(a){L.call(this,a);this.r=new I(this);this.VV=new R};
p(zt,L);zt.prototype.xq=false;zt.prototype.ha=function(){return"gphoto.FlaggerWidget"};
zt.prototype.o=function(){zt.b.o.call(this)};
zt.prototype.A=function(){zt.b.A.call(this)};
zt.prototype.D=function(){zt.b.D.call(this);this.r.ya()};
zt.prototype.i=function(){if(!this.xb()){zt.b.i.call(this);this.r.i();this.VV.i()}};
zt.prototype.Sf=function(a,b,c,d){if(!this.xq){this.Tj=a;this.zc=b;this.Vh=c;this.bn=d}};
zt.prototype.jA=function(){if(!this.xq){var a=new V("lhcl_flagger");a.qi(cl);a.Sb(At());var b=new Tm;b.X("ok","Skicka",true);b.X($m,Zg,false,true);a.Hj(b);this.r.e(a,Vm,m(this.fD,this));a.Y(true);this.xq=true;Zf(this,Xf)}};
zt.prototype.Sz=function(a){var b=a.target;this.r.ka(b,Vm,this.fD);b.i();this.xq=false;Zf(this,Yf)};
zt.prototype.fD=function(a){if(a.type==Vm){var b=a.key;if(b=="ok"){var c=this.GW(a);if(c==Qj){this.dispatchEvent("gphoto_flag_sent");return this.Sz(a)}else if(c==Rj)return false}}this.dispatchEvent("gphoto_flag_canceled");this.Sz(a)};
zt.prototype.GW=function(a){var b=ir(a.target.Ja().firstChild),c=Md(b,"reason"),d=Md(b,"msg"),e=Ja(String(d)),f;if(!c)f="Du m\u00e5ste v\u00e4lja n\u00e5gon av kategorierna.";else if(e.length>200)f="Maxl\u00e4ngden f\u00f6r flaggningsmeddelanden \u00e4r "+(200+(" tecken. Du har anv\u00e4nt "+(e.length+" tecken. Redigera meddelandet och f\u00f6rs\u00f6k igen.")));if(f){alert(f);return Rj}if(!confirm("Vill du flagga inneh\u00e5llet f\u00f6r granskning?"))return"abort";var g=["uname="+this.Tj];this.zc&&
g.push("aid="+this.zc);this.Vh&&g.push("iid="+this.Vh);var h=["reason="+c,"msg="+Pa(e)],i="/lh/flagInappropriate?"+g.join("&");this.VV.send(i,"POST",h.join("&"));return Qj};
var At=function(){var a='<form id="lhui_form"><p>';a+=_features.PWA_NEWUI?"Genom att skicka in det h\u00e4r formul\u00e4ret uppm\u00e4rksammar du Picasa-teamet p\u00e5 ol\u00e4mpligt inneh\u00e5ll p\u00e5 den h\u00e4r sidan.":"Genom att skicka in formul\u00e4ret uppm\u00e4rksammar du Google Foto-teamet p\u00e5 ol\u00e4mpligt inneh\u00e5ll p\u00e5 sidan.";a+=' <a href="http://picasa.google.com/support/bin/answer.py?answer=44321" target="_blank">Vad betyder det?</a></p><h2>Varf\u00f6r rapporterar du detta som ol\u00e4mpligt?</h2><p><input type="radio" name="reason" value="1" /> Detta inneh\u00e5ll uppviglar till v\u00e5ld eller hatbrott.<br /><input type="radio" name="reason" value="2" /> Detta inneh\u00e5ll \u00e4r st\u00f6tande.<br /><input type="radio" name="reason" value="3" /> Detta material inneh\u00e5ller nakenhet.<br /><input type="radio" name="reason" value="4" /> Detta \u00e4r p\u00e5 annat s\u00e4tt ol\u00e4mpligt.</p><p>Om du har upphovsr\u00e4tten till det h\u00e4r verket och vill att det tas bort, ber vi dig l\u00e4sa v\u00e5ra <a href="http://www.google.com/picasa_web_dmca.html" target="_blank">anvisningar f\u00f6r anm\u00e4lan om intr\u00e5ng i upphovsr\u00e4tten</a>.</p><h2>Ber\u00e4tta kort varf\u00f6r du anser att det h\u00e4r inneh\u00e5llet ska granskas:</h2><p><textarea name="msg"></textarea></p></form>';
return a},
Bt=_features.PWA_NEWUI?"Tack f\u00f6r att du rapporterar det h\u00e4r inneh\u00e5llet. Din vaksamhet hj\u00e4lper oss att f\u00f6rb\u00e4ttra Picasa webbalbum.":"Tack f\u00f6r att du rapporterade det h\u00e4r materialet. Med din hj\u00e4lp kan vi f\u00f6rb\u00e4ttra Google Foto.";zt.prototype.ZA=function(a){if(this.a1==a)return;this.a1=a;a?this.r.e(this.g,B,this.jA,undefined,this):this.r.ka(this.g,B,this.jA,undefined,this)};var Ct=function(a,b){qs.call(this,a);this.rk=new zt;this.Q=b};
p(Ct,qs);Ct.prototype.Dn=null;Ct.prototype.ha=function(){return"gphoto.FlaggerBox"};
Ct.prototype.o=function(){Ct.b.o.call(this);this.rk.va(this.f());this.wp=w("span",{id:"lhid_flagger"});y(this.f(),this.wp);var a=this.Q.vC();if(_authuser&&_authuser.isLoggedIn&&a&&_features.fr&&_features.newStrings){this.Dn=w("div",{"class":"lhcl_fakelink issueLink"});z(this.Dn,"Rapportera till \u00e4garen");y(this.g,this.Dn)}};
Ct.prototype.A=function(){Ct.b.A.call(this);this.p.e(this.rk,"gphoto_flag_sent",this.kV);this.Dn&&this.p.e(this.Dn,[F,B],this.ZV)};
Ct.prototype.ZV=function(a){a.stopPropagation();a.preventDefault();this.j.type=="Album"?this.dispatchEvent(new ym(null,this.eb().N())):this.dispatchEvent(new ym(this.eb()))};
Ct.prototype.i=function(){if(!this.xb()){Ct.b.i.call(this);this.rk.i()}};
Ct.prototype.W=function(a){Ct.b.W.call(this,a);a&&this.pY(a)};
Ct.prototype.pY=function(a){if(a.type=="Album")this.rk.Sf(a.username,a.id,"",false);else a.type=="Photo"&&this.rk.Sf(a.user.name,a.album.id,a.id,a.nc());Mc(this.wp);y(this.wp,w("a",{href:"javascript: void 0;"},cl));this.rk.ZA(true)};
Ct.prototype.kV=function(){Mc(this.wp);y(this.wp,w("b",null,Bt));this.rk.ZA(false)};var Dt=function(a){this.Ua=false;this.d1=a;this.Cz=[]},
Et;Dt.prototype.wT=function(a){if(typeof GMap2!="undefined")a&&a();else{a&&this.Cz.push(a);if(!this.Ua){this.Ua=true;di(function(){var b=x("script");b.src="http://maps.google.com/maps?file=api&v=2.95&client=google-pweb&async=2&callback=pwa.mapLoaded&oe=utf-8&hl="+this.d1;y(Cc().body,b)},
0,this)}}};
Dt.prototype.sK=function(){Zf(l,"mapload");while(this.Cz.length>0){var a=this.Cz.pop();a()}};
var Ft=function(a){Et&&Et.wT(a)},
Gt=function(){Et&&Et.sK()},
Ht=function(a){Et=new Dt(a)};var It=function(a){var b=a.toSpan();return{ll:{lat:String(a.getSouthWest().lat()),lon:String(a.getSouthWest().lng())},ur:{lat:String(a.getNorthEast().lat()),lon:String(a.getNorthEast().lng())},latSpan:b.lat()/2,lonSpan:b.lng()/2}},
Jt=function(a){if(a&&a.lat&&a.lon){var b=Number(a.lat),c=Number(a.lon);if(!isNaN(b+c))return{lat:b,lon:c}}return null},
Kt=function(a,b,c){c.extend(a);if(b){var d=Jt(b.ll);c.extend(new GLatLng(d.lat,d.lon));d=Jt(b.ur);c.extend(new GLatLng(d.lat,d.lon))}},
Lt=function(a){var b=Jt(a.ll),c=Jt(a.ur);return new GLatLngBounds(new GLatLng(b.lat,b.lon),new GLatLng(c.lat,c.lon))};var Mt=function(a,b,c){jp.kf(this);J.call(this);a.photoMap=this;this.ID=a;this.ba=b;this.pI=c||{};this.Pf=[];this.MD={};this.h3=Ws;Ft(m(this.TT,this))};
p(Mt,J);var Nt="markermove",Ot="http://www.google.com/mapfiles/";Mt.prototype.rA=0;Mt.prototype.OG=null;Mt.prototype.i=function(){if(!this.xb()){Mt.b.i.call(this);jp.mf(this);this.bp();this.H&&GEvent.clearInstanceListeners(this.H)}};
Mt.prototype.Da=function(){this.i()};
Mt.prototype.Av=function(a,b){this.ba=a;this.pI=b||{};this.bp();this.ex(null);this.ZD()};
Mt.prototype.bp=function(){while(this.Pf.length){var a=this.Pf.pop();this.H.removeOverlay(a);GEvent.clearInstanceListeners(a)}this.MD={};this.pm=null};
Mt.prototype.reset=function(){this.bp();this.Dr()};
Mt.prototype.f=function(){return this.ID};
Mt.prototype.gX=function(a){this.hg=a;if(this.H)if(a)this.YD();else{this.Dr();this.D_=false}};
Mt.prototype.ux=function(a){if(a==this.rA)return;this.rA=a;if(this.H){if(this.Tk){this.H.removeControl(this.Tk);this.Tk=null}if(a==1)this.Tk=new GLargeMapControl;else if(a==2)this.Tk=new GSmallMapControl;else if(a==3)this.Tk=new GSmallZoomControl;this.Tk&&this.H.addControl(this.Tk)}};
Mt.prototype.vx=function(a){if(a==this.h0)return;this.h0=a;if(this.H){if(this.Qq){this.H.removeControl(this.Qq);this.Qq=null}if(a==1)this.Qq=new GHierarchicalMapTypeControl;this.Qq&&this.H.addControl(this.Qq)}};
Mt.prototype.eu=function(a){if(this.H)if(a&&!this.pr){this.pr=new GOverviewMapControl;this.H.addControl(this.pr)}else if(!a&&this.pr){this.H.removeControl(this.pr);this.pr=null}};
Mt.prototype.ex=function(a){if(a)if(this.Pf.length>0)this.pm=this.Pf[this.MD[a]];else this.OG=a;else this.pm=null};
Mt.prototype.savePosition=function(a){if(this.H){var b=this.H.getBounds();if(a){var c=this.H.getCenter(),d=Jt(a);this.H.setCenter(new GLatLng(d.lat,d.lon));this.H.savePosition();b=this.H.getBounds();this.H.setCenter(c)}else this.H.savePosition();return It(b)}return null};
Mt.prototype.Er=function(){if(this.H){this.H.checkResize();this.A_=new GLatLngBounds;this.n2=this.H.getBoundsZoomLevel(this.A_)}};
Mt.prototype.yD=function(){return this.Pf.length>0};
Mt.prototype.TT=function(){var a={mapTypes:[G_NORMAL_MAP,G_SATELLITE_MAP,G_HYBRID_MAP,G_PHYSICAL_MAP]};this.H=new GMap2(this.ID,a);this.H.enableContinuousZoom();this.H.enableScrollWheelZoom();this.Er();this.Dr();this.XJ();this.ZD()};
Mt.prototype.ip=function(a,b,c){var d=new GMarker(a,c);d.data=b;d.dataId=b.id;GEvent.addListener(d,"dragend",m(this.RE,this,Nt,"dragend",d));return d};
Mt.prototype.XL=function(a,b){return this.ip(a,b,{clickable:false})};
Mt.prototype.mA=function(a,b){var c=new GIcon;c.image=Ot+"marker_mini.png";c.shadow=Ot+"marker_mini_shadow.png";c.iconSize=new GSize(12,20);c.shadowSize=new GSize(22,20);c.iconAnchor=new GPoint(6,20);return this.ip(a,b,{clickable:false,icon:c})};
Mt.prototype.PL=function(a,b){var c=String.fromCharCode("A".charCodeAt(0)+b.index),d=new GIcon(G_DEFAULT_ICON);d.image=Ot+"marker"+c+".png";return this.ip(a,b,{clickable:false,icon:d})};
Mt.prototype.IL=function(a,b){return this.ip(a,b,{draggable:true})};
Mt.prototype.ZD=function(){if(!this.H)return;this.DS();this.H.enableDoubleClickZoom();this.H.setMapType(G_PHYSICAL_MAP);if(this.ba==1||this.ba==0)this.HS();else if(this.ba==3)this.IS();else if(this.ba==2)this.YD();else if(this.ba==4)this.FS();else if(this.ba==5||this.ba==6){this.H.disableDoubleClickZoom();this.GS()}this.H.savePosition()};
Mt.prototype.GS=function(){this.uq(["photo","album"],m(this.IL,this))};
Mt.prototype.FS=function(){this.uq(["geoResult"],m(this.PL,this))};
Mt.prototype.HS=function(){this.uq(["album"],m(this.mA,this))};
Mt.prototype.yO=function(a){var b=[];for(var c=0;c<a.length;c++){var d=this.pI[a[c]+"s"];if(d)for(var e=0;e<d.length;e++){var f=d[e];f.storeType=a[c];b.push(f)}}return b};
Mt.prototype.uq=function(a,b){var c=this.yO(a),d,e=false,f;for(var g=0;g<c.length;g++){var h=c[g],i=Jt(h);if(i){var j=new GLatLng(i.lat,i.lon),k=b(j,h);this.Pf.push(k);this.H.addOverlay(k);this.MD[k.dataId]=this.Pf.length-1;if(this.OG)this.pm=k;if(!f||f.getPoint().lat()<i.lat)f=k;d||(d=new GLatLngBounds(j,j));Kt(j,h.bb,d);if(h.bb)e=true}}var o,r=this.pI.defaultView;if(this.Pf.length==1)o=this.Pf[0].getPoint();else if(this.Pf.length==0)if(r){var j=Jt(r);o=new GLatLng(j.lat,j.lon);d=new GLatLngBounds(o,
o);Kt(o,r.bb,d);if(r.bb)e=true}else{this.Dr();return}o||(o=d.getCenter());var u=this.H.getBoundsZoomLevel(d);e||(u=Math.min(u,this.qC(o)-2));this.H.setCenter(o,u);this.oN(f)};
Mt.prototype.oN=function(a){if(a){var b=this.H.fromLatLngToDivPixel(a.getPoint()).y-1.5*a.getIcon().iconSize.height,c=this.H.fromLatLngToDivPixel(this.H.getBounds().getNorthEast());c.y>b&&this.H.zoomOut()}};
Mt.prototype.IS=function(){this.uq(["photo"],m(this.mA,this))};
Mt.prototype.YD=function(){this.bp();if(!this.hg)return;var a=Jt(this.hg);if(a){var b=new GLatLng(a.lat,a.lon),c=this.XL(b,this.hg);this.Pf.push(c);this.H.addOverlay(c);var d=this.H.getZoom(),e=this.qC(b);if(this.hg.bb)d=this.H.getBoundsZoomLevel(Lt(this.hg.bb));else this.D_||(d=e-2);this.D_=true;this.H.setZoom(d);this.H.panTo(b)}};
Mt.prototype.qC=function(a){return this.H.getBoundsZoomLevel(new GLatLngBounds(a,a))};
Mt.prototype.Dr=function(){this.H&&this.H.setCenter(this.A_.getCenter(),this.n2)};
Mt.prototype.XJ=function(){GEvent.bind(this.H,"click",this,this.ST);GEvent.addDomListener(this.ID,xb?"DOMMouseScroll":"mousewheel",m(this.yU,this))};
Mt.prototype.DS=function(){switch(this.ba){case 0:case 6:this.eu(true);this.ux(1);this.vx(1);break;case 1:case 2:case 3:this.eu(false);this.ux(3);this.vx(0);break;case 5:this.eu(false);this.ux(2);this.vx(1);break}};
Mt.prototype.PQ=function(a,b){if(this.pm&&!a){this.pm.setPoint(b);this.RE(Nt,"click",this.pm)}};
Mt.prototype.ST=function(a,b){if(this.ba==5||this.ba==6)this.PQ(a,b)};
Mt.prototype.yU=function(a){if(!a)a=window.event;if(a.preventDefault)a.preventDefault();else a.returnValue=false};
Mt.prototype.RE=function(a,b,c){this.dispatchEvent(new Pt(a,b,this,c))};
function Pt(a,b,c,d){A.call(this,a);this.mapEventType=b;this.marker=d;this.map=c}
p(Pt,A);var Qt=function(a,b,c,d,e,f,g,h,i,j,k,o,r,u,C){this.K_=C||false;this.B=a;this.j0=b;this.UT=o;this.H=new Mt(c,this.UT,this.kA());if(this.B.lat&&this.B.lon){this.H.ex(this.B.id);this.H.savePosition()}this.Ir=d;this.s1=r;this.NE=e;this.pT=f;this.g1=g;this.qT=h;this.NT=i;this.V_=j;this.YE=k;this.Ri=new Mi(this.KU,600,this);this.r=new I(this);this.r.e(e,bf,this.Gn);this.r.e(e,"keyup",m(this.Ri.start,this.Ri,600));this.r.e(this.H,Nt,this.PM);this.xS=u||"";this.EG=G("lhui_func");yg(this.EG,m(this.xW,this));
this.Js()};
p(Qt,ve);Qt.prototype.pu=true;Qt.prototype.i=function(){if(this.xb())return;ve.prototype.i.call(this);this.H.i();this.r.i();this.Ri&&this.Ri.i();zg(this.EG)};
Qt.prototype.om=function(){if(!this.pu)return;var a=Ja(this.NE.value);if(a){$f(true,this.xS);var b=["location="+Pa(a),"alt=json"],c=_geocodePath+"&"+b.join("&");Ek(c,m(this.QN,this));this.W0=a}};
Qt.prototype.Mz=function(){this.ry("","",null);this.py(null,null,null);this.Js();this.H.reset();this.H.savePosition()};
Qt.prototype.cO=function(){return this.B.bb};
Qt.prototype.hD=function(a,b){var c=[];if(a.length==1&&!a[0].spellCorrection){a[0].hasBoundingBox=true;this.px(a[0]);c=null}else if(a.length>0){var d=Math.min(a.length,this.s1);for(var e=0;e<d;e++){c[e]=a[e];c[e].index=e}this.ou=c;this.Qr=-1;this.H.Av(4,{geoResults:c})}this.Js(c,b)};
Qt.prototype.pC=function(){return this.H};
Qt.prototype.YA=function(a){this.pu=a};
Qt.prototype.kA=function(){var a={};a[this.j0+"s"]=[this.B];return a};
Qt.prototype.KU=function(){if(!this.pu)return;var a=Ja(this.NE.value);if(a&&this.W0!=a)!this.K_&&this.B.lat&&this.B.lon?this.wV():this.om()};
Qt.prototype.Gn=function(a){this.Ri&&this.Ri.stop();if(a.keyCode==13){this.om();dg(a)}};
Qt.prototype.QN=function(a){this.Ri&&this.Ri.stop();$f(false,this.xS);var b=a.target,c;try{c=b.zg()}catch(d){this.WY();return}c&&this.hD(c)};
Qt.prototype.ry=function(a,b,c){this.pT.value=a;this.g1.value=b;this.V_.value=a&&b?"false":"true";if(c){this.qT.value=c.latSpan;this.NT.value=c.lonSpan}else{this.qT.value="";this.NT.value=""}};
Qt.prototype.py=function(a,b,c){this.B.lat=a;this.B.lon=b;if(c){this.B.bb=kc(c);this.B.bb.ll=kc(c.ll);this.B.bb.ur=kc(c.ur)}else delete this.B.bb};
Qt.prototype.iN=function(a){var b=["location="+Pa(a.address),"lat="+a.lat,"lon="+a.lon,"mresults=false","alt=json"],c=_geocodePath+"&"+b.join("&");Ek(c,m(this.KK,this,a))};
Qt.prototype.KK=function(a,b){var c=b.target;try{if(c.Lf()){var d=c.zg();if(d&&d.length>0){var e=d[0];a.lat=e.lat;a.lon=e.lon;a.bb=e.bb}}}catch(f){}a.hasBoundingBox=true;this.Qr==a.index&&this.px(a)};
Qt.prototype.px=function(a){var b=a.bb;if(!b&&!a.hasBoundingBox){this.iN(a);return}this.py(a.lat,a.lon,b);this.ry(a.lat,a.lon,b);this.H.Av(this.UT,this.kA());this.H.ex(this.B.id);this.H.savePosition()};
Qt.prototype.WY=function(){var a=vg(Rt,{text:"Ett fel uppstod n\u00e4r vi f\u00f6rs\u00f6kte identifiera platsen."});kg(this.Ir,a)};
Qt.prototype.Js=function(a,b){var c;if(b)c=b;else if(a)if(a.length==0){var d=s(this.NE.value);c=Xk('<span style="font-weight: bold;">'+lg(d)+"</span>")}else{this.GM(a);return}else c=this.pT.value?this.YE.geotaggedMessage:this.YE.noGeotagMessage;var e=vg(Rt,{text:c});kg(this.Ir,e)};
Qt.prototype.GM=function(a){kg(this.Ir,w("span",{"class":"lhcl_didyou"},"Menade du:"));for(var b=0;b<a.length;b++){var c=String.fromCharCode("A".charCodeAt(0)+b),d={index:b,id:"result"+b,resultfunc:this.EG,letter:c,address:lg(s(a[b].address))},e=vg('<div class="lhcl_geoResult"><span id="{id}" class="lhcl_fakelink" onclick="_d(\'{resultfunc}\', {index})">{letter}. {address}</span></div>',d);y(this.Ir,e)}};
Qt.prototype.wV=function(){var a={msg:this.YE.updateGeoPrompt,yesId:G("lhui_func"),noId:G("lhui_func")};kg(this.Ir,vg('<div>{msg}<br /><span class="lhcl_fakelink" id="{yesId}">Ja</span>&#32;<span class="lhcl_fakelink" id="{noId}">Nej</span></div>',a));var b=v(a.yesId),c=v(a.noId);this.r.e(b,F,this.om);this.r.e(c,F,m(this.Js,this,null,null))};
Qt.prototype.xW=function(a){if(a==this.Qr)return;if(this.Qr>=0){var b=v("result"+this.Qr);b.className="lhcl_fakelink"}this.Qr=a;var c=v("result"+a);c.className="lhcl_selectedResult";this.px(this.ou[a])};
Qt.prototype.PM=function(a){if(a.type==Nt){var b=a.marker.getPoint(),c=String(b.lat()),d=String(b.lng()),e=this.H.savePosition({lat:c,lon:d});this.py(c,d,e);this.ry(c,d,e)}};
var Rt="<div>{text}</div>";var St=function(a,b,c,d){V.call(this,null,true);this.B={location_id:G("input"),lat_id:G("input"),lon_id:G("input"),latSpan_id:G("input"),lonSpan_id:G("input"),removeGeo_id:G("input"),spin_id:G("img"),results_id:G("div"),map_id:G("map"),geocodefunc:G("func"),cleargeofunc:G("func"),lat:a.lat,lon:a.lon,location:c};if(a.bb){this.B.latSpan=a.bb.latSpan;this.B.lonSpan=a.bb.lonSpan}this.db=a;this.ou=d?d:[];if(b)this.ud=b;this.LU()};
p(St,V);St.prototype.nj=false;St.prototype.cQ=function(){var a;if(this.db)a=this.db.user;a||(a=_user);return a};
St.prototype.ZN=function(){var a;if(this.db)a=this.db.album;a||(a=_album);return a};
St.prototype.i=function(){if(!this.xb()){V.prototype.i.call(this);if(this.nj){zg(this.B.geocodefunc);zg(this.B.cleargeofunc);this.Si.i();this.Si=null;We(this.Sd)}this.B=null}};
St.prototype.Ca=function(){return this.xb()?false:V.prototype.Ca.call(this)};
St.prototype.LU=function(){kg(this.Zu(),vg("<h1>{title}</h1>",{title:Zk}));kg(this.Ja(),vg('<div class="lhcl_geophotoDialog"><b>S\u00f6k plats</b> <input type="text" class="lhcl_input" name="location" id="{location_id}" value="{location}" maxlength="100" /><button class="lhcl_locationsearchbutton" onclick="_d(\'{geocodefunc}\')">S\u00f6k</button><img src="img/spin.gif" style="visibility:hidden; margin: 0 4px" id="{spin_id}" /><br /><div class="lhcl_align_right"><a href="javascript:_d(\'{cleargeofunc}\')">Ta bort fr\u00e5n kartan</a><br /></div><input type="hidden" name="lat" id="{lat_id}" value="{lat}" /><input type="hidden" name="lon" id="{lon_id}" value="{lon}" /><input type="hidden" name="latspan" id="{latSpan_id}" value="{latSpan}" /><input type="hidden" name="lonspan" id="{lonSpan_id}" value="{lonSpan}" /><input type="hidden" name="removegeo" id="{removeGeo_id}" value="false" /><table width="720px" class="lhcl_geoResultTable"><tr><td width="20%" valign="top"><div id="{results_id}"></div></td><td width="80%"><div id="{map_id}" class="lhcl_mapBorder lhcl_smallMap"></div></td></tr></table><br /></div>',
this.B));var a=new Tm;a.X("save","Spara plats",false);a.X($m,Zg,false,true);this.Hj(a);this.Y(true);var b=v(this.B.location_id);b.focus();b.select();var c={id:this.db.id,lat:this.db.lat,lon:this.db.lon};if(this.db.bb)c.bb={ll:{lat:this.db.bb.ll.lat,lon:this.db.bb.ll.lon},ur:{lat:this.db.bb.ur.lat,lon:this.db.bb.ur.lon}};this.Si=new Qt(c,"photo",v(this.B.map_id),v(this.B.results_id),v(this.B.location_id),v(this.B.lat_id),v(this.B.lon_id),v(this.B.latSpan_id),v(this.B.lonSpan_id),v(this.B.removeGeo_id),
{noGeotagMessage:Yk("S\u00f6k plats"),geotaggedMessage:$k},6,10,this.B.spin_id,true);yg(this.B.geocodefunc,m(this.Si.om,this.Si));yg(this.B.cleargeofunc,m(this.Si.Mz,this.Si));!(c.lat&&c.lon)&&this.ou.length>0&&this.Si.hD(this.ou);this.nj=true;this.Xa();this.Sd=D(this,Vm,m(this.Df,this));var d=document.getElementsByName("save");d&&K(d[0],"font-weight","bold");Zf(this,Xf)};
St.prototype.Df=function(a){if(a.key=="save"){var b=v(this.B.lat_id).value,c=v(this.B.lon_id).value,d=v(this.B.latSpan_id).value,e=v(this.B.lonSpan_id).value,f=v(this.B.removeGeo_id).value;if(b&&c||f=="true"&&this.db.lat&&this.db.lon){var g=this.cQ(),h=this.ZN(),i=["uname="+g?g.name:"","aname="+h?h.name:"","iid="+this.db.id,"lat="+b,"lon="+c,"latspan="+d,"lonspan="+e,"removegeo="+f,"noredir=true"].join("&"),j=_updatePhotoPath,k;Ek(j,m(this.o_,this,this.db,b,c,this.Si.cO(),this.ud),"POST",i,k)}}Zf(this,
Yf)};
St.prototype.o_=function(a,b,c,d,e,f){var g=f.target;if(g.Lf()){if(b&&c){a.lat=b;a.lon=c;a.bb=d}else{a.lat=null;a.lon=null;a.bb=null}e&&e()}};var Tt=function(a){qs.call(this,a)};
p(Tt,qs);Tt.prototype.Ew=false;Tt.prototype.J=qe("gphoto.MapBox");Tt.prototype.o=function(){Tt.b.o.call(this);rc(this.g,"lhcl_sidebox");H(this.g,false)};
Tt.prototype.A=function(){Tt.b.A.call(this)};
Tt.prototype.C=function(){Tt.b.C.call(this);this.Og&&this.Og.i();this.Lg&&this.Lg.i();delete this.tr;delete this.Gq;delete this.Ko;delete this.kt;delete this.xi};
Tt.prototype.U=function(a){Tt.b.U.call(this,a);this.xi=w("div",{"class":"lhcl_title"});y(this.g,this.xi);this.tr=w("div",{"class":"lhcl_mapBorder lhcl_smallMap"});this.Gq=w("div",{"class":"lhcl_mapBorder lhcl_smallMap"});y(this.g,this.tr);y(this.g,this.Gq);var b=x();y(this.g,b);this.Ko=w("span",{tabindex:0,"class":"lhcl_fakelink lhcl_geoLink",style:"display: none;"});b.appendChild(this.Ko);this.p.e(this.Ko,B,this.SJ);this.mK=x("span");this.kt=w("a",{href:"#","class":"lhcl_geoLink",style:"display: none;"},
w("img",{src:"img/transparent.gif","class":"SPRITE_map-sm lhcl_spriting_alignMiddle lhcl_spriting_marginRight5"}),this.mK);b.appendChild(this.kt);var c=this.Yb().QB();if(c){this.kT=w("a",{href:c.kmlLink,"class":"lhcl_geoLink",style:"display: none;"},w("img",{"class":"SPRITE_earth-sm lhcl_spriting_alignMiddle lhcl_spriting_marginRight5 ",src:"img/transparent.gif"}),"Visa i Google Earth");b.appendChild(this.kT)}this.jM=null};
Tt.prototype.W=function(a){Tt.b.W.call(this,a);if(a){this.DI(a);this.xi.innerHTML=a.nc()?"Plats":"Plats"}};
Tt.prototype.Me=function(a){if(this.Qb!=a){this.Qb=a;if(this.Qb==0)this.n_();else this.Qb==2&&H(this.g,false)}};
Tt.prototype.n_=function(){if(this.Qb==0){var a=this.sd.Qa();if(this.aa!=a){this.p.e(a,[Uj,Tj],this.dv);this.aa=a}if(this.Ew)if(this.Lg){this.vo(this.Lg.yD());this.sy()}else this.vo(false);else a.isLoaded()&&this.dv();this.xi.innerHTML="Platser f\u00f6r foton"}};
Tt.prototype.dv=function(){if(this.Qb==0){var a=[];for(var b=0;b<this.aa.Te();b++){var c=this.aa.vg(b);c&&c.Yh()&&a.push(c)}var d=a.length>0;this.vo(d);if(d){if(!this.Lg)this.Lg=new Mt(this.Gq,3);var e={};e.photos=a;this.Lg.Av(3,e)}this.sy(d);this.Ew=true}else this.Ew=false};
Tt.prototype.DI=function(a){if(this.Qb==1){this.J.da("Photo geotag: "+a.Yh());if(a.Yh()){if(!this.Og)this.Og=new Mt(this.tr,2);this.vo(true);this.Og.gX(a)}else this.vo(false);this.sy()}};
Tt.prototype.vo=function(a){if(_features.geotagging){this.sd.isOwner(this.j)&&this.Xc=="a"&&this.Qb==1?H(this.g,true):H(this.g,a);if(this.Qb==1){H(this.tr,a);H(this.Gq,false);a&&this.Og&&this.Og.Er()}else{H(this.Gq,a);H(this.tr,false);a&&this.Lg&&this.Lg.Er()}}};
Tt.prototype.RB=function(a){if(_features.geotagging)if(a.Yh()){var b={lat:a.lat,lon:a.lon,address:a.location||""};if(a.bb)b.bb={ll:{lat:a.bb.ll.lat,lon:a.bb.ll.lon},ur:{lat:a.bb.ur.lat,lon:a.bb.ur.lon},latSpan:a.bb.latSpan,lonSpan:a.bb.lonSpan};return b}return null};
Tt.prototype.sy=function(a){if(this.Qb==2)return;var b=this.Qb==0,c=this.Xc=="a",d=this.j,e;if(ba(a))e=a;else var e=!b?d.Yh():this.Lg&&this.Lg.yD();if(c){var f=!b&&this.sd.isOwner(this.j);H(this.Ko,f);if(f){var g;g=e?"Redigera plats":"L\u00e4gg till plats";z(this.Ko,g)}H(this.kT,b&&e)}var h=false,i,j;if(c&&b){var k=this.Yb().QB();if(k){j=k.mapLink;if(this.sd.isOwner(this.j)){h=true;i=e?"Visa karta":"Skapa albumkarta"}else{i="Visa karta";h=e}}}else if(!b){var o=d.sc();if(o&&o.ctitle){h=e;if(o.mapLink)j=
o.mapLink;else{var r=["",d.gd().name,o.ctitle,"photo#map"];j=r.join("/")}i="Visa kartan f\u00f6r albumet"}}if(h){this.kt.href=j;z(this.mK,i)}H(this.kt,h)};
Tt.prototype.SJ=function(){if(this.sd.isOwner(this.j)){var a=this.j,b=this.jM,c;if(!a.Yh()&&!b){var d=a.sc();if(!b&&d&&d.Yh()){b=this.RB(d);c=d.aP()}}if(this.xB){this.xB.i();this.xB=null}this.xB=new St(a,m(this.RJ,this,a),c,b?[b]:null)}};
Tt.prototype.RJ=function(a){if(this.sd.isOwner(this.j)&&a==this.j){this.jM=a.Yh()?this.RB(a):null;this.DI(a);this.dv()}a.reload(function(){})};var Vt=function(a){V.call(this,"gphoto-issueDialog",true);this.Q=a;var b=new Tm;b.X("ok","Skicka",true,false);b.X($m,"Ta bort",false,true);this.Hj(b);this.r=new I(this);var c=this.Q.CB(),d=c.nickname||c.name,e=d+" har skickat ett meddelande till dig fr\u00e5n Google Foto",f=d+" sent you a message from Picasa Web Albums";this.jc={form:Ut(),thumbnail:Ut(),greeting:Ut(),message:Ut(),ownerNickname:Ut(),sender:Ut(),signature:Ut(),noShare:Ut(),noPublic:Ut(),noName:Ut()};this.Sb('<table class="gphoto-mailheader"><tbody><tr><td class="label">Till:</td><td class="ownernickname" id="'+
this.jc.ownerNickname+'"></td></tr><tr><td class="label">Fr\u00e5n:</td><td class="authuser" id="'+this.jc.sender+'"></td></tr><tr><td class="label">\u00c4mne:</td><td class="subject">'+s(_features.PWA_NEWUI?f:e)+'</td></tr></tbody></table><div class="message-area"><div class="preview-area"><div class="thumbnail" id="'+this.jc.thumbnail+'"></div><div class="message-content"><p class="greeting" id="'+this.jc.greeting+'"></p><p class="message" id="'+this.jc.message+'"></p><form id="'+this.jc.form+'"><ul><li><input name="noshare" id="'+
this.jc.noShare+'" type="checkbox" checked>F\u00f6r inte det h\u00e4r vidare till n\u00e5gon annan.</input></li><li><input name="nopublic" id="'+this.jc.noPublic+'" type="checkbox">G\u00f6r inte det h\u00e4r allm\u00e4nt tillg\u00e4ngligt</input></li><li><input name="nonametags" id="'+this.jc.noName+'" type="checkbox">Visa inte namnetiketter</input></li></ul></form><p class="closing">Kontakta mig om du vill ha mer information. Tack f\u00f6r visad h\u00e4nsyn.</p><p class="signature" id="'+this.jc.signature+
'"></p></div></div><p class="footer">Obs! Den h\u00e4r beg\u00e4ran skickas fr\u00e5n din e-postadress f\u00f6r att du ska kunna f\u00e5 svar.</p></div>')};
p(Vt,V);var Wt=0,Ut=function(a){return"notifyDlg_"+(a?a:"")+Wt++};
Vt.prototype.Ct=true;Vt.prototype.A=function(){Vt.b.A.call(this);if(!this.uB){var a=this.Q.CB(),b=a.nickname||a.name,c=ab(a.email);this.uB=v(this.jc.form);var d=v(this.jc.sender);z(d,b+(c?" ("+c+")":""));var e=v(this.jc.signature);z(e,b);this.Zo=[];this.Zo.push(v(this.jc.noShare));this.Zo.push(v(this.jc.noPublic));this.Zo.push(v(this.jc.noName));this.DW=this.vk().eO("ok")}this.r.e(this,"dialogselect",this.Df);Cb(this.Zo,m(function(f){this.r.e(f,["change","propertychange"],this.p_)},
this))};
Vt.prototype.p_=function(){var a=Gb(this.Zo,function(b,c){return b+(c.checked?1:0)},
0);this.Ct=a>0;this.Ct?this.DW.removeAttribute("disabled"):this.DW.setAttribute("disabled",true)};
Vt.prototype.open=function(a){if(!a){alert("Fel. Ogiltigt objekt.");return}this.la()||this.U();this.W(a);this.Y(true);Zf(this,Xf)};
Vt.prototype.W=function(a){this.j=a;var b=this.j.gd(),c=b.nickname||"",d=v(this.jc.ownerNickname);z(d,c);var e=v(this.jc.thumbnail),f=v(this.jc.greeting),g=v(this.jc.message),h="Hej "+(c+",");z(f,h);var i,j;if(a.type=="Album"){i="album";j="aid"}else{i="foto";j="iid";if(a.type=="Photo"&&a.nc())i="video"}if(this.ov)Mc(this.ov);else{this.ov=w("div",{style:"display: none;"});y(this.uB,this.ov)}y(this.ov,w("input",{type:"hidden",name:j,value:a.id}));var k="Jag har f\u00f6ljande \u00f6nskem\u00e5l g\u00e4llande "+
(i+".");z(g,k);Mc(e);var o=a.thumbnail(3),r=w("img",{src:o.url,width:o.width,height:o.height});y(e,r);var u=a.Dc(),C=w("div",{"class":"title",title:u});z(C,ab(eb(u,16)));y(e,C)};
Vt.prototype.Df=function(a){if(a.key=="ok"){a.stopPropagation();if(!this.Ct)return false;var b=kr(this.uB),c=this.Q.vC();Ek(c,undefined,"POST",b)}this.j=null;return Zf(this,Yf)};function Xt(a,b,c){this.wa=a;this.Pc=x("div");this.Pc.className="lhcl_caption";b.appendChild(this.Pc);this.Vl=x("div");c.appendChild(this.Vl);this.RA=G("edit_caption");yg(this.RA,m(this.uJ,this));this.oM=G("lhui_deleteCaption")}
Xt.prototype.Da=function(){this.op&&We(this.op);zg(this.RA);this.Vl&&Oc(this.Vl);this.Pc&&Oc(this.Pc);for(var a in this)this[a]=null};
Xt.prototype.Go=function(){if(this.op){We(this.op);delete this.op}this.Pc.innerHTML="&nbsp;";this.Vl.innerHTML="";if(this.Xb&&this.Xb.id){zg(this.Xb.id);zg(this.Xb.cancelID);zg(this.Xb.sizeID)}};
Xt.prototype.RW=function(a){this.Q=a};
Xt.prototype.Us=function(a){this.Vh=a.id;var b=a.c||"",c=lg(qg(b));c=c.replace(/  /g,"&nbsp; ").replace(/\n/g,"<br />");var d={caption:c},e=false;if(!a.user)e=_authuser.isOwner;else if(this.Q)e=a.isOwner(this.Q.xf());if(e){d.id=this.RA;d.text=b?"redigera":"L\u00e4gg till en bildtext";var f=[tg('&nbsp;<span id="{id}" class="lhcl_fakelink" onclick="_d(\'{id}\')">{text}</span>',d)];b&&f.push(tg('&nbsp;<span id="{lhui_deleteId}" class="lhcl_fakelink" style="vertical-align: bottom;"><img src="img/transparent.gif" class="SPRITE_trash" alt="{lhui_title}" title="{lhui_title}"/></span>',
{lhui_deleteId:this.oM,lhui_title:"Ta bort bildtext"}));d.addtext=f.join("");this.Xb={caption:b}}this.Go();this.Pc.innerHTML=tg("<b>{caption}</b>{addtext}",d);this.Pc.style.display="";if(e&&b)this.op=D(v(this.oM),B,this.bJ,false,this)};
Xt.prototype.bJ=function(){confirm("Vill du ta bort den h\u00e4r bildtexten?")&&this.Sy("")};
Xt.prototype.uJ=function(){this.Pc.style.display="none";this.Xb={caption:this.Xb.caption,id:G("lhid_capform"),saveID:G("lhid_capsave"),sizeID:G("lhid_capsize"),cancelID:G("lhid_capcancel")};this.Vl.appendChild(vg(Yt,this.Xb));this.Vy();yg(this.Xb.id,m(this.EJ,this));yg(this.Xb.cancelID,m(this.Iy,this));yg(this.Xb.sizeID,m(this.Vy,this));var a=v(this.Xb.id);a.focus();eq(a,a.value.length);D(a,F,function(b){b.target.blur();b.target.focus()})};
Xt.prototype.Iy=function(){this.Pc.style.display="";this.Vl.innerHTML=""};
Xt.prototype.Vy=function(){var a=v(this.Xb.sizeID),b=v(this.Xb.id),c=v(this.Xb.saveID);if(!(a&&b&&c))return;if(b.value.length>992){var d=b.value.length,e=1024,f=x("span");f.appendChild(Kc("Din bildtext inneh\u00e5ller "+(d+(" tecken ("+(e+" \u00e4r max).")))));if(d>e)f.style.color="red";kg(a,f)}else a.innerHTML=""};
Xt.prototype.EJ=function(){var a=v(this.Xb.id);if(!a)return;var b=Ja(a.value);if(b==this.Xb.caption){this.Iy();return}if(b.length>1024){alert("Bildtexten \u00e4r l\u00e4ngre \u00e4n 1024 tecken och kommer inte att sparas. Du m\u00e5ste f\u00f6rkorta bildtexten.");return}v(this.Xb.saveID).disabled=true;v(this.Xb.cancelID).disabled=true;this.Sy(b)};
Xt.prototype.Sy=function(a){var b=["description="+Pa(a),"noredir=true"],c=this.Vh,d=m(this.ZI,this,c,a),e=_updatePhotoPath+"&uname="+_user.name+"&aname="+_album.name+"&iid="+c;Ws.ih(e,d,b.join("&"))};
Xt.prototype.ZI=function(a,b,c){if(!this.wa)return;if(Os(c)){v(this.Xb.saveID).disabled=false;v(this.Xb.cancelID).disabled=false;return}this.wa.DJ(a,s(b))};
var Yt='<div class="lhcl_captionform"><div id="{sizeID}" style="color:#999"></div><textarea name="description" id="{id}" rows="0" comments="0" onkeydown="_d(\'{sizeID}\')" onkeyup="_d(\'{sizeID}\')">{caption}</textarea><div><input type="button" value="Spara bildtext"class="lhcl_default" id="{saveID}" onclick="_d(\'{id}\')" /><input type="button" value="'+Zg+'" id="{cancelID}" onclick="_d(\'{cancelID}\')"/></div></div>';function Zt(a,b,c,d){this.wa=a;this.db=null;this.Db=x("div");H(this.Db,!d);b.appendChild(this.Db);this.dg=x("div");H(this.dg,!d);b.appendChild(this.dg);this.oL=G("comment");this.at=G("addcommentbox");this.a_=G("unauthcommentbox");this.dZ=G("signinstr");this.rB=G("addcomment");this.pj=vg($t,{lhui_commentbox:this.oL,lhui_addcommentbox:this.at,lhui_unauthcommentbox:this.a_,signInStr:this.Ky(_authuser),lhui_signinstr:this.dZ,lhui_focuscomment:this.rB});H(this.pj,false);c.appendChild(this.pj);yg(this.rB,
m(this.hJ,this));this.G1=m(this.rJ,this);this.o0=m(this.dJ,this);this.NI=G("viewAll");yg(this.NI,m(this.FJ,this));this.BA=G("deleteCommentFunc");yg(this.BA,m(this.cJ,this));this.sB=G("focusFunc");yg(this.sB,m(this.iJ,this));this.At=_authuser.user;this.signInLink=null;this.signUpLink=null}
var au=/.+\/commentid\/(\d+).*/i;Zt.prototype.show=function(a){H(this.pj,a);H(this.Db,a);H(this.dg,a)};
Zt.prototype.Da=function(){this.Go();this.Db&&Oc(this.Db);this.dg&&Oc(this.dg);this.pj&&Oc(this.pj);zg(this.rB);zg(this.NI);zg(this.BA);zg(this.sB);for(var a in this)this[a]=null};
Zt.prototype.Go=function(){this.Db.innerHTML="&nbsp;";this.dg.innerHTML="";if(this.Sw){Ws.XI(this.Sw);this.Sw=0}this.Fp&&zg(this.Fp);this.ss&&zg(this.ss)};
Zt.prototype.GB=function(){return this.Db};
var bu=function(a){var b=a.match(au);return b[1]};
Zt.prototype.Yy=function(a,b){this.db=a;if(b){this.cZ=b.signInLink;this.Kx=b.signUpLink}this.Di(a)};
Zt.prototype.Di=function(a){this.Vh=a.N();var b=a.iO();this.Db.innerHTML="&nbsp;";if(b&&b.length>0){var c=['<div style="width:99%"><table class="lhcl_comments">'],d=this.db?this.db.user:null,e=_authuser.name,f=d?d.name==e:_authuser.isOwner;for(var g=0;g<b.length;g++){var h=b[g],i=h.author[0],j=i.user,k=Fj(h.published),o={lhui_date:s(Mf(10,k)),lhui_ownerclass:e==j?"lhcl_ownercomment":"",lhui_comment:cu(h.content),portrait:i.thumbnail,nickname:du(h)},r=i.uri;if(r){o.lhui_linkstart='<a href="'+r+'">';
o.lhui_linkend="</a>"}if(f||e==j)o.lhui_deletelink=tg('<span class="lhcl_fakelink" tabindex="0" onclick="_d(\'{lhui_func}\', \'{lhui_commentId}\')">radera</span>',{lhui_commentId:bu(h.id),lhui_func:this.BA});c.push(tg('<tr class="{lhui_ownerclass}" ><td rowspan="2" class="lhcl_commentimg">{lhui_linkstart}<img src="{portrait}" />{lhui_linkend}</td><th width="100%">{lhui_linkstart}{nickname}{lhui_linkend}</th><th class="lhcl_commentdate">{lhui_date}</th><th>{lhui_deletelink}</th></tr><tr><td colspan="3" class="lhcl_commenttext">{lhui_comment}</td></tr>',
o))}c.push("</table></div>");this.Db.innerHTML=c.join("")}var u=v(this.oL);if(b&&b.length>0){var C=b[b.length-1],k=Fj(C.published),E=G("viewall"),o={lhui_date:s(Mf(2,k)),lhui_comment:cu(C.content),lhui_viewallbox:E,nickname:du(C)};kg(u,vg('<div class="lhcl_lastcomment"><div class="lhcl_title">Senaste kommentar<span id="{lhui_viewallbox}"></span></div><div>&#8220;{lhui_comment}&#8221;</div><div class="gphoto-commentauthor">{nickname} &#8211; {lhui_date}</div></div>',o));H(u,true);if(b.length>1){var O=
v(E);O&&O.appendChild(vg('<a class="gphoto-viewall" href="javascript:_d(\'{lhui_viewallfunc}\')">visa alla</a>',{lhui_viewallfunc:this.NI}))}}else{u.innerHTML="";H(u,false)}H(this.pj,true);H(v(this.at),this.At);H(v(this.a_),!this.At);this.jJ(b)};
var cu=function(a){a=Ha(s(a));a=a.replace(/\n\n+/g,"\n\n").replace(/\n/g,"<br>");return Tk(a)},
du=function(a){var b=a.author[0];return Tk(s(b.nickname||b.name),40)};
Zt.prototype.jJ=function(a){Mc(this.dg);if(this.At){if(a>=100){H(v(this.at),false);this.dg.innerHTML="Det g\u00e5r inte att kommentera den h\u00e4r bilden.";return}else H(v(this.at),true);this.Fp=G("commentForm");this.qo=G("commentText");this.ss=G("commentLength");this.c2=G("submitButton");var b=tg('<form class="lhcl_commentform" id="{lhui_formId}" action="javascript:_d(\'{lhui_formId}\')"><div class="lhcl_title">L\u00e4gg till en kommentar</div><textarea id="{lhui_id}"onfocus="_d(\'{lhui_focusFunc}\', this)" onkeydown="_d(\'{lhui_sizeId}\', this)" onkeyup="_d(\'{lhui_sizeId}\', this)"></textarea><table><tr><td width="100%"><div id="{lhui_sizeId}">&nbsp;</div></td><td><input type="submit" id="{lhui_submitId}" value="Skapa kommentar"  /></td></tr></table></form>',
{lhui_formId:this.Fp,lhui_id:this.qo,lhui_sizeId:this.ss,lhui_submitId:this.c2,lhui_focusFunc:this.sB})}else{this.signInBoxId=G("signInBox");var c=this.Ky(_authuser),b=tg(eu,{lhui_signInBoxId:this.signInBoxId,signInStr:c});v(this.dZ).innerHTML=c}this.dg.innerHTML=b;this.At&&D(v(this.qo),F,function(d){d.target.blur();d.target.focus()});
this.RM=false;yg(this.Fp,m(this.qJ,this));yg(this.ss,m(this.vJ,this))};
Zt.prototype.qJ=function(){var a=v(this.Fp),b=v(this.qo);if(!(b&&a))return;var c=Ja(b.value);if(!c){alert("Skriv f\u00f6rst en kommentar.");return}if(c.length>512){alert("Kommentaren \u00e4r tyv\u00e4rr f\u00f6r l\u00e5ng. F\u00f6rs\u00f6k att korta ned den.");return}var d=["uname="+Pa(this.db?this.db.user.name:_user.name),"aname="+Pa(this.db?this.db.album.name:_album.name),"iid="+this.Vh,"AddComment="+Pa(c),"noredir=true"];for(var e=0;e<a.elements.length;e++){var f=a.elements[e];f.disabled=true;
f.blur()}this.zG=this.Vh;this.Z_=c;Ws.ih(_addCommentPath,this.G1,d.join("&"))};
Zt.prototype.rJ=function(a){if(Os(a)){var b=v(this.qo);if(b)b.value=this.Z_;return}this.wa.Oy(this.zG,true)};
Zt.prototype.cJ=function(a){if(!confirm("Vill du ta bort den h\u00e4r kommentaren?"))return;var b=["uname="+Pa(this.db?this.db.user.name:_user.name),"mode=delete","cid_"+a+"=on","iid="+this.Vh,"noredir=true"];this.zG=this.Vh;Ws.ih(_selectedCommentsPath,this.o0,b.join("&"))};
Zt.prototype.dJ=function(){this.wa.Oy(this.zG,true)};
Zt.prototype.vJ=function(a){var b=v(this.ss);if(!(b&&a))return;if(a.value.length>480){var c=a.value.length,d=x("span"),e=Kc("Din kommentar inneh\u00e5ller "+(c+" tecken (512 \u00e4r max)."));d.appendChild(e);if(c>512)d.style.color="red";kg(b,d)}else b.innerHTML=""};
Zt.prototype.FJ=function(){window.scrollTo(0,Mg(this.Db).y-50)};
Zt.prototype.hJ=function(){window.scrollTo(0,Mg(this.dg).y-50);if(this.qo){var a=v(this.qo);a&&!a.disabled&&a.focus()}};
Zt.prototype.iJ=function(a){if(this.RM)return;a.value="";a.style.color="#000";this.RM=true};
Zt.prototype.Ky=function(a){if(typeof a.user=="undefined"&&typeof a.isLoggedIn!="undefined"){var b='<a href="'+this.Kx+'">Aktivera</a> ditt kostnadsfria Google Fotokonto.';return!_features.PWA_NEWUI?b:'<a href="'+this.Kx+'">Aktivera</a> ditt kostnadsfria Picasa webbalbumskonto.'}else{var c='<a href="'+this.cZ+'">'+("Logga in"+("</a>"+(" om du har ett Google Fotokonto eller "+('<a href="'+this.Kx+'">skaffa</a> ett konto kostnadsfritt.'))));return!_features.PWA_NEWUI?c:'<a href="'+this.cZ+'">'+("Logga in"+
("</a>"+(" om du har ett Picasa webbalbumskonto eller "+('<a href="'+this.Kx+'">skaffa</a> ett konto kostnadsfritt.'))))}};
var $t='<div class="lhcl_sidebox"><div id="{lhui_commentbox}"></div><div id="{lhui_addcommentbox}"><img class="SPRITE_comment-sm lhcl_spriting_alignMiddle lhcl_spriting_marginRight5" src="img/transparent.gif"/><a href="javascript:_d(\'{lhui_focuscomment}\')">'+Vg+'</a></div><div id="{lhui_unauthcommentbox}" style="display:none;"><b>'+Vg+'</b><div id="{lhui_signinstr}"></div></div></div>',eu='<div id="{lhui_signInBoxId}" class="lhcl_toolbox lhcl_photoCommentSignIn"><div class="lhcl_tools"><b>'+Vg+
"</b><div>{signInStr}</div></div></div>";var fu=function(a){J.call(this);this.qc=a||window;this.Hq=D(this.qc,df,this.$b,false,this);this.qb=Hc(this.qc);if(yb&&tb)this.Ms=window.setInterval(m(this.Jz,this),500)};
p(fu,J);fu.prototype.Hq=null;fu.prototype.qc=null;fu.prototype.qb=null;fu.prototype.Ms=null;fu.prototype.getSize=function(){return this.qb?this.qb.qa():null};
fu.prototype.C=function(){fu.b.C.call(this);if(this.Hq){We(this.Hq);this.Hq=null}if(this.Ms){window.clearInterval(this.Ms);this.Ms=null}this.qc=null;this.qb=null};
fu.prototype.$b=function(){this.Jz()};
fu.prototype.Jz=function(){var a=Hc(this.qc);if(!Ba(a,this.qb)){this.qb=a;this.dispatchEvent(df)}};var gu=function(a,b,c){Go.call(this,a,b||Co.getInstance(),c)};
p(gu,Go);ll(Do,function(){return new gu(null)});var hu="iconclass",iu="iconloadingclassname",ju="itemwidth",ku="itemheight",lu="orientation",mu="horizontal",nu="preloadfunction",ou="maxloadsize",pu="originalsizefn",qu="navigateonclick";var su=function(a,b,c,d,e){Fm.call(this,b,c,e);this.J=qe(this.ha());this.Ea=d;this.Ut=d.debug;this.g2=d.updateimages;this.E0=d[nu];this.cT=!d[qu];this.nn=this.cT?x("a"):null;this.KE=d[iu];e&&this.W(e)};
p(su,Fm);su.prototype.Ua=true;su.prototype.iu=false;su.prototype.yw=false;su.prototype.o=function(){this.ra(x("div"))};
su.prototype.ra=function(a){this.g=a;this.g._fsIndex=this.uc;this.g.className="filmstrip-icon "+this.KE;this.ma=x("img");if(this.cT){this.g.appendChild(this.nn);y(this.nn,this.ma)}else this.g.appendChild(this.ma);if(this.Ut){this.Ee=x("div");this.g.appendChild(this.Ee)}this.sx(this.uc,false);this.Lc()};
su.prototype.W=function(a,b){su.b.W.call(this,a);typeof b!="undefined"&&this.sx(b);this.Lc();this.l_()};
su.prototype.ul=function(a){this.Ua=a;this.Lc()};
su.prototype.xx=function(a){this.yw=a;this.Lc()};
su.prototype.nx=function(a){this.iu=a;this.Lc()};
su.prototype.ja=function(){this.Lc()};
su.prototype.Lc=function(){this.J&&this.J.da("updateImage_, index_: "+this.uc+", offscreen_: "+this.yw+", fail_: "+this.iu+", loading_: "+this.Ua);if(this.g){this.Ut&&this.Ee&&z(this.Ee,this.uc);if(this.g2&&this.j)if(this.Ua){this.g.style.backgroundImage="";uc(this.g,this.KE)}else{vc(this.g,this.KE);var a=this.E0(this.j,this.Ea);this.ma.src=a}this.yw?uc(this.g,"gphoto-icon-offscreen"):vc(this.g,"gphoto-icon-offscreen");this.iu?uc(this.g,"gphoto-icon-fail"):vc(this.g,"gphoto-icon-fail")}};
su.prototype.l_=function(){if(this.nn)this.nn.href=this.Au()};
su.prototype.Tg=function(a){this.sx(a,true)};
su.prototype.sx=function(a,b){su.b.Tg.call(this,a);if(this.g){this.g._fsIndex=a;this.ma._fsIndex=a}b&&this.Lc()};
su.prototype.Au=function(){return""};
su.prototype.ha=function(){return"gphoto.FilmStripIcon"};var tu=function(){nl.call(this)},
uu;p(tu,nl);tu.prototype.$=function(){return"gphoto-filmstrip"};
tu.prototype.o=function(a){var b=tu.b.o.call(this,a);this.va(a,b);return b};
tu.prototype.va=function(a,b){var c=tu.b.va.call(this,a,b),d=w("div",{"class":"gphoto-filmstrip-images"}),e=w("div",{"class":"imagestrip"});y(d,e);y(b,d);a.DX(e,d);return c};var yu=function(a){if(a>=1)return 1;if(a<=0)return 0;vu==1&&wu();return xu(a)},
vu=1,xu=function(a){var b=0;a=a*8;if(a<1)b=a-(1-Math.exp(-a));else{var c=Math.exp(-1);a-=1;var d=1-Math.exp(-a);b=c+d*(1-c)}return b*vu},
wu=function(){vu=1/xu(1)};var Y=function(a,b,c){S.call(this,"",b||uu||(uu=new tu),c);this.J=qe(this.ha());this.Ea=kc(zu);nc(this.Ea,a);this.Ed=this.Ea[hu];this.w1=this.Ea[pu]||Au;this.nV=this.Ea[nu];var d;if(this.Ea[lu]==mu){d=this.Ea[ju];this.Xq="left"}else{d=this.Ea[ku];this.Xq="top"}this.Ah=this.Ea.itemgap+d;var e=this.Ea.swapthreshold*this.Ah,f=Math.floor(e);this.L_=Math.ceil(e);this.Rx=Math.floor(this.Ah+f);this.gm=this.Ea.animationtime;this.u1=this.Ea.offscreencount;this.Dh={};this.jd={};this.qn=[];this.rb=[];this.i1=
this.Ea[ou];this.Zl=this.Ea.crop;this.K0=m(this.jj,this);this.J0=m(this.sS,this)};
p(Y,S);var Bu="currentitemchanged",zu={};zu[ju]=80;zu[ku]=96;zu.itemgap=5;zu.animationtime=750;zu[hu]=null;zu.iconclassname="icon";zu[iu]="gphoto-icon-loading";zu[lu]=mu;zu.debug=false;zu.updateimages=true;zu.swapthreshold=0.3333333333333333;zu.offscreencount=2;zu[nu]=null;zu[ou]=0;zu.crop=false;zu[pu]=null;zu[qu]=true;var Au=function(){return null};
Y.prototype.Ll=-1;Y.prototype.Vj=-1;Y.prototype.Fb=0;Y.prototype.zn=0;Y.prototype.Yz=0;Y.prototype.tz=0;Y.prototype.DX=function(a,b){this.Tm=a;this.PD=b};
Y.prototype.A=function(){Y.b.A.call(this);this.II(this.iC());if(this.j){this.zz();this.il(1)}};
Y.prototype.D=function(){if(this.Pd){this.Pd.uM();delete this.Pd}Y.b.D.call(this);Oc(this.Tm)};
Y.prototype.AP=function(){return Math.min(this.Ll>0?this.Ll*2:0,this.j.S())};
Y.prototype.jj=function(a){this.yI(a,1)};
Y.prototype.sS=function(a){this.yI(a,2)};
Y.prototype.yI=function(a,b){var c=a.RP();if(this.jd[c])this.jd[c][1]=b;else return null;var d=this.jd[c][0];this.qn[d]=b;var e=this.Dh[d];if(e){e.ul(false);2==b&&e.nx(true)}return e};
Y.prototype.il=function(a,b){if(!(this.j&&this.nV))return;var c=this.AP(),d=na(b)?b:this.Fb,e=Math.min(Math.max(0,d+a*c),this.j.S()-1),f=Math.min(d,e),g=Math.max(d,e);this.j.ii(f,g,m(this.LA,this,f,g-f+1))};
Y.prototype.W=function(a){Y.b.W.call(this,a);this.zz();this.il(1);var b=this.Fb,c=Math.min(b+this.Ll,this.j.S()-1);this.j.ii(b,c,m(this.LR,this));this.dispatchEvent({type:Bu,index:this.Fb,model:this.j})};
Y.prototype.iC=function(){var a=Og(this.g);this.J.da("imageAreaSize: "+a);return a};
Y.prototype.II=function(a){var b;b=this.Ea[lu]==mu?Math.floor(a.width/this.Ah):Math.floor(a.height/this.Ah);b=Math.max(0,b);this.Vj=b;if(this.j){var c=this.j.S();b=Math.min(b,c)}var d=this.Vj*this.Ah;if(this.PD)if(this.Ea[lu]==mu)this.PD.style.width=d+"px";else this.PD.style.height=d+"px";this.tz=d;this.Ll=b;this.J.da("visibleCount: "+b+" this.availableLength_: "+this.tz+" this.visibleSlotCount_: "+this.Vj)};
Y.prototype.oG=function(){if(!this.la()||this.Pd)return;var a=this.iC();this.II(a);var b=this.j?this.j.S():0,c=this.Vj>=b?this.Vj:this.Vj+this.u1,d=c-this.rb.length,e=this.rb.length-c;this.J.da("totalIconCount: "+c+" itemsToCreate: "+d+" itemsToRemove: "+e);if(e>0){var f=this.rb.length-1;this.J.da("removing items from "+f+" to "+c);for(var g=f;g>c;g--)this.KV(g)}else if(d>0&&this.j&&this.j.S()){var h=Math.max(this.rb.length-1,0),i=h;if(this.rb&&this.rb.length)i+=this.rb[0].ug();var j=this.Ea.iconclassname;
for(var k=0;k<d;++k){var g=h+k,o=k+i,r=this.j?this.j.$a(o):null,u=new this.Ed(this,j,o,this.Ea,r);this.Mo(u,g)}this.LA(i,d)}};
Y.prototype.zz=function(){if(!this.la())return;this.Dh={};this.jd={};this.qn.length=0;this.rb.length=0;this.B0=false;this.zn=0;this.Yz=0;this.Ll=-1;this.Fb=0;if(this.Tm){Mc(this.Tm);this.Tm.style[this.Xq]=0}this.j&&this.j.S()&&this.oG();this.B0=true};
Y.prototype.Mo=function