if(typeof YAHOO=="undefined"){var YAHOO={};}YAHOO.namespace=function(){var e=arguments,Q=null,x,E,W;for(x=0;x<e.length;x=x+1){W=e[x].split(".");Q=YAHOO;for(E=(W[0]=="YAHOO")?1:0;E<W.length;E=E+1){Q[W[E]]=Q[W[E]]||{};Q=Q[W[E]];}}return Q;};YAHOO.log=function(x,e,E){var a=YAHOO.widget.Logger;if(a&&a.log){return a.log(x,e,E);}else{return false;}};YAHOO.init=function(){this.namespace("util","widget","example");if(typeof YAHOO_config!="undefined"){var a=YAHOO_config.listener,e=YAHOO.env.listeners,x=true,E;if(a){for(E=0;E<e.length;E=E+1){if(e[E]==a){x=false;break;}}if(x){e.push(a);}}}};YAHOO.register=function(e,W,x){var I=YAHOO.env.modules;if(!I[e]){I[e]={versions:[],builds:[]};}var a=I[e],w=x.version,M=x.build,Q=YAHOO.env.listeners;a.name=e;a.version=w;a.build=M;a.versions.push(w);a.builds.push(M);a.mainClass=W;for(var E=0;E<Q.length;E=E+1){Q[E](a);}if(W){W.VERSION=w;W.BUILD=M;}else{YAHOO.log("mainClass is undefined for module "+e,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[],getVersion:function(e){return YAHOO.env.modules[e]||null;}};YAHOO.lang={isArray:function(e){if(e&&e.constructor&&e.constructor.toString().indexOf("Array")>-1){return true;}else{return YAHOO.lang.isObject(e)&&e.constructor==Array;}},isBoolean:function(e){return typeof e=="boolean";},isFunction:function(e){return typeof e=="function";},isNull:function(e){return e===null;},isNumber:function(e){return typeof e=="number"&&isFinite(e);},isObject:function(e){return e&&(typeof e=="object"||YAHOO.lang.isFunction(e));},isString:function(e){return typeof e=="string";},isUndefined:function(e){return typeof e=="undefined";},hasOwnProperty:function(e,a){if(Object.prototype.hasOwnProperty){return e.hasOwnProperty(a);}return !YAHOO.lang.isUndefined(e[a])&&e.constructor.prototype[a]!==e[a];},extend:function(x,W,E){if(!W||!x){throw new Error("YAHOO.lang.extend failed, please check that "+"all dependencies are included.");}var a=function(){};a.prototype=W.prototype;x.prototype=new a();x.prototype.constructor=x;x.superclass=W.prototype;if(W.prototype.constructor==Object.prototype.constructor){W.prototype.constructor=W;}if(E){for(var e in E){x.prototype[e]=E[e];}}},augment:function(Q,W){if(!W||!Q){throw new Error("YAHOO.lang.augment failed, please check that "+"all dependencies are included.");}var x=Q.prototype,M=W.prototype,e=arguments,E,w;if(e[2]){for(E=2;E<e.length;E=E+1){x[e[E]]=M[e[E]];}}else{for(w in M){if(!x[w]){x[w]=M[w];}}}}};YAHOO.init();YAHOO.util.Lang=YAHOO.lang;YAHOO.augment=YAHOO.lang.augment;YAHOO.extend=YAHOO.lang.extend;YAHOO.register("yahoo",YAHOO,{version:"2.2.2",build:"204"});YAHOO.util.CustomEvent=function(J,T,k,D){this.type=J;this.scope=T||window;this.silent=k;this.signature=D||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var o="_YUICEOnSubscribe";if(J!==o){this.subscribeEvent=new YAHOO.util.CustomEvent(o,this,true);}};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(T,k,D){if(!T){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(T,k,D);}this.subscribers.push(new YAHOO.util.Subscriber(T,k,D));},unsubscribe:function(J,P){if(!J){return this.unsubscribeAll();}var o=false;for(var T=0,D=this.subscribers.length;T<D;++T){var k=this.subscribers[T];if(k&&k.contains(J,P)){this._delete(T);o=true;}}return o;},fire:function(){var D=this.subscribers.length;if(!D&&this.silent){return true;}var k=[],T=true,J;for(J=0;J<arguments.length;++J){k.push(arguments[J]);}var z=k.length;if(!this.silent){}for(J=0;J<D;++J){var P=this.subscribers[J];if(P){if(!this.silent){}var o=P.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var R=null;if(k.length>0){R=k[0];}T=P.fn.call(o,R,P.obj);}else{T=P.fn.call(o,this.type,k,P.obj);}if(false===T){if(!this.silent){}return false;}}}return true;},unsubscribeAll:function(){for(var T=0,D=this.subscribers.length;T<D;++T){this._delete(D-1-T);}return T;},_delete:function(D){var T=this.subscribers[D];if(T){delete T.fn;delete T.obj;}this.subscribers.splice(D,1);},toString:function(){return "CustomEvent: "+"'"+this.type+"', "+"scope: "+this.scope;}};YAHOO.util.Subscriber=function(T,k,D){this.fn=T;this.obj=k||null;this.override=D;};YAHOO.util.Subscriber.prototype.getScope=function(D){if(this.override){if(this.override===true){return this.obj;}else{return this.override;}}return D;};YAHOO.util.Subscriber.prototype.contains=function(D,T){if(T){return (this.fn==D&&this.obj==T);}else{return (this.fn==D);}};YAHOO.util.Subscriber.prototype.toString=function(){return "Subscriber { obj: "+(this.obj||"")+", override: "+(this.override||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var R=false;var V=false;var m=[];var p=[];var P=[];var J=[];var k=0;var o=[];var T=[];var D=0;var z=null;return {POLL_RETRYS:200,POLL_INTERVAL:10,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,isSafari:(/KHTML/gi).test(navigator.userAgent),webkit:function(){var y=navigator.userAgent.match(/AppleWebKit\/([^ ]*)/);if(y&&y[1]){return y[1];}return null;}(),isIE:(!this.webkit&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi)),_interval:null,startInterval:function(){if(!this._interval){var y=this;var h=function(){y._tryPreloadAttach();};this._interval=setInterval(h,this.POLL_INTERVAL);}},onAvailable:function(u,y,F,h){o.push({id:u,fn:y,obj:F,override:h,checkReady:false});k=this.POLL_RETRYS;this.startInterval();},onDOMReady:function(y,u,h){this.DOMReadyEvent.subscribe(y,u,h);},onContentReady:function(u,y,F,h){o.push({id:u,fn:y,obj:F,override:h,checkReady:true});k=this.POLL_RETRYS;this.startInterval();},addListener:function(u,y,j,v,h){if(!j||!j.call){return false;}if(this._isValidCollection(u)){var Y=true;for(var S=0,n=u.length;S<n;++S){Y=this.on(u[S],y,j,v,h)&&Y;}return Y;}else{if(typeof u=="string"){var X=this.getEl(u);if(X){u=X;}else{this.onAvailable(u,function(){YAHOO.util.Event.on(u,y,j,v,h);});return true;}}}if(!u){return false;}if("unload"==y&&v!==this){p[p.length]=[u,y,j,v,h];return true;}var A=u;if(h){if(h===true){A=v;}else{A=h;}}var F=function(i){return j.call(A,YAHOO.util.Event.getEvent(i),v);};var r=[u,y,j,F,A];var g=m.length;m[g]=r;if(this.useLegacyEvent(u,y)){var W=this.getLegacyIndex(u,y);if(W==-1||u!=P[W][0]){W=P.length;T[u.id+y]=W;P[W]=[u,y,u["on"+y]];J[W]=[];u["on"+y]=function(i){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(i),W);};}J[W].push(r);}else{try{this._simpleAdd(u,y,F,false);}catch(C){this.lastError=C;this.removeListener(u,y,j);return false;}}return true;},fireLegacyEvent:function(W,u){var v=true,y,g,S,n,X;g=J[u];for(var h=0,F=g.length;h<F;++h){S=g[h];if(S&&S[this.WFN]){n=S[this.ADJ_SCOPE];X=S[this.WFN].call(n,W);v=(v&&X);}}y=P[u];if(y&&y[2]){y[2](W);}return v;},getLegacyIndex:function(h,u){var y=this.generateId(h)+u;if(typeof T[y]=="undefined"){return -1;}else{return T[y];}},useLegacyEvent:function(h,u){if(this.webkit&&("click"==u||"dblclick"==u)){var y=parseInt(this.webkit,10);if(!isNaN(y)&&y<418){return true;}}return false;},removeListener:function(h,y,n){var W,S;if(typeof h=="string"){h=this.getEl(h);}else{if(this._isValidCollection(h)){var C=true;for(W=0,S=h.length;W<S;++W){C=(this.removeListener(h[W],y,n)&&C);}return C;}}if(!n||!n.call){return this.purgeElement(h,false,y);}if("unload"==y){for(W=0,S=p.length;W<S;W++){var j=p[W];if(j&&j[0]==h&&j[1]==y&&j[2]==n){p.splice(W,1);return true;}}return false;}var X=null;var v=arguments[3];if("undefined"==typeof v){v=this._getCacheIndex(h,y,n);}if(v>=0){X=m[v];}if(!h||!X){return false;}if(this.useLegacyEvent(h,y)){var F=this.getLegacyIndex(h,y);var u=J[F];if(u){for(W=0,S=u.length;W<S;++W){j=u[W];if(j&&j[this.EL]==h&&j[this.TYPE]==y&&j[this.FN]==n){u.splice(W,1);break;}}}}else{try{this._simpleRemove(h,y,X[this.WFN],false);}catch(g){this.lastError=g;return false;}}delete m[v][this.WFN];delete m[v][this.FN];m.splice(v,1);return true;},getTarget:function(u,h){var y=u.target||u.srcElement;return this.resolveTextNode(y);},resolveTextNode:function(y){if(y&&3==y.nodeType){return y.parentNode;}else{return y;}},getPageX:function(h){var y=h.pageX;if(!y&&0!==y){y=h.clientX||0;if(this.isIE){y+=this._getScrollLeft();}}return y;},getPageY:function(h){var u=h.pageY;if(!u&&0!==u){u=h.clientY||0;if(this.isIE){u+=this._getScrollTop();}}return u;},getXY:function(y){return [this.getPageX(y),this.getPageY(y)];},getRelatedTarget:function(h){var y=h.relatedTarget;if(!y){if(h.type=="mouseout"){y=h.toElement;}else{if(h.type=="mouseover"){y=h.fromElement;}}}return this.resolveTextNode(y);},getTime:function(u){if(!u.time){var h=new Date().getTime();try{u.time=h;}catch(y){this.lastError=y;return h;}}return u.time;},stopEvent:function(y){this.stopPropagation(y);this.preventDefault(y);},stopPropagation:function(y){if(y.stopPropagation){y.stopPropagation();}else{y.cancelBubble=true;}},preventDefault:function(y){if(y.preventDefault){y.preventDefault();}else{y.returnValue=false;}},getEvent:function(h){var y=h||window.event;if(!y){var u=this.getEvent.caller;while(u){y=u.arguments[0];if(y&&Event==y.constructor){break;}u=u.caller;}}return y;},getCharCode:function(y){return y.charCode||y.keyCode||0;},_getCacheIndex:function(W,X,F){for(var u=0,h=m.length;u<h;++u){var y=m[u];if(y&&y[this.FN]==F&&y[this.EL]==W&&y[this.TYPE]==X){return u;}}return -1;},generateId:function(y){var h=y.id;if(!h){h="yuievtautoid-"+D;++D;y.id=h;}return h;},_isValidCollection:function(y){return (y&&y.length&&typeof y!="string"&&!y.tagName&&!y.alert&&typeof y[0]!="undefined");},elCache:{},getEl:function(y){return document.getElementById(y);},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(h){if(!R){R=true;var y=YAHOO.util.Event;y._ready();if(this.isIE){y._simpleRemove(window,"load",y._load);}}},_ready:function(h){if(!V){V=true;var y=YAHOO.util.Event;y.DOMReadyEvent.fire();y._simpleRemove(document,"DOMContentLoaded",y._ready);}},_tryPreloadAttach:function(){if(this.locked){return false;}if(this.isIE&&!V){return false;}this.locked=true;var X=!R;if(!X){X=(k>0);}var W=[];var v=function(g,n){var S=g;if(n.override){if(n.override===true){S=n.obj;}else{S=n.override;}}n.fn.call(S,n.obj);};var h,y,F,u;for(h=0,y=o.length;h<y;++h){F=o[h];if(F&&!F.checkReady){u=this.getEl(F.id);if(u){v(u,F);o[h]=null;}else{W.push(F);}}}for(h=0,y=o.length;h<y;++h){F=o[h];if(F&&F.checkReady){u=this.getEl(F.id);if(u){if(R||u.nextSibling){v(u,F);o[h]=null;}}else{W.push(F);}}}k=(W.length===0)?0:k-1;if(X){this.startInterval();}else{clearInterval(this._interval);this._interval=null;}this.locked=false;return true;},purgeElement:function(F,W,v){var X=this.getListeners(F,v);if(X){for(var u=0,y=X.length;u<y;++u){var h=X[u];this.removeListener(F,h.type,h.fn);}}if(W&&F&&F.childNodes){for(u=0,y=F.childNodes.length;u<y;++u){this.purgeElement(F.childNodes[u],W,v);}}},getListeners:function(u,y){var X=[],h;if(!y){h=[m,p];}else{if(y=="unload"){h=[p];}else{h=[m];}}for(var W=0;W<h.length;++W){var g=h[W];if(g&&g.length>0){for(var v=0,S=g.length;v<S;++v){var F=g[v];if(F&&F[this.EL]===u&&(!y||y===F[this.TYPE])){X.push({type:F[this.TYPE],fn:F[this.FN],obj:F[this.OBJ],adjust:F[this.ADJ_SCOPE],index:v});}}}}return (X.length)?X:null;},_unload:function(S){var v=YAHOO.util.Event,W,F,h,y,u;for(W=0,y=p.length;W<y;++W){h=p[W];if(h){var X=window;if(h[v.ADJ_SCOPE]){if(h[v.ADJ_SCOPE]===true){X=h[v.OBJ];}else{X=h[v.ADJ_SCOPE];}}h[v.FN].call(X,v.getEvent(S),h[v.OBJ]);p[W]=null;h=null;X=null;}}p=null;if(m&&m.length>0){F=m.length;while(F){u=F-1;h=m[u];if(h){v.removeListener(h[v.EL],h[v.TYPE],h[v.FN],u);}F=F-1;}h=null;v.clearCache();}for(W=0,y=P.length;W<y;++W){P[W][0]=null;P[W]=null;}P=null;v._simpleRemove(window,"unload",v._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var y=document.documentElement,h=document.body;if(y&&(y.scrollTop||y.scrollLeft)){return [y.scrollTop,y.scrollLeft];}else{if(h){return [h.scrollTop,h.scrollLeft];}else{return [0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(u,F,h,y){u.addEventListener(F,h,(y));};}else{if(window.attachEvent){return function(u,F,h,y){u.attachEvent("on"+F,h);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(u,F,h,y){u.removeEventListener(F,h,(y));};}else{if(window.detachEvent){return function(h,u,y){h.detachEvent("on"+u,y);};}else{return function(){};}}}()};}();(function(){var T=YAHOO.util.Event;T.on=T.addListener;if(T.isIE){document.write("<scr"+"ipt id=\"_yui_eu_dr\" defer=\"true\" src=\"//:\"></script>");var D=document.getElementById("_yui_eu_dr");D.onreadystatechange=function(){if("complete"==this.readyState){this.parentNode.removeChild(this);YAHOO.util.Event._ready();}};D=null;YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);}else{if(T.webkit){T._drwatch=setInterval(function(){var k=document.readyState;if("loaded"==k||"complete"==k){clearInterval(T._drwatch);T._drwatch=null;T._ready();}},T.POLL_INTERVAL);}else{T._simpleAdd(document,"DOMContentLoaded",T._ready);}}T._simpleAdd(window,"load",T._load);T._simpleAdd(window,"unload",T._unload);T._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(D,k,P,o){this.__yui_events=this.__yui_events||{};var J=this.__yui_events[D];if(J){J.subscribe(k,P,o);}else{this.__yui_subscribers=this.__yui_subscribers||{};var T=this.__yui_subscribers;if(!T[D]){T[D]=[];}T[D].push({fn:k,obj:P,override:o});}},unsubscribe:function(D,T,J){this.__yui_events=this.__yui_events||{};var k=this.__yui_events[D];if(k){return k.unsubscribe(T,J);}else{return false;}},unsubscribeAll:function(D){return this.unsubscribe(D);},createEvent:function(z,J){this.__yui_events=this.__yui_events||{};var D=J||{};var m=this.__yui_events;if(m[z]){}else{var R=D.scope||this;var o=D.silent||null;var T=new YAHOO.util.CustomEvent(z,R,o,YAHOO.util.CustomEvent.FLAT);m[z]=T;if(D.onSubscribeCallback){T.subscribeEvent.subscribe(D.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var P=this.__yui_subscribers[z];if(P){for(var k=0;k<P.length;++k){T.subscribe(P[k].fn,P[k].obj,P[k].override);}}}return m[z];},fireEvent:function(o,J,D,k){this.__yui_events=this.__yui_events||{};var z=this.__yui_events[o];if(z){var T=[];for(var P=1;P<arguments.length;++P){T.push(arguments[P]);}return z.fire.apply(z,T);}else{return null;}},hasEvent:function(D){if(this.__yui_events){if(this.__yui_events[D]){return true;}}return false;}};YAHOO.util.KeyListener=function(D,P,T,k){if(!D){}else{if(!P){}else{if(!T){}}}if(!k){k=YAHOO.util.KeyListener.KEYDOWN;}var J=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof D=="string"){D=document.getElementById(D);}if(typeof T=="function"){J.subscribe(T);}else{J.subscribe(T.fn,T.scope,T.correctScope);}function o(p,V){if(!P.shift){P.shift=false;}if(!P.alt){P.alt=false;}if(!P.ctrl){P.ctrl=false;}if(p.shiftKey==P.shift&&p.altKey==P.alt&&p.ctrlKey==P.ctrl){var R;var z;if(P.keys instanceof Array){for(var m=0;m<P.keys.length;m++){R=P.keys[m];if(R==p.charCode){J.fire(p.charCode,p);break;}else{if(R==p.keyCode){J.fire(p.keyCode,p);break;}}}}else{R=P.keys;if(R==p.charCode){J.fire(p.charCode,p);}else{if(R==p.keyCode){J.fire(p.keyCode,p);}}}}}this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(D,k,o);this.enabledEvent.fire(P);}this.enabled=true;};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(D,k,o);this.disabledEvent.fire(P);}this.enabled=false;};this.toString=function(){return "KeyListener ["+P.keys+"] "+D.tagName+(D.id?"["+D.id+"]":"");};};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.register("event",YAHOO.util.Event,{version:"2.2.2",build:"204"});(function(){var P=YAHOO.util,M,A,o=0,S={};var t=navigator.userAgent.toLowerCase(),e=(t.indexOf("opera")>-1),C=(t.indexOf("safari")>-1),D=(!e&&!C&&t.indexOf("gecko")>-1),Q=(!e&&t.indexOf("msie")>-1);var y={HYPHEN:/(-[a-z])/i,ROOT_TAG:/body|html/i};var f=function(i){if(!y.HYPHEN.test(i)){return i;}if(S[i]){return S[i];}var F=i;while(y.HYPHEN.exec(F)){F=F.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());}S[i]=F;return F;};if(document.defaultView&&document.defaultView.getComputedStyle){M=function(i,U){var Z=null;if(U=="float"){U="cssFloat";}var F=document.defaultView.getComputedStyle(i,"");if(F){Z=F[f(U)];}return i.style[U]||Z;};}else{if(document.documentElement.currentStyle&&Q){M=function(i,Z){switch(f(Z)){case "opacity":var E=100;try{E=i.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(U){try{E=i.filters("alpha").opacity;}catch(U){}}return E/100;break;case "float":Z="styleFloat";default:var F=i.currentStyle?i.currentStyle[Z]:null;return (i.style[Z]||F);}};}else{M=function(i,F){return i.style[F];};}}if(Q){A=function(i,F,Z){switch(F){case "opacity":if(YAHOO.lang.isString(i.style.filter)){i.style.filter="alpha(opacity="+Z*100+")";if(!i.currentStyle||!i.currentStyle.hasLayout){i.style.zoom=1;}}break;case "float":F="styleFloat";default:i.style[F]=Z;}};}else{A=function(i,F,Z){if(F=="float"){F="cssFloat";}i.style[F]=Z;};}YAHOO.util.Dom={get:function(U){if(YAHOO.lang.isString(U)){return document.getElementById(U);}if(YAHOO.lang.isArray(U)){var E=[];for(var Z=0,F=U.length;Z<F;++Z){E[E.length]=P.Dom.get(U[Z]);}return E;}if(U){return U;}return null;},getStyle:function(i,Z){Z=f(Z);var F=function(U){return M(U,Z);};return P.Dom.batch(i,F,P.Dom,true);},setStyle:function(i,Z,U){Z=f(Z);var F=function(E){A(E,Z,U);};P.Dom.batch(i,F,P.Dom,true);},getXY:function(i){var F=function(U){if((U.parentNode===null||U.offsetParent===null||this.getStyle(U,"display")=="none")&&U!=document.body){return false;}var Z=null;var T=[];var E;if(U.getBoundingClientRect){E=U.getBoundingClientRect();var a=document;if(!this.inDocument(U)&&parent.document!=document){a=parent.document;if(!this.isAncestor(a.documentElement,U)){return false;}}var K=Math.max(a.documentElement.scrollTop,a.body.scrollTop);var I=Math.max(a.documentElement.scrollLeft,a.body.scrollLeft);return [E.left+I,E.top+K];}else{T=[U.offsetLeft,U.offsetTop];Z=U.offsetParent;var u=this.getStyle(U,"position")=="absolute";if(Z!=U){while(Z){T[0]+=Z.offsetLeft;T[1]+=Z.offsetTop;if(C&&!u&&this.getStyle(Z,"position")=="absolute"){u=true;}Z=Z.offsetParent;}}if(C&&u){T[0]-=document.body.offsetLeft;T[1]-=document.body.offsetTop;}}Z=U.parentNode;while(Z.tagName&&!y.ROOT_TAG.test(Z.tagName)){if(P.Dom.getStyle(Z,"display").search(/^inline|table-row.*$/i)){T[0]-=Z.scrollLeft;T[1]-=Z.scrollTop;}Z=Z.parentNode;}return T;};return P.Dom.batch(i,F,P.Dom,true);},getX:function(i){var F=function(Z){return P.Dom.getXY(Z)[0];};return P.Dom.batch(i,F,P.Dom,true);},getY:function(i){var F=function(Z){return P.Dom.getXY(Z)[1];};return P.Dom.batch(i,F,P.Dom,true);},setXY:function(i,U,Z){var F=function(a){var K=this.getStyle(a,"position");if(K=="static"){this.setStyle(a,"position","relative");K="relative";}var u=this.getXY(a);if(u===false){return false;}var I=[parseInt(this.getStyle(a,"left"),10),parseInt(this.getStyle(a,"top"),10)];if(isNaN(I[0])){I[0]=(K=="relative")?0:a.offsetLeft;}if(isNaN(I[1])){I[1]=(K=="relative")?0:a.offsetTop;}if(U[0]!==null){a.style.left=U[0]-u[0]+I[0]+"px";}if(U[1]!==null){a.style.top=U[1]-u[1]+I[1]+"px";}if(!Z){var E=this.getXY(a);if((U[0]!==null&&E[0]!=U[0])||(U[1]!==null&&E[1]!=U[1])){this.setXY(a,U,true);}}};P.Dom.batch(i,F,P.Dom,true);},setX:function(F,i){P.Dom.setXY(F,[i,null]);},setY:function(i,F){P.Dom.setXY(i,[null,F]);},getRegion:function(i){var F=function(Z){var U=new P.Region.getRegion(Z);return U;};return P.Dom.batch(i,F,P.Dom,true);},getClientWidth:function(){return P.Dom.getViewportWidth();},getClientHeight:function(){return P.Dom.getViewportHeight();},getElementsByClassName:function(Z,i,F){var U=function(E){return P.Dom.hasClass(E,Z);};return P.Dom.getElementsBy(U,i,F);},hasClass:function(Z,F){var i=new RegExp("(?:^|\\s+)"+F+"(?:\\s+|$)");var U=function(E){return i.test(E.className);};return P.Dom.batch(Z,U,P.Dom,true);},addClass:function(F,i){var Z=function(U){if(this.hasClass(U,i)){return ;}U.className=[U.className,i].join(" ");};P.Dom.batch(F,Z,P.Dom,true);},removeClass:function(Z,F){var i=new RegExp("(?:^|\\s+)"+F+"(?:\\s+|$)","g");var U=function(E){if(!this.hasClass(E,F)){return ;}var K=E.className;E.className=K.replace(i," ");if(this.hasClass(E,F)){this.removeClass(E,F);}};P.Dom.batch(Z,U,P.Dom,true);},replaceClass:function(U,F,i){if(F===i){return false;}var Z=new RegExp("(?:^|\\s+)"+F+"(?:\\s+|$)","g");var E=function(K){if(!this.hasClass(K,F)){this.addClass(K,i);return ;}K.className=K.className.replace(Z," "+i+" ");if(this.hasClass(K,F)){this.replaceClass(K,F,i);}};P.Dom.batch(U,E,P.Dom,true);},generateId:function(i,Z){Z=Z||"yui-gen";i=i||{};var F=function(U){if(U){U=P.Dom.get(U);}else{U={};}if(!U.id){U.id=Z+o++;}return U.id;};return P.Dom.batch(i,F,P.Dom,true);},isAncestor:function(F,Z){F=P.Dom.get(F);if(!F||!Z){return false;}var i=function(E){if(F.contains&&!C){return F.contains(E);}else{if(F.compareDocumentPosition){return !!(F.compareDocumentPosition(E)&16);}else{var U=E.parentNode;while(U){if(U==F){return true;}else{if(!U.tagName||U.tagName.toUpperCase()=="HTML"){return false;}}U=U.parentNode;}return false;}}};return P.Dom.batch(Z,i,P.Dom,true);},inDocument:function(i){var F=function(Z){return this.isAncestor(document.documentElement,Z);};return P.Dom.batch(i,F,P.Dom,true);},getElementsBy:function(I,Z,U){Z=Z||"*";var E=[];if(U){U=P.Dom.get(U);if(!U){return E;}}else{U=document;}var a=U.getElementsByTagName(Z);if(!a.length&&(Z=="*"&&U.all)){a=U.all;}for(var K=0,F=a.length;K<F;++K){if(I(a[K])){E[E.length]=a[K];}}return E;},batch:function(K,F,E,U){var Z=K;K=P.Dom.get(K);var T=(U)?E:window;if(!K||K.tagName||!K.length){if(!K){return false;}return F.call(T,K,E);}var I=[];for(var a=0,u=K.length;a<u;++a){if(!K[a]){Z=K[a];}I[I.length]=F.call(T,K[a],E);}return I;},getDocumentHeight:function(){var F=(document.compatMode!="CSS1Compat")?document.body.scrollHeight:document.documentElement.scrollHeight;var i=Math.max(F,P.Dom.getViewportHeight());return i;},getDocumentWidth:function(){var F=(document.compatMode!="CSS1Compat")?document.body.scrollWidth:document.documentElement.scrollWidth;var i=Math.max(F,P.Dom.getViewportWidth());return i;},getViewportHeight:function(){var i=self.innerHeight;var F=document.compatMode;if((F||Q)&&!e){i=(F=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight;}return i;},getViewportWidth:function(){var i=self.innerWidth;var F=document.compatMode;if(F||Q){i=(F=="CSS1Compat")?document.documentElement.clientWidth:document.body.clientWidth;}return i;}};})();YAHOO.util.Region=function(e,y,D,P){this.top=e;this[1]=e;this.right=y;this.bottom=D;this.left=P;this[0]=P;};YAHOO.util.Region.prototype.contains=function(D){return (D.left>=this.left&&D.right<=this.right&&D.top>=this.top&&D.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return ((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(Q){var e=Math.max(this.top,Q.top);var y=Math.min(this.right,Q.right);var D=Math.min(this.bottom,Q.bottom);var P=Math.max(this.left,Q.left);if(D>=e&&y>=P){return new YAHOO.util.Region(e,y,D,P);}else{return null;}};YAHOO.util.Region.prototype.union=function(Q){var e=Math.min(this.top,Q.top);var y=Math.max(this.right,Q.right);var D=Math.max(this.bottom,Q.bottom);var P=Math.min(this.left,Q.left);return new YAHOO.util.Region(e,y,D,P);};YAHOO.util.Region.prototype.toString=function(){return ("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");};YAHOO.util.Region.getRegion=function(y){var o=YAHOO.util.Dom.getXY(y);var e=o[1];var Q=o[0]+y.offsetWidth;var D=o[1]+y.offsetHeight;var P=o[0];return new YAHOO.util.Region(e,Q,D,P);};YAHOO.util.Point=function(D,t){if(D instanceof Array){t=D[1];D=D[0];}this.x=this.right=this.left=this[0]=D;this.y=this.top=this.bottom=this[1]=t;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.2.2",build:"204"});if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var t=YAHOO.util.Event;return {ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initalized:false,locked:false,interactionInfo:null,init:function(){this.initialized=true;},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(q,e){for(var K in this.ids){for(var P in this.ids[K]){var C=this.ids[K][P];if(!this.isTypeOfDD(C)){continue;}C[q].apply(C,e);}}},_onLoad:function(){this.init();t.on(document,"mouseup",this.handleMouseUp,this,true);t.on(document,"mousemove",this.handleMouseMove,this,true);t.on(window,"unload",this._onUnload,this,true);t.on(window,"resize",this._onResize,this,true);},_onResize:function(P){this._execOnAll("resetConstraints",[]);},lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isLocked:function(){return this.locked;},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,regDragDrop:function(e,P){if(!this.initialized){this.init();}if(!this.ids[P]){this.ids[P]={};}this.ids[P][e.id]=e;},removeDDFromGroup:function(q,P){if(!this.ids[P]){this.ids[P]={};}var e=this.ids[P];if(e&&e[q.id]){delete e[q.id];}},_remove:function(e){for(var P in e.groups){if(P&&this.ids[P][e.id]){delete this.ids[P][e.id];}}delete this.handleIds[e.id];},regHandle:function(e,P){if(!this.handleIds[e]){this.handleIds[e]={};}this.handleIds[e][P]=P;},isDragDrop:function(P){return (this.getDDById(P))?true:false;},getRelated:function(C,e){var K=[];for(var q in C.groups){for(j in this.ids[q]){var P=this.ids[q][j];if(!this.isTypeOfDD(P)){continue;}if(!e||P.isTarget){K[K.length]=P;}}}return K;},isLegalTarget:function(C,K){var e=this.getRelated(C,true);for(var q=0,P=e.length;q<P;++q){if(e[q].id==K.id){return true;}}return false;},isTypeOfDD:function(P){return (P&&P.__ygDragDrop);},isHandle:function(e,P){return (this.handleIds[e]&&this.handleIds[e][P]);},getDDById:function(e){for(var P in this.ids){if(this.ids[P][e]){return this.ids[P][e];}}return null;},handleMouseDown:function(K,q){this.currentTarget=YAHOO.util.Event.getTarget(K);this.dragCurrent=q;var P=q.getEl();this.startX=YAHOO.util.Event.getPageX(K);this.startY=YAHOO.util.Event.getPageY(K);this.deltaX=this.startX-P.offsetLeft;this.deltaY=this.startY-P.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var e=YAHOO.util.DDM;e.startDrag(e.startX,e.startY);},this.clickTimeThresh);},startDrag:function(P,e){clearTimeout(this.clickTimeout);if(this.dragCurrent){this.dragCurrent.b4StartDrag(P,e);this.dragCurrent.startDrag(P,e);}this.dragThreshMet=true;},handleMouseUp:function(P){if(!this.dragCurrent){return ;}clearTimeout(this.clickTimeout);if(this.dragThreshMet){this.fireEvents(P,true);}else{}this.stopDrag(P);this.stopEvent(P);},stopEvent:function(P){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(P);}if(this.preventDefault){YAHOO.util.Event.preventDefault(P);}},stopDrag:function(P){if(this.dragCurrent){if(this.dragThreshMet){this.dragCurrent.b4EndDrag(P);this.dragCurrent.endDrag(P);}this.dragCurrent.onMouseUp(P);}this.dragCurrent=null;this.dragOvers={};},handleMouseMove:function(K){if(!this.dragCurrent){return true;}if(YAHOO.util.Event.isIE&&!K.button){this.stopEvent(K);return this.handleMouseUp(K);}if(!this.dragThreshMet){var q=Math.abs(this.startX-YAHOO.util.Event.getPageX(K));var P=Math.abs(this.startY-YAHOO.util.Event.getPageY(K));if(q>this.clickPixelThresh||P>this.clickPixelThresh){this.startDrag(this.startX,this.startY);}}if(this.dragThreshMet){this.dragCurrent.b4Drag(K);this.dragCurrent.onDrag(K);this.fireEvents(K,false);}this.stopEvent(K);return true;},fireEvents:function(R,k){var p=this.dragCurrent;if(!p||p.isLocked()){return ;}var l=YAHOO.util.Event.getPageX(R);var M=YAHOO.util.Event.getPageY(R);var b=new YAHOO.util.Point(l,M);var S=p.getTargetCoord(b.x,b.y);var q=p.getDragEl();curRegion=new YAHOO.util.Region(S.y,S.x+q.offsetWidth,S.y+q.offsetHeight,S.x);var C=[];var u=[];var P=[];var v=[];var r=[];for(var n in this.dragOvers){var m=this.dragOvers[n];if(!this.isTypeOfDD(m)){continue;}if(!this.isOverTarget(b,m,this.mode,curRegion)){u.push(m);}C[n]=true;delete this.dragOvers[n];}for(var T in p.groups){if("string"!=typeof T){continue;}for(n in this.ids[T]){var K=this.ids[T][n];if(!this.isTypeOfDD(K)){continue;}if(K.isTarget&&!K.isLocked()&&K!=p){if(this.isOverTarget(b,K,this.mode,curRegion)){if(k){v.push(K);}else{if(!C[K.id]){r.push(K);}else{P.push(K);}this.dragOvers[K.id]=K;}}}}}this.interactionInfo={out:u,enter:r,over:P,drop:v,point:b,draggedRegion:curRegion,sourceRegion:this.locationCache[p.id],validDrop:k};if(k&&!v.length){this.interactionInfo.validDrop=false;try{p.onInvalidDrop(R);}catch(w){}}if(this.mode){if(u.length){p.b4DragOut(R,u);p.onDragOut(R,u);}if(r.length){p.onDragEnter(R,r);}if(P.length){p.b4DragOver(R,P);p.onDragOver(R,P);}if(v.length){p.b4DragDrop(R,v);p.onDragDrop(R,v);}}else{var g=0;for(n=0,g=u.length;n<g;++n){p.b4DragOut(R,u[n].id);p.onDragOut(R,u[n].id);}for(n=0,g=r.length;n<g;++n){p.onDragEnter(R,r[n].id);}for(n=0,g=P.length;n<g;++n){p.b4DragOver(R,P[n].id);p.onDragOver(R,P[n].id);}for(n=0,g=v.length;n<g;++n){p.b4DragDrop(R,v[n].id);p.onDragDrop(R,v[n].id);}}},getBestMatch:function(q){var C=null;var e=q.length;if(e==1){C=q[0];}else{for(var K=0;K<e;++K){var P=q[K];if(this.mode==this.INTERSECT&&P.cursorIsOver){C=P;break;}else{if(!C||!C.overlap||(P.overlap&&C.overlap.getArea()<P.overlap.getArea())){C=P;}}}}return C;},refreshCache:function(e){var K=e||this.ids;for(var P in K){if("string"!=typeof P){continue;}for(var q in this.ids[P]){var C=this.ids[P][q];if(this.isTypeOfDD(C)){var x=this.getLocation(C);if(x){this.locationCache[C.id]=x;}else{delete this.locationCache[C.id];}}}}},verifyEl:function(q){try{if(q){var P=q.offsetParent;if(P){return true;}}}catch(K){}return false;},getLocation:function(S){if(!this.isTypeOfDD(S)){return null;}var C=S.getEl(),M,K,q,n,T,g,P,k,x;try{M=YAHOO.util.Dom.getXY(C);}catch(u){}if(!M){return null;}K=M[0];q=K+C.offsetWidth;n=M[1];T=n+C.offsetHeight;g=n-S.padding[0];P=q+S.padding[1];k=T+S.padding[2];x=K-S.padding[3];return new YAHOO.util.Region(g,P,k,x);},isOverTarget:function(k,P,q,K){var C=this.locationCache[P.id];if(!C||!this.useCache){C=this.getLocation(P);this.locationCache[P.id]=C;}if(!C){return false;}P.cursorIsOver=C.contains(k);var u=this.dragCurrent;if(!u||(!q&&!u.constrainX&&!u.constrainY)){return P.cursorIsOver;}P.overlap=null;if(!K){var x=u.getTargetCoord(k.x,k.y);var e=u.getDragEl();K=new YAHOO.util.Region(x.y,x.x+e.offsetWidth,x.y+e.offsetHeight,x.x);}var S=K.intersect(C);if(S){P.overlap=S;return (q)?true:P.cursorIsOver;}else{return false;}},_onUnload:function(q,P){this.unregAll();},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null;}this._execOnAll("unreg",[]);for(i in this.elementCache){delete this.elementCache[i];}this.elementCache={};this.ids={};},elementCache:{},getElWrapper:function(e){var P=this.elementCache[e];if(!P||!P.el){P=this.elementCache[e]=new this.ElementWrapper(YAHOO.util.Dom.get(e));}return P;},getElement:function(P){return YAHOO.util.Dom.get(P);},getCss:function(e){var P=YAHOO.util.Dom.get(e);return (P)?P.style:null;},ElementWrapper:function(P){this.el=P||null;this.id=this.el&&P.id;this.css=this.el&&P.style;},getPosX:function(P){return YAHOO.util.Dom.getX(P);},getPosY:function(P){return YAHOO.util.Dom.getY(P);},swapNode:function(q,P){if(q.swapNode){q.swapNode(P);}else{var K=P.parentNode;var e=P.nextSibling;if(e==q){K.insertBefore(q,P);}else{if(P==q.nextSibling){K.insertBefore(P,q);}else{q.parentNode.replaceChild(P,q);K.insertBefore(q,e);}}}},getScroll:function(){var q,P,K=document.documentElement,e=document.body;if(K&&(K.scrollTop||K.scrollLeft)){q=K.scrollTop;P=K.scrollLeft;}else{if(e){q=e.scrollTop;P=e.scrollLeft;}else{}}return {top:q,left:P};},getStyle:function(e,P){return YAHOO.util.Dom.getStyle(e,P);},getScrollTop:function(){return this.getScroll().top;},getScrollLeft:function(){return this.getScroll().left;},moveToEl:function(P,q){var e=YAHOO.util.Dom.getXY(q);YAHOO.util.Dom.setXY(P,e);},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight();},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth();},numericSort:function(e,P){return (e-P);},_timeoutCount:0,_addListeners:function(){var P=YAHOO.util.DDM;if(YAHOO.util.Event&&document){P._onLoad();}else{if(P._timeoutCount>2000){}else{setTimeout(P._addListeners,10);if(document&&document.body){P._timeoutCount+=1;}}}},handleWasClicked:function(P,q){if(this.isHandle(q,P.id)){return true;}else{var e=P.parentNode;while(e){if(this.isHandle(q,e.id)){return true;}else{e=e.parentNode;}}}return false;}};}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners();}(function(){var t=YAHOO.util.Event;var P=YAHOO.util.Dom;YAHOO.util.DragDrop=function(K,e,q){if(K){this.init(K,e,q);}};YAHOO.util.DragDrop.prototype={id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isTarget:true,padding:null,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,b4StartDrag:function(e,q){},startDrag:function(e,q){},b4Drag:function(q){},onDrag:function(q){},onDragEnter:function(q,K){},b4DragOver:function(q){},onDragOver:function(q,K){},b4DragOut:function(q){},onDragOut:function(q,K){},b4DragDrop:function(q){},onDragDrop:function(q,K){},onInvalidDrop:function(q){},b4EndDrag:function(q){},endDrag:function(q){},b4MouseDown:function(q){},onMouseDown:function(q){},onMouseUp:function(q){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=P.get(this.id);}return this._domRef;},getDragEl:function(){return P.get(this.dragElId);},init:function(K,e,q){this.initTarget(K,e,q);t.on(this.id,"mousedown",this.handleMouseDown,this,true);},initTarget:function(K,e,q){this.config=q||{};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof K!=="string"){K=P.generateId(K);}this.id=K;this.addToGroup((e)?e:"default");this.handleElId=K;t.onAvailable(K,this.handleOnAvailable,this,true);this.setDragElId(K);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable();},setPadding:function(K,e,C,q){if(!e&&0!==e){this.padding=[K,K,K,K];}else{if(!C&&0!==C){this.padding=[K,e,K,e];}else{this.padding=[K,e,C,q];}}},setInitPosition:function(C,K){var x=this.getEl();if(!this.DDM.verifyEl(x)){return ;}var q=C||0;var e=K||0;var S=P.getXY(x);this.initPageX=S[0]-q;this.initPageY=S[1]-e;this.lastPageX=S[0];this.lastPageY=S[1];this.setStartPosition(S);},setStartPosition:function(q){var e=q||P.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=e[0];this.startPageY=e[1];},addToGroup:function(e){this.groups[e]=true;this.DDM.regDragDrop(this,e);},removeFromGroup:function(e){if(this.groups[e]){delete this.groups[e];}this.DDM.removeDDFromGroup(this,e);},setDragElId:function(e){this.dragElId=e;},setHandleElId:function(e){if(typeof e!=="string"){e=P.generateId(e);}this.handleElId=e;this.DDM.regHandle(this.id,e);},setOuterHandleElId:function(e){if(typeof e!=="string"){e=P.generateId(e);}t.on(e,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(e);this.hasOuterHandles=true;},unreg:function(){t.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this);},isLocked:function(){return (this.DDM.isLocked()||this.locked);},handleMouseDown:function(x,C){var q=x.which||x.button;if(this.primaryButtonOnly&&q>1){return ;}if(this.isLocked()){return ;}this.b4MouseDown(x);this.onMouseDown(x);this.DDM.refreshCache(this.groups);var K=new YAHOO.util.Point(t.getPageX(x),t.getPageY(x));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(K,this)){}else{if(this.clickValidator(x)){this.setStartPosition();this.DDM.handleMouseDown(x,this);this.DDM.stopEvent(x);}else{}}},clickValidator:function(K){var q=t.getTarget(K);return (this.isValidHandleChild(q)&&(this.id==this.handleElId||this.DDM.handleWasClicked(q,this.id)));},getTargetCoord:function(K,q){var e=K-this.deltaX;var C=q-this.deltaY;if(this.constrainX){if(e<this.minX){e=this.minX;}if(e>this.maxX){e=this.maxX;}}if(this.constrainY){if(C<this.minY){C=this.minY;}if(C>this.maxY){C=this.maxY;}}e=this.getTick(e,this.xTicks);C=this.getTick(C,this.yTicks);return {x:e,y:C};},addInvalidHandleType:function(e){var q=e.toUpperCase();this.invalidHandleTypes[q]=q;},addInvalidHandleId:function(e){if(typeof e!=="string"){e=P.generateId(e);}this.invalidHandleIds[e]=e;},addInvalidHandleClass:function(e){this.invalidHandleClasses.push(e);},removeInvalidHandleType:function(e){var q=e.toUpperCase();delete this.invalidHandleTypes[q];},removeInvalidHandleId:function(e){if(typeof e!=="string"){e=P.generateId(e);}delete this.invalidHandleIds[e];},removeInvalidHandleClass:function(q){for(var K=0,e=this.invalidHandleClasses.length;K<e;++K){if(this.invalidHandleClasses[K]==q){delete this.invalidHandleClasses[K];}}},isValidHandleChild:function(x){var C=true;var u;try{u=x.nodeName.toUpperCase();}catch(S){u=x.nodeName;}C=C&&!this.invalidHandleTypes[u];C=C&&!this.invalidHandleIds[x.id];for(var K=0,q=this.invalidHandleClasses.length;C&&K<q;++K){C=!P.hasClass(x,this.invalidHandleClasses[K]);}return C;},setXTicks:function(C,e){this.xTicks=[];this.xTickSize=e;var K={};for(var q=this.initPageX;q>=this.minX;q=q-e){if(!K[q]){this.xTicks[this.xTicks.length]=q;K[q]=true;}}for(q=this.initPageX;q<=this.maxX;q=q+e){if(!K[q]){this.xTicks[this.xTicks.length]=q;K[q]=true;}}this.xTicks.sort(this.DDM.numericSort);},setYTicks:function(C,e){this.yTicks=[];this.yTickSize=e;var K={};for(var q=this.initPageY;q>=this.minY;q=q-e){if(!K[q]){this.yTicks[this.yTicks.length]=q;K[q]=true;}}for(q=this.initPageY;q<=this.maxY;q=q+e){if(!K[q]){this.yTicks[this.yTicks.length]=q;K[q]=true;}}this.yTicks.sort(this.DDM.numericSort);},setXConstraint:function(K,q,e){this.leftConstraint=parseInt(K,10);this.rightConstraint=parseInt(q,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(e){this.setXTicks(this.initPageX,e);}this.constrainX=true;},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks();},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0;},setYConstraint:function(e,K,q){this.topConstraint=parseInt(e,10);this.bottomConstraint=parseInt(K,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(q){this.setYTicks(this.initPageY,q);}this.constrainY=true;},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var q=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var e=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(q,e);}else{this.setInitPosition();}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize);}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize);}},getTick:function(u,C){if(!C){return u;}else{if(C[0]>=u){return C[0];}else{for(var q=0,e=C.length;q<e;++q){var K=q+1;if(C[K]&&C[K]>=u){var S=u-C[q];var x=C[K]-u;return (x>S)?C[q]:C[K];}}return C[C.length-1];}}},toString:function(){return ("DragDrop "+this.id);}};})();YAHOO.util.DD=function(e,t,P){if(e){this.init(e,t,P);}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(e,P){var t=e-this.startPageX;var q=P-this.startPageY;this.setDelta(t,q);},setDelta:function(P,t){this.deltaX=P;this.deltaY=t;},setDragElPos:function(e,P){var t=this.getDragEl();this.alignElWithMouse(t,e,P);},alignElWithMouse:function(P,C,K){var q=this.getTargetCoord(C,K);if(!this.deltaSetXY){var x=[q.x,q.y];YAHOO.util.Dom.setXY(P,x);var e=parseInt(YAHOO.util.Dom.getStyle(P,"left"),10);var t=parseInt(YAHOO.util.Dom.getStyle(P,"top"),10);this.deltaSetXY=[e-q.x,t-q.y];}else{YAHOO.util.Dom.setStyle(P,"left",(q.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(P,"top",(q.y+this.deltaSetXY[1])+"px");}this.cachePosition(q.x,q.y);this.autoScroll(q.x,q.y,P.offsetHeight,P.offsetWidth);},cachePosition:function(P,t){if(P){this.lastPageX=P;this.lastPageY=t;}else{var e=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=e[0];this.lastPageY=e[1];}},autoScroll:function(M,k,K,l){if(this.scroll){var b=this.DDM.getClientHeight();var P=this.DDM.getClientWidth();var n=this.DDM.getScrollTop();var q=this.DDM.getScrollLeft();var u=K+k;var T=l+M;var S=(b+n-k-this.deltaY);var C=(P+q-M-this.deltaX);var e=40;var t=(document.all)?80:30;if(u>b&&S<e){window.scrollTo(q,n+t);}if(k<n&&n>0&&k-n<e){window.scrollTo(q,n-t);}if(T>P&&C<e){window.scrollTo(q+t,n);}if(M<q&&q>0&&M-q<e){window.scrollTo(q-t,n);}}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false);},b4MouseDown:function(t){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(t),YAHOO.util.Event.getPageY(t));},b4Drag:function(t){this.setDragElPos(YAHOO.util.Event.getPageX(t),YAHOO.util.Event.getPageY(t));},toString:function(){return ("DD "+this.id);}});YAHOO.util.DDProxy=function(e,t,P){if(e){this.init(e,t,P);this.initFrame();}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var P=this;var t=document.body;if(!t||!t.firstChild){setTimeout(function(){P.createFrame();},50);return ;}var q=this.getDragEl();if(!q){q=document.createElement("div");q.id=this.dragElId;var e=q.style;e.position="absolute";e.visibility="hidden";e.cursor="move";e.border="2px solid #aaa";e.zIndex=999;t.insertBefore(q,t.firstChild);}},initFrame:function(){this.createFrame();},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId);},showFrame:function(K,q){var e=this.getEl();var t=this.getDragEl();var P=t.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(P.width,10)/2),Math.round(parseInt(P.height,10)/2));}this.setDragElPos(K,q);YAHOO.util.Dom.setStyle(t,"visibility","visible");},_resizeProxy:function(){if(this.resizeFrame){var S=YAHOO.util.Dom;var P=this.getEl();var e=this.getDragEl();var x=parseInt(S.getStyle(e,"borderTopWidth"),10);var u=parseInt(S.getStyle(e,"borderRightWidth"),10);var C=parseInt(S.getStyle(e,"borderBottomWidth"),10);var q=parseInt(S.getStyle(e,"borderLeftWidth"),10);if(isNaN(x)){x=0;}if(isNaN(u)){u=0;}if(isNaN(C)){C=0;}if(isNaN(q)){q=0;}var K=Math.max(0,P.offsetWidth-u-q);var t=Math.max(0,P.offsetHeight-x-C);S.setStyle(e,"width",K+"px");S.setStyle(e,"height",t+"px");}},b4MouseDown:function(P){this.setStartPosition();var t=YAHOO.util.Event.getPageX(P);var q=YAHOO.util.Event.getPageY(P);this.autoOffset(t,q);this.setDragElPos(t,q);},b4StartDrag:function(t,P){this.showFrame(t,P);},b4EndDrag:function(t){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden");},endDrag:function(K){var q=YAHOO.util.Dom;var P=this.getEl();var t=this.getDragEl();q.setStyle(t,"visibility","");q.setStyle(P,"visibility","hidden");YAHOO.util.DDM.moveToEl(P,t);q.setStyle(t,"visibility","hidden");q.setStyle(P,"visibility","");},toString:function(){return ("DDProxy "+this.id);}});YAHOO.util.DDTarget=function(e,t,P){if(e){this.initTarget(e,t,P);}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return ("DDTarget "+this.id);}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.2.2",build:"204"});YAHOO.util.Anim=function(m,H,u,D){if(m){this.init(m,H,u,D);}};YAHOO.util.Anim.prototype={toString:function(){var H=this.getEl();var m=H.id||H.tagName;return ("Anim "+m);},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(H,u,m){return this.method(this.currentFrame,u,m-u,this.totalFrames);},setAttribute:function(H,u,m){if(this.patterns.noNegatives.test(H)){u=(u>0)?u:0;}YAHOO.util.Dom.setStyle(this.getEl(),H,u+m);},getAttribute:function(H){var u=this.getEl();var F=YAHOO.util.Dom.getStyle(u,H);if(F!=="auto"&&!this.patterns.offsetUnit.test(F)){return parseFloat(F);}var m=this.patterns.offsetAttribute.exec(H)||[];var o=!!(m[3]);var D=!!(m[2]);if(D||(YAHOO.util.Dom.getStyle(u,"position")=="absolute"&&o)){F=u["offset"+m[0].charAt(0).toUpperCase()+m[0].substr(1)];}else{F=0;}return F;},getDefaultUnit:function(H){if(this.patterns.defaultUnit.test(H)){return "px";}return "";},setRuntimeAttribute:function(m){var Y;var u;var D=this.attributes;this.runtimeAttributes[m]={};var o=function(Q){return (typeof Q!=="undefined");};if(!o(D[m]["to"])&&!o(D[m]["by"])){return false;}Y=(o(D[m]["from"]))?D[m]["from"]:this.getAttribute(m);if(o(D[m]["to"])){u=D[m]["to"];}else{if(o(D[m]["by"])){if(Y.constructor==Array){u=[];for(var F=0,H=Y.length;F<H;++F){u[F]=Y[F]+D[m]["by"][F];}}else{u=Y+D[m]["by"];}}}this.runtimeAttributes[m].start=Y;this.runtimeAttributes[m].end=u;this.runtimeAttributes[m].unit=(o(D[m].unit))?D[m]["unit"]:this.getDefaultUnit(m);},init:function(u,Q,Y,H){var m=false;var D=null;var o=0;u=YAHOO.util.Dom.get(u);this.attributes=Q||{};this.duration=Y||1;this.method=H||YAHOO.util.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=YAHOO.util.AnimMgr.fps;this.getEl=function(){return u;};this.isAnimated=function(){return m;};this.getStartTime=function(){return D;};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false;}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(YAHOO.util.AnimMgr.fps*this.duration):this.duration;YAHOO.util.AnimMgr.registerElement(this);};this.stop=function(y){if(y){this.currentFrame=this.totalFrames;this._onTween.fire();}YAHOO.util.AnimMgr.stop(this);};var j=function(){this.onStart.fire();this.runtimeAttributes={};for(var y in this.attributes){this.setRuntimeAttribute(y);}m=true;o=0;D=new Date();};var g=function(){var l={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};l.toString=function(){return ("duration: "+l.duration+", currentFrame: "+l.currentFrame);};this.onTween.fire(l);var f=this.runtimeAttributes;for(var y in f){this.setAttribute(y,this.doMethod(y,f[y].start,f[y].end),f[y].unit);}o+=1;};var F=function(){var y=(new Date()-D)/1000;var f={duration:y,frames:o,fps:o/y};f.toString=function(){return ("duration: "+f.duration+", frames: "+f.frames+", fps: "+f.fps);};m=false;o=0;this.onComplete.fire(f);};this._onStart=new YAHOO.util.CustomEvent("_start",this,true);this.onStart=new YAHOO.util.CustomEvent("start",this);this.onTween=new YAHOO.util.CustomEvent("tween",this);this._onTween=new YAHOO.util.CustomEvent("_tween",this,true);this.onComplete=new YAHOO.util.CustomEvent("complete",this);this._onComplete=new YAHOO.util.CustomEvent("_complete",this,true);this._onStart.subscribe(j);this._onTween.subscribe(g);this._onComplete.subscribe(F);}};YAHOO.util.AnimMgr=new function(){var u=null;var m=[];var H=0;this.fps=1000;this.delay=1;this.registerElement=function(o){m[m.length]=o;H+=1;o._onStart.fire();this.start();};this.unRegister=function(Y,o){Y._onComplete.fire();o=o||F(Y);if(o!=-1){m.splice(o,1);}H-=1;if(H<=0){this.stop();}};this.start=function(){if(u===null){u=setInterval(this.run,this.delay);}};this.stop=function(Q){if(!Q){clearInterval(u);for(var Y=0,o=m.length;Y<o;++Y){if(m[0].isAnimated()){this.unRegister(m[0],0);}}m=[];u=null;H=0;}else{this.unRegister(Q);}};this.run=function(){for(var Q=0,o=m.length;Q<o;++Q){var Y=m[Q];if(!Y||!Y.isAnimated()){continue;}if(Y.currentFrame<Y.totalFrames||Y.totalFrames===null){Y.currentFrame+=1;if(Y.useSeconds){D(Y);}Y._onTween.fire();}else{YAHOO.util.AnimMgr.stop(Y,Q);}}};var F=function(Q){for(var Y=0,o=m.length;Y<o;++Y){if(m[Y]==Q){return Y;}}return -1;};var D=function(Y){var j=Y.totalFrames;var g=Y.currentFrame;var Q=(Y.currentFrame*Y.duration*1000/Y.totalFrames);var o=(new Date()-Y.getStartTime());var y=0;if(o<Y.duration*1000){y=Math.round((o/Q-1)*Y.currentFrame);}else{y=j-(g+1);}if(y>0&&isFinite(y)){if(Y.currentFrame+y>=j){y=j-(g+1);}Y.currentFrame+=y;}};};YAHOO.util.Bezier=new function(){this.getPosition=function(F,D){var o=F.length;var u=[];for(var m=0;m<o;++m){u[m]=[F[m][0],F[m][1]];}for(var H=1;H<o;++H){for(m=0;m<o-H;++m){u[m][0]=(1-D)*u[m][0]+D*u[parseInt(m+1,10)][0];u[m][1]=(1-D)*u[m][1]+D*u[parseInt(m+1,10)][1];}}return [u[0][0],u[0][1]];};};(function(){YAHOO.util.ColorAnim=function(F,D,o,Y){YAHOO.util.ColorAnim.superclass.constructor.call(this,F,D,o,Y);};YAHOO.extend(YAHOO.util.ColorAnim,YAHOO.util.Anim);var m=YAHOO.util;var u=m.ColorAnim.superclass;var H=m.ColorAnim.prototype;H.toString=function(){var D=this.getEl();var F=D.id||D.tagName;return ("ColorAnim "+F);};H.patterns.color=/color$/i;H.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;H.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;H.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;H.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;H.parseColor=function(D){if(D.length==3){return D;}var F=this.patterns.hex.exec(D);if(F&&F.length==4){return [parseInt(F[1],16),parseInt(F[2],16),parseInt(F[3],16)];}F=this.patterns.rgb.exec(D);if(F&&F.length==4){return [parseInt(F[1],10),parseInt(F[2],10),parseInt(F[3],10)];}F=this.patterns.hex3.exec(D);if(F&&F.length==4){return [parseInt(F[1]+F[1],16),parseInt(F[2]+F[2],16),parseInt(F[3]+F[3],16)];}return null;};H.getAttribute=function(D){var o=this.getEl();if(this.patterns.color.test(D)){var Y=YAHOO.util.Dom.getStyle(o,D);if(this.patterns.transparent.test(Y)){var F=o.parentNode;Y=m.Dom.getStyle(F,D);while(F&&this.patterns.transparent.test(Y)){F=F.parentNode;Y=m.Dom.getStyle(F,D);if(F.tagName.toUpperCase()=="HTML"){Y="#fff";}}}}else{Y=u.getAttribute.call(this,D);}return Y;};H.doMethod=function(F,g,o){var Q;if(this.patterns.color.test(F)){Q=[];for(var Y=0,D=g.length;Y<D;++Y){Q[Y]=u.doMethod.call(this,F,g[Y],o[Y]);}Q="rgb("+Math.floor(Q[0])+","+Math.floor(Q[1])+","+Math.floor(Q[2])+")";}else{Q=u.doMethod.call(this,F,g,o);}return Q;};H.setRuntimeAttribute=function(F){u.setRuntimeAttribute.call(this,F);if(this.patterns.color.test(F)){var Y=this.attributes;var g=this.parseColor(this.runtimeAttributes[F].start);var o=this.parseColor(this.runtimeAttributes[F].end);if(typeof Y[F]["to"]==="undefined"&&typeof Y[F]["by"]!=="undefined"){o=this.parseColor(Y[F].by);for(var Q=0,D=g.length;Q<D;++Q){o[Q]=g[Q]+o[Q];}}this.runtimeAttributes[F].start=g;this.runtimeAttributes[F].end=o;}};})();YAHOO.util.Easing={easeNone:function(m,H,D,u){return D*m/u+H;},easeIn:function(m,H,D,u){return D*(m/=u)*m+H;},easeOut:function(m,H,D,u){return -D*(m/=u)*(m-2)+H;},easeBoth:function(m,H,D,u){if((m/=u/2)<1){return D/2*m*m+H;}return -D/2*((--m)*(m-2)-1)+H;},easeInStrong:function(m,H,D,u){return D*(m/=u)*m*m*m+H;},easeOutStrong:function(m,H,D,u){return -D*((m=m/u-1)*m*m*m-1)+H;},easeBothStrong:function(m,H,D,u){if((m/=u/2)<1){return D/2*m*m*m*m+H;}return -D/2*((m-=2)*m*m*m-2)+H;},elasticIn:function(u,H,Y,o,m,F){if(u==0){return H;}if((u/=o)==1){return H+Y;}if(!F){F=o*0.3;}if(!m||m<Math.abs(Y)){m=Y;var D=F/4;}else{var D=F/(2*Math.PI)*Math.asin(Y/m);}return -(m*Math.pow(2,10*(u-=1))*Math.sin((u*o-D)*(2*Math.PI)/F))+H;},elasticOut:function(u,H,Y,o,m,F){if(u==0){return H;}if((u/=o)==1){return H+Y;}if(!F){F=o*0.3;}if(!m||m<Math.abs(Y)){m=Y;var D=F/4;}else{var D=F/(2*Math.PI)*Math.asin(Y/m);}return m*Math.pow(2,-10*u)*Math.sin((u*o-D)*(2*Math.PI)/F)+Y+H;},elasticBoth:function(u,H,Y,o,m,F){if(u==0){return H;}if((u/=o/2)==2){return H+Y;}if(!F){F=o*(0.3*1.5);}if(!m||m<Math.abs(Y)){m=Y;var D=F/4;}else{var D=F/(2*Math.PI)*Math.asin(Y/m);}if(u<1){return -0.5*(m*Math.pow(2,10*(u-=1))*Math.sin((u*o-D)*(2*Math.PI)/F))+H;}return m*Math.pow(2,-10*(u-=1))*Math.sin((u*o-D)*(2*Math.PI)/F)*0.5+Y+H;},backIn:function(m,H,F,D,u){if(typeof u=="undefined"){u=1.70158;}return F*(m/=D)*m*((u+1)*m-u)+H;},backOut:function(m,H,F,D,u){if(typeof u=="undefined"){u=1.70158;}return F*((m=m/D-1)*m*((u+1)*m+u)+1)+H;},backBoth:function(m,H,F,D,u){if(typeof u=="undefined"){u=1.70158;}if((m/=D/2)<1){return F/2*(m*m*(((u*=(1.525))+1)*m-u))+H;}return F/2*((m-=2)*m*(((u*=(1.525))+1)*m+u)+2)+H;},bounceIn:function(m,H,D,u){return D-YAHOO.util.Easing.bounceOut(u-m,0,D,u)+H;},bounceOut:function(m,H,D,u){if((m/=u)<(1/2.75)){return D*(7.5625*m*m)+H;}else{if(m<(2/2.75)){return D*(7.5625*(m-=(1.5/2.75))*m+0.75)+H;}else{if(m<(2.5/2.75)){return D*(7.5625*(m-=(2.25/2.75))*m+0.9375)+H;}}}return D*(7.5625*(m-=(2.625/2.75))*m+0.984375)+H;},bounceBoth:function(m,H,D,u){if(m<u/2){return YAHOO.util.Easing.bounceIn(m*2,0,D,u)*0.5+H;}return YAHOO.util.Easing.bounceOut(m*2-u,0,D,u)*0.5+D*0.5+H;}};(function(){YAHOO.util.Motion=function(Y,o,Q,g){if(Y){YAHOO.util.Motion.superclass.constructor.call(this,Y,o,Q,g);}};YAHOO.extend(YAHOO.util.Motion,YAHOO.util.ColorAnim);var D=YAHOO.util;var F=D.Motion.superclass;var m=D.Motion.prototype;m.toString=function(){var o=this.getEl();var Y=o.id||o.tagName;return ("Motion "+Y);};m.patterns.points=/^points$/i;m.setAttribute=function(o,Q,Y){if(this.patterns.points.test(o)){Y=Y||"px";F.setAttribute.call(this,"left",Q[0],Y);F.setAttribute.call(this,"top",Q[1],Y);}else{F.setAttribute.call(this,o,Q,Y);}};m.getAttribute=function(o){if(this.patterns.points.test(o)){var Y=[F.getAttribute.call(this,"left"),F.getAttribute.call(this,"top")];}else{Y=F.getAttribute.call(this,o);}return Y;};m.doMethod=function(o,j,Y){var g=null;if(this.patterns.points.test(o)){var Q=this.method(this.currentFrame,0,100,this.totalFrames)/100;g=D.Bezier.getPosition(this.runtimeAttributes[o],Q);}else{g=F.doMethod.call(this,o,j,Y);}return g;};m.setRuntimeAttribute=function(L){if(this.patterns.points.test(L)){var Y=this.getEl();var g=this.attributes;var o;var y=g["points"]["control"]||[];var Q;var f,M;if(y.length>0&&!(y[0] instanceof Array)){y=[y];}else{var j=[];for(f=0,M=y.length;f<M;++f){j[f]=y[f];}y=j;}if(D.Dom.getStyle(Y,"position")=="static"){D.Dom.setStyle(Y,"position","relative");}if(u(g["points"]["from"])){D.Dom.setXY(Y,g["points"]["from"]);}else{D.Dom.setXY(Y,D.Dom.getXY(Y));}o=this.getAttribute("points");if(u(g["points"]["to"])){Q=H.call(this,g["points"]["to"],o);var l=D.Dom.getXY(this.getEl());for(f=0,M=y.length;f<M;++f){y[f]=H.call(this,y[f],o);}}else{if(u(g["points"]["by"])){Q=[o[0]+g["points"]["by"][0],o[1]+g["points"]["by"][1]];for(f=0,M=y.length;f<M;++f){y[f]=[o[0]+y[f][0],o[1]+y[f][1]];}}}this.runtimeAttributes[L]=[o];if(y.length>0){this.runtimeAttributes[L]=this.runtimeAttributes[L].concat(y);}this.runtimeAttributes[L][this.runtimeAttributes[L].length]=Q;}else{F.setRuntimeAttribute.call(this,L);}};var H=function(o,Q){var Y=D.Dom.getXY(this.getEl());o=[o[0]-Y[0]+Q[0],o[1]-Y[1]+Q[1]];return o;};var u=function(o){return (typeof o!=="undefined");};})();(function(){YAHOO.util.Scroll=function(F,D,o,Y){if(F){YAHOO.util.Scroll.superclass.constructor.call(this,F,D,o,Y);}};YAHOO.extend(YAHOO.util.Scroll,YAHOO.util.ColorAnim);var m=YAHOO.util;var u=m.Scroll.superclass;var H=m.Scroll.prototype;H.toString=function(){var D=this.getEl();var F=D.id||D.tagName;return ("Scroll "+F);};H.doMethod=function(D,Y,F){var o=null;if(D=="scroll"){o=[this.method(this.currentFrame,Y[0],F[0]-Y[0],this.totalFrames),this.method(this.currentFrame,Y[1],F[1]-Y[1],this.totalFrames)];}else{o=u.doMethod.call(this,D,Y,F);}return o;};H.getAttribute=function(D){var o=null;var F=this.getEl();if(D=="scroll"){o=[F.scrollLeft,F.scrollTop];}else{o=u.getAttribute.call(this,D);}return o;};H.setAttribute=function(D,Y,o){var F=this.getEl();if(D=="scroll"){F.scrollLeft=Y[0];F.scrollTop=Y[1];}else{u.setAttribute.call(this,D,Y,o);}};})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.2.2",build:"204"});yui=window.yui||{};yui.CustomEvent=function(P,U){this.type=P;this.scope=U||window;this.subscribers=[];if(yui["Event"]){yui.Event.regCE(this);}};yui.CustomEvent.prototype.subscribe=function(P,U){this.subscribers.push(new yui.Subscriber(P,U));};yui.CustomEvent.prototype.unsubscribe=function(o,P){for(var U=0;U<this.subscribers.length;++U){var G=this.subscribers[U];if(G&&G.contains(o,P)){this._delete(U);}}};yui.CustomEvent.prototype.fire=function(){for(var U=0;U<this.subscribers.length;++U){var P=this.subscribers[U];if(P){P.fn.call(this.scope,this.type,arguments,P.obj);}}};yui.CustomEvent.prototype.unsubscribeAll=function(){for(var U=0;U<this.subscribers.length;++U){this._delete(U);}};yui.CustomEvent.prototype._delete=function(U){var P=this.subscribers[U];if(P){delete P.fn;delete P.obj;}delete this.subscribers[U];};yui.Subscriber=function(P,U){this.fn=P;this.obj=U||null;};yui.Subscriber.prototype.contains=function(U,P){return (this.fn==U&&this.obj==P);};yui=window.yui||{};yui.Event=new function(){var U=this;this.loadComplete=false;this.listeners=[];this.delayedListeners=[];this.unloadListeners=[];this.customEvents=[];this.legacyEvents=[];this.legacyHandlers=[];this.EL=0;this.TYPE=1;this.FN=2;this.WFN=3;this.SCOPE=3;this.isSafari=(navigator.userAgent.match(/safari/gi));this.isIE=(!this.isSafari&&navigator.userAgent.match(/msie/gi));this.addListener=function(G,Z,C,Q){if(this._isValidCollection(G)){for(var l=0;l<G.length;++l){this.on(G[l],Z,C,Q);}return ;}else{if(typeof G=="string"){if(this.loadComplete){G=this.getEl(G);}else{this.delayedListeners[this.delayedListeners.length]=[G,Z,C,Q];return ;}}}if(!G){return ;}if("unload"==Z&&Q!==this){this.unloadListeners[this.unloadListeners.length]=[G,Z,C,Q];return ;}var j=function(J){return C.call(G,U.getEvent(J),Q);};var a=[G,Z,C,j];var o=this.listeners.length;this.listeners[o]=a;if(this.useLegacyEvent(G,Z)){var P=this.getLegacyIndex(G,Z);if(P==-1){P=this.legacyEvents.length;this.legacyEvents[P]=[G,Z,G["on"+Z]];this.legacyHandlers[P]=[];G["on"+Z]=function(J){U.fireLegacyEvent(U.getEvent(J),P);};}this.legacyHandlers[P].push(o);}else{if(G.addEventListener){G.addEventListener(Z,j,false);}else{if(G.attachEvent){G.attachEvent("on"+Z,j);}}}};this.on=this.addListener;this.fireLegacyEvent=function(Z,P){var j=true;var Q=U.legacyEvents[0];var o=U.legacyHandlers[P];for(i=0;i<o.length;++i){var l=o[i];if(l){var G=U.listeners[l][U.WFN].call(Q,Z);j=(j&&G);}}return j;};this.getLegacyIndex=function(o,j){for(var G=0;G<this.legacyEvents.length;++G){var P=this.legacyEvents[G];if(P&&P[0]==o&&P[1]==j){return G;}}return -1;};this.useLegacyEvent=function(P,G){return ((!P.addEventListener&&!P.attachEvent)||(G=="click"&&this.isSafari));};this.removeListener=function(Z,Q,j){if(typeof Z=="string"){Z=this.getEl(Z);}else{if(this._isValidCollection(Z)){for(var o=0;o<Z.length;++o){this.removeListener(Z[o],Q,j);}return ;}}var G=null;var P=this._getCacheIndex(Z,Q,j);if(P>=0){G=this.listeners[P];}if(!Z||!G){return false;}if(Z.removeEventListener){Z.removeEventListener(Q,G[this.WFN],false);}else{if(Z.detachEvent){Z.detachEvent("on"+Q,G[this.WFN]);}}delete this.listeners[P][this.WFN];delete this.listeners[P][this.FN];delete this.listeners[P];return true;};this.getTarget=function(o,P){var G=o.target||o.srcElement;if(P&&G&&"#text"==G.nodeName){return G.parentNode;}else{return G;}};this.getPageX=function(G){var P=G.pageX;if(!P&&0!==P){P=G.clientX||0;if(this.isIE){P+=this._getScrollLeft();}}return P;};this.getPageY=function(P){var G=P.pageY;if(!G&&0!==G){G=P.clientY||0;if(this.isIE){G+=this._getScrollTop();}}return G;};this.getRelatedTarget=function(G){var P=G.relatedTarget;if(!P){if(G.type=="mouseout"){P=G.toElement;}else{if(G.type=="mouseover"){P=G.fromElement;}}}return P;};this.getTime=function(G){if(!G.time){var P=new Date().getTime();try{G.time=P;}catch(o){return P;}}return G.time;};this.stopEvent=function(P){this.stopPropagation(P);this.preventDefault(P);};this.stopPropagation=function(P){if(P.stopPropagation){P.stopPropagation();}else{P.cancelBubble=true;}};this.preventDefault=function(P){if(P.preventDefault){P.preventDefault();}else{P.returnValue=false;}};this.getEvent=function(G){var P=G||window.event;if(!P){var o=this.getEvent.caller;while(o){P=o.arguments[0];if(P&&Event==P.constructor){break;}o=o.caller;}}return P;};this.getCharCode=function(P){return P.charCode||(P.type=="keypress")?P.keyCode:0;};this._getCacheIndex=function(j,Q,o){for(var G=0;G<this.listeners.length;++G){var P=this.listeners[G];if(P&&P[this.FN]==o&&P[this.EL]==j&&P[this.TYPE]==Q){return G;}}return -1;};this._isValidCollection=function(P){return (P&&P.length&&typeof P!="string"&&!P.alert&&!P.name&&!P.id&&typeof P[0]!="undefined");};this.elCache={};this.getEl=function(P){return document.getElementById(P);};this.clearCache=function(){for(i in this.elCache){delete this.elCache[i];}};this.regCE=function(P){this.customEvents.push(P);};this._load=function(P){U.loadComplete=true;};this._tryPreloadAttach=function(){var o=!this.loadComplete;for(var P=0;P<this.delayedListeners.length;++P){var j=this.delayedListeners[P];if(j){var G=this.getEl(j[this.EL]);if(G){this.on(G,j[this.TYPE],j[this.FN],j[this.SCOPE]);delete this.delayedListeners[P];}}}if(o){setTimeout("yui.Event._tryPreloadAttach()",50);}};this._unload=function(j,o){for(var G=0;G<o.unloadListeners.length;++G){var P=o.unloadListeners[G];if(P){P[o.FN](o.getEvent(j),P[o.SCOPE]);}}if(o.listeners&&o.listeners.length>0){for(G=0;G<o.listeners.length;++G){P=o.listeners[G];if(P){o.removeListener(P[o.EL],P[o.TYPE],P[o.FN]);}}o.clearCache();}for(G=0;G<o.customEvents.length;++G){o.customEvents[G].unsubscribeAll();delete o.customEvents[G];}for(G=0;G<o.legacyEvents.length;++G){delete o.legacyEvents[G][0];delete o.legacyEvents[G];}};this._getScrollLeft=function(){return this._getScroll()[1];};this._getScrollTop=function(){return this._getScroll()[0];};this._getScroll=function(){var P=document.documentElement;db=document.body;if(P&&P.scrollTop){return [P.scrollTop,P.scrollLeft];}else{if(db){return [db.scrollTop,db.scrollLeft];}else{return [0,0];}}};};if(document&&document.body){yui.Event._load();}else{yui.Event.on(window,"load",yui.Event._load,yui.Event);}yui.Event.on(window,"unload",yui.Event._unload,yui.Event);yui.Event._tryPreloadAttach();var Y=YAHOO;Y.U=Y.util;F._eb={eb_go_go_go:function(){this._eb_listeners=[];F._ebA.push(this);},eb_broadcast:function(){var s=false;if(s){var u=arguments.shift();}else{var r=[];for(var O=0;O<arguments.length;O++){r[O]=arguments[O];}var u=r.shift();}var z=F.array_copy(this._eb_listeners);var S=z.length;for(var O=0;O<S;++O){if(z[O][u]){z[O][u].apply(z[O],r);}else{}}},eb_add:function(S){this.eb_remove(S);this._eb_listeners.push(S);return (true);},eb_remove:function(z){var O=this._eb_listeners;var S=O.length;while(S--){if(O[S]==z){O.splice(S,1);return (true);}}return (false);},eb_remove_all:function(){this._eb_listeners=[];}};F.decorate(F,F._eb).eb_go_go_go();F.toggleClass=function(z,O){var S=_ge(z);if(Y.U.Dom.hasClass(S,O)){Y.U.Dom.removeClass(S,O);}else{Y.U.Dom.addClass(S,O);}return false;};F.prepare_for_insertion=function(S){if(!S.parentNode){return S;}if(F.is_ie){return S;}return S.parentNode.removeChild(S);};F.get_local_X=function(S){if(S.style.left){return _pi(S.style.left);}return S.offsetLeft;};F.get_local_Y=function(S){if(S.style.top){return _pi(S.style.top);}return S.offsetTop;};F._paginator={paginator_go_go_go:function(){F.decorate(this,F._eb).eb_go_go_go();this.paginator_hide();this.pages=0;this.page=0;this.side_slots=2;this.middle_slots=7;this.pagesA=[];this.total_slots=(this.side_slots*2)+this.middle_slots;var S=""+"<nobr><a id=\"paginator_link_prev\" href=\"\" class=\"Prev\" onclick=\"_ge('"+this.id+"').paginator_go_prev(); this.blur(); return false;\">&lt; Prev</a>"+"<a id=\"paginator_link_1\" href=\"\" onclick=\"_ge('"+this.id+"').paginator_go_page(this.page); this.blur(); return false;\"></a>"+"<a id=\"paginator_link_2\" href=\"\" onclick=\"_ge('"+this.id+"').paginator_go_page(this.page); this.blur(); return false;\"></a>"+"<span id=\"paginator_break_1\" class=\"break\">...</span>"+"<a id=\"paginator_link_3\" href=\"\" onclick=\"_ge('"+this.id+"').paginator_go_page(this.page); this.blur(); return false;\"></a>"+"<a id=\"paginator_link_4\" href=\"\" onclick=\"_ge('"+this.id+"').paginator_go_page(this.page); this.blur(); return false;\"></a>"+"<a id=\"paginator_link_5\" href=\"\" onclick=\"_ge('"+this.id+"').paginator_go_page(this.page); this.blur(); return false;\"></a>"+"<a id=\"paginator_link_6\" href=\"\" onclick=\"_ge('"+this.id+"').paginator_go_page(this.page); this.blur(); return false;\"></a>"+"<a id=\"paginator_link_7\" href=\"\" onclick=\"_ge('"+this.id+"').paginator_go_page(this.page); this.blur(); return false;\"></a>"+"<a id=\"paginator_link_8\" href=\"\" onclick=\"_ge('"+this.id+"').paginator_go_page(this.page); this.blur(); return false;\"></a>"+"<a id=\"paginator_link_9\" href=\"\" onclick=\"_ge('"+this.id+"').paginator_go_page(this.page); this.blur(); return false;\"></a>"+"<span id=\"paginator_break_2\" class=\"break\">...</span>"+"<a id=\"paginator_link_10\" href=\"\" onclick=\"_ge('"+this.id+"').paginator_go_page(this.page); this.blur(); return false;\"></a>"+"<a id=\"paginator_link_11\" href=\"\" onclick=\"_ge('"+this.id+"').paginator_go_page(this.page); this.blur(); return false;\"></a>"+"<a id=\"paginator_link_next\" href=\"\" class=\"Next\" onclick=\"_ge('"+this.id+"').paginator_go_next(); this.blur(); return false;\">Next &gt;</a></nobr>";this.innerHTML=S;this.paginator_get_going();},paginator_place:function(){},paginator_get_going:function(u,B){if(u==undefined||B==undefined){return ;}if(B<2){this.paginator_hide();return ;}this.pages=B;this.page=u;writeDebug("paginator_get_going pages:"+this.pages+" page:"+this.page);this.pagesA=[];var r=(this.total_slots-1)/2;var s=this.page-(r);s=Math.max(1,s);var z=s+this.total_slots-1;if(z>this.pages){s=s-(z-this.pages);}z=Math.min(this.pages,z);writeDebug("first_page:"+s+" page:"+this.page+" last_page:"+z);for(var O=s;O<=z;O++){this.pagesA.push(O);}for(var O=1;O<=this.side_slots;O++){if(this.pagesA[O-1]>0){this.pagesA[O-1]=O;}}for(var O=1;O<=this.side_slots;O++){var S=this.pagesA.length-O;this.pagesA[S]=this.pages-O+1;}writeDebug(this.pagesA.join(","));this.paginator_draw();},paginator_draw:function(){this.paginator_hide_break(1);this.paginator_hide_break(2);for(var O=1;O<=this.total_slots;O++){this.paginator_hide_link(O);}var S=0;for(var O=0;O<this.pagesA.length;O++){var z=this.pagesA[O];if(z<1){continue;}S++;this.paginator_show_link(S,z);if(S==2){if(this.pagesA[O+1]&&this.pagesA[O+1]>z+1){this.paginator_show_break(1);}}if(S==this.total_slots-2){if(this.pagesA[O+1]&&this.pagesA[O+1]>z+1){this.paginator_show_break(2);}}}if(this.page==1){_ge("paginator_link_prev").className="AtStart";}else{_ge("paginator_link_prev").className="Prev";}if(this.page==this.pages){_ge("paginator_link_next").className="AtEnd";}else{_ge("paginator_link_next").className="Next";}this.paginator_show();},paginator_go_prev:function(){var S=this.page-1;this.paginator_go_page(S);},paginator_go_next:function(){var S=this.page+1;this.paginator_go_page(S);},paginator_go_page:function(S){S=Math.min(this.pages,Math.max(1,S));if(S!=this.page){this.page=S;this.paginator_draw();this.eb_broadcast("on_paginator_go_page",this.page);}},paginator_hide:function(){this.style.display="none";},paginator_show:function(){if(this.style.display!="block"){this.style.visibility="hidden";}this.style.display="block";this.paginator_place();this.style.visibility="visible";},paginator_hide_link:function(S){_ge("paginator_link_"+S).style.display="none";},paginator_show_link:function(S,z){var O=_ge("paginator_link_"+S);if(z!=undefined){O.page=z;}O.innerHTML=O.page;O.className=(O.page==this.page)?"this-page":"";O.style.display="inline";},paginator_hide_break:function(S){_ge("paginator_break_"+S).style.display="none";},paginator_show_break:function(S){_ge("paginator_break_"+S).style.display="inline";}};F._carrot=new Object();F._carrot.carrot_go_go_go=function(u,s,O,B){if(this.childNodes&&this.childNodes[0]){var z=this.childNodes[0].src;}else{var z=this.src;}var S=z.split("/");var x=S[S.length-1];var S=x.split(".");var r=S[0].substr().replace("_closed","").replace("_open_down","").replace("_open_up","");this.carrot_open_img=new Image();if(u=="up"){this.carrot_open_img.src=_images_root+"/"+r+"_open_up.gif";}else{this.carrot_open_img.src=_images_root+"/"+r+"_open_down.gif";}this.carrot_closed_img=new Image();this.carrot_closed_img.src=_images_root+"/"+r+"_closed.gif";this.carrot_is_open=(s)?1:0;if(this.childNodes&&this.childNodes[1]){if(this.carrot_is_open){this.carrot_open_text=(O)?O:this.childNodes[1].innerHTML;this.carrot_closed_text=(B)?B:this.carrot_open_text;}else{this.carrot_closed_text=(B)?B:this.childNodes[1].innerHTML;this.carrot_open_text=(O)?O:this.carrot_closed_text;}}this.style.cursor=(F.is_ie)?"hand":"pointer";this.onclick_default=(this.onclick)?this.onclick:function(){};this.onclick=this.carrot_onclick;if(this.carrot_is_open){if(this.childNodes&&this.childNodes[0]){this.childNodes[0].src=this.carrot_open_img.src;if(this.childNodes[1]){this.childNodes[1].innerHTML=this.carrot_open_text;}}else{this.src=this.carrot_open_img.src;}}else{if(this.childNodes&&this.childNodes[0]){this.childNodes[0].src=this.carrot_closed_img.src;if(this.childNodes[1]){this.childNodes[1].innerHTML=this.carrot_closed_text;}}else{this.src=this.carrot_closed_img.src;}}};F._carrot.carrot_onclick=function(S){if(this.carrot_is_open){this.carrot_close();}else{this.carrot_open();}};F._carrot.carrot_open=function(){this.onclick_default();this.carrot_is_open=1;if(this.childNodes&&this.childNodes[0]){this.childNodes[0].src=this.carrot_open_img.src;if(this.childNodes[1]){this.childNodes[1].innerHTML=this.carrot_open_text;}}else{this.src=this.carrot_open_img.src;}};F._carrot.carrot_close=function(){this.onclick_default();this.carrot_is_open=0;if(this.childNodes&&this.childNodes[0]){this.childNodes[0].src=this.carrot_closed_img.src;if(this.childNodes[1]){this.childNodes[1].innerHTML=this.carrot_closed_text;}}else{this.src=this.carrot_closed_img.src;}};F._shadow=new Object();F._shadow.shadow_go_go_go=function(z,r,O){this.shadow_use_local_coords=(O!=document.body);this.shadow_for_id=z;this.style.zIndex=r;this.style.display="none";this.style.position="absolute";this.shadow_height_plus=-14;this.shadow_width_plus=-14;this.shadow_x_plus=-0;this.shadow_y_plus=-0;var S=""+"<table class=\"shadow_table\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"padding:0px;\">"+"<tr><td width=\"11\"><img class=\"trans_png\" width=\"11\" height=\"11\" src=\""+_images_root+"/tc_white_shadow_tl.png\"></td><td id=\""+this.id+"_width_controller\"><img class=\"trans_png\" width=\"100%\" height=\"11\" src=\""+_images_root+"/tc_white_shadow_t.png\"></td><td width=\"11\"><img class=\"trans_png\" width=\"11\" height=\"11\" src=\""+_images_root+"/tc_white_shadow_tr.png\"></td></tr>"+"<tr><td height=\"30\" id=\""+this.id+"_height_controller\"><img class=\"trans_png\" width=\"11\" height=\"100%\" src=\""+_images_root+"/tc_white_shadow_l.png\"></td><td></td><td><img class=\"trans_png\" width=\"11\" height=\"100%\" src=\""+_images_root+"/tc_white_shadow_r.png\"></td></tr>"+"<tr><td><img class=\"trans_png\" width=\"11\" height=\"11\" src=\""+_images_root+"/tc_white_shadow_bl.png\"></td><td><img class=\"trans_png\" width=\"100%\" height=\"11\" src=\""+_images_root+"/tc_white_shadow_b.png\"></td><td><img class=\"trans_png\" width=\"11\" height=\"11\" src=\""+_images_root+"/tc_white_shadow_br.png\"></td></tr></table>";this.innerHTML=S;};F._shadow.shadow_size_and_place=function(){var r=_ge(this.shadow_for_id);if(this.shadow_use_local_coords){var S=F.get_local_X(r);var s=F.get_local_Y(r);}else{var S=Y.U.Dom.getX(r);var s=Y.U.Dom.getY(r);}if(S==undefined){return ;}S+=this.shadow_x_plus;s+=this.shadow_y_plus;this.style.left=S+"px";this.style.top=s+"px";var O=((r.offsetWidth)+this.shadow_width_plus);if(O<0){O=0;}var z=((r.offsetHeight)+this.shadow_height_plus);if(z<0){z=0;}_ge(this.id+"_width_controller").style.width=O+"px";_ge(this.id+"_height_controller").style.height=z+"px";};F._shadow.shadow_show=function(){this.style.display="block";};F._shadow.shadow_hide=function(){this.style.display="none";};F.eb_add({window_onload_dom:function(){var r=3450;var u=1111;var s=_ge("e"+"_"+(r+u+2));var z=_ge("e"+"_"+(r+u+3));var O=_ge("e"+"_"+(r+u+4));var S=_ge("e"+"_"+(r+u+5));if(s||z||O||S){F.API.callMethod("flickr.people.getMagicEmail",{user_id:global_nsid},{flickr_people_getMagicEmail_onLoad:function(n,x){if(n){var B=x.documentElement.getElementsByTagName("user")[0].getAttribute("magic_email");if(s){s.href="mailto:"+B+"@ph"+"o"+"t"+"o"+"s.flickr.c"+"o"+"m";s.innerHTML=B+"@ph"+"o"+"t"+"o"+"s.flickr.c"+"o"+"m";}if(z){z.href="mailt"+"o"+":"+B+"2bl"+"o"+"g@ph"+"o"+"t"+"o"+"s.flickr.c"+"o"+"m";z.innerHTML=B+"2bl"+"o"+"g@ph"+"o"+"t"+"o"+"s.flickr.c"+"o"+"m";}if(O){O.href="mailt"+"o"+":"+B+"@ph"+"o"+"t"+"o"+"s.flickr.c"+"o"+"m";O.innerHTML=B+"@ph"+"o"+"t"+"o"+"s.flickr.c"+"o"+"m";}if(S){S.href="mailt"+"o"+":"+B+"2bl"+"o"+"g@ph"+"o"+"t"+"o"+"s.flickr.c"+"o"+"m";S.innerHTML=B+"2bl"+"o"+"g@ph"+"o"+"t"+"o"+"s.flickr.c"+"o"+"m";}}}});}}});function woe_location_obj(s,x,B,O,n,r,u,S,z){this.id=s;this.title=x;this.sub_title=B;this.relevance=O;this.bbox=n;this.precision=r;this.lat=u;this.lon=S;this.place_url=z;}F.do_explore_location_search=function(){if(!_ge("explore_loc_search_div")){var z=document.createElement("div");z.id="explore_loc_search_div";document.body.appendChild(z);var S="explore";F.decorate(z,F._loc_search_div).div_go_go_go(S);}try{_ge("explore_loc_search_div").div_do_loc_search();}catch(O){writeDebug(O);}return false;};F.do_places_world_location_search=function(){if(!_ge("explore_loc_search_div")){var z=document.createElement("div");z.id="explore_loc_search_div";document.body.appendChild(z);var S="places_world";F.decorate(z,F._loc_search_div).div_go_go_go(S);}try{_ge("explore_loc_search_div").div_do_loc_search();}catch(O){writeDebug(O);}return false;};F._loc_search_div={provider_name:(_qs_args.provider_name)?_qs_args.provider_name:"woe"};F._loc_search_div.div_go_go_go=function(r){this.page_type=r;this.input_id=(this.page_type=="org")?"loc_search_input":(this.page_type=="explore")?"exploreMapSearch":(this.page_type=="places_world")?"txt_taken_in":"header_search_q";this.logged_last=0;this.last_source_id=null;this.last_search_term=null;this.setLocation_geo_point=null;this.setLocation_source_id=null;this.setLocation_search_term=null;var z=_ge(this.input_id);this.style.display="none";F.eb_add(this);this.locations=[];this.div_show_all=0;this.current_location_index=-1;var S=document.createElement("div");S.id="loc_search_inner_div";S.style.width="300px";S.style.border="0px solid black";this.appendChild(S);var u=document.createElement("div");u.id="loc_search_header_div";u.className="Pulser";u.style.position="absolute";u.style.top="10px";u.style.left="10px";u.style.height="20px";u.style.width="30px";S.appendChild(u);var u=document.createElement("div");u.id="loc_search_header_msg_div";u.style.margin="12px 15px 10px 38px";u.style.fontWeight="normal";u.style.fontFamily="arial";u.style.fontSize="12px";u.style.color="#434343";S.appendChild(u);var u=document.createElement("div");u.id="loc_search_results_div";u.style.margin="0 0 15px 38px";S.appendChild(u);var u=document.createElement("div");u.id="loc_search_msg_div";u.style.margin="0px 0 10px 30px";u.style.display="none";S.appendChild(u);var O=document.createElement("img");O.id="loc_search_close";O.style.border="0px";O.style.position="absolute";O.style.left="281px";O.style.top="4px";O.src=_images_root+"/simple_close_default.gif";O.width=O.height="15";var s=this.id;O.onclick=function(){_ge(s).div_fade();};this.appendChild(O);F.decorate(_ge("loc_search_close"),F._simple_button).button_go_go_go();};F._loc_search_div.window_onresize=function(){if(this.style.display!="none"){this.div_show();}};F._loc_search_div.div_show=function(){if(this.style.display=="none"){this.style.visibility="hidden";}this.style.display="block";var s=_ge("loc_search_results_div");var r=Y.U.Dom.getY(_ge(this.input_id));if(this.page_type=="org"){var S=(_find_screen_width()-this.offsetWidth-3);r+=25;}else{if(this.page_type=="else"){var S=(_find_screen_width()-this.offsetWidth-60);if(S>Y.U.Dom.getX(_ge(this.input_id))){S=Y.U.Dom.getX(_ge(this.input_id));}r+=23;}else{if(this.page_type=="explore"){var S=Y.U.Dom.getX(_ge(this.input_id));r+=23;}else{if(this.page_type=="places_world"){var S=Y.U.Dom.getX(_ge(this.input_id));r+=31;}else{var S=Y.U.Dom.getX(_ge("Main"))+_ge("Main").offsetWidth-this.offsetWidth;r+=24;}}}}s.style.height="";s.style.overflow="";if(this.div_show_all){if(this.page_type=="explore"){var z=88;if(this.offsetHeight+z>_find_screen_height()){s.style.height=(_find_screen_height()-z)+"px";s.style.overflow="auto";}}else{var z=58;if(this.offsetHeight+r>_find_screen_height()+document.body.scrollTop){s.style.height=(_find_screen_height()-r-z+document.body.scrollTop)+"px";s.style.overflow="auto";}}if(this.reset_scrollTop){this.reset_scrollTop=0;s.scrollTop=0;}}var O=100;this.style.opacity=O/100;this.style.filter="alpha(opacity="+O+")";this.style.left=S+"px";this.style.top=r+"px";this.style.visibility="visible";if(this.page_type=="explore"){F.scroll_this_el_into_view(this.id);}if(_ge("geo_bookmarks_div")&&typeof (_ge("geo_bookmarks_div").hide=="function")){_ge("geo_bookmarks_div").hide();}};F._loc_search_div.div_hide=function(){this.style.display="none";};F._loc_search_div.div_loading=function(){_ge("loc_search_results_div").style.display="none";_ge("loc_search_close").style.display="none";_ge("loc_search_header_div").className="Pulser";_ge("loc_search_header_msg_div").innerHTML="&nbsp;&nbsp;&nbsp;"+F.output.get("searching");this.reset_scrollTop=1;this.div_show_all=0;this.div_show();};F._loc_search_div.div_fade_if_open=function(){if(this.style.display=="block"){this.div_fade();}this.div_log(0);};F._loc_search_div.div_fade=function(){var O=this;var S=function(){O.div_hide();};anim_do_opacity_to(O,7,35,0,"easeInQuad",S);};F._loc_search_div.div_update_results=function(s){if(s){this.div_show_all=1;}var B=this.locations.length;_ge("loc_search_close").style.display="block";if(this.locations.length==0){_ge("loc_search_header_div").className="Problem";_ge("loc_search_header_msg_div").innerHTML=F.output.get("loc_results_no_matches");_ge("loc_search_results_div").style.display="none";}else{if(this.locations.length==1){if(this.page_type=="site"||this.page_type=="explore"){}else{if(this.page_type=="places_world"){alert("jump directly to the single match here");}else{setTimeout("_ge('"+this.id+"').div_fade()",2000);}}}_ge("loc_search_header_div").className="Confirm";if(B==1){var r=F.output.get("loc_results_one_match");}else{var r=F.output.get("loc_results_matches",B,this.last_search_term.escape_for_display());}_ge("loc_search_header_msg_div").innerHTML=r;_ge("loc_search_results_div").style.display="block";var n=[];max_abs=20;max_to_show=8;max_to_show_if_more_than_that=5;var z=(this.current_location_index>max_to_show_if_more_than_that||this.div_show_all)?this.locations.length:(this.locations.length>max_to_show)?max_to_show_if_more_than_that:this.locations.length;for(i=0;i<z;i++){var S="margin-top:3px;";if(this.page_type=="site"||this.page_type=="explore"){if(this.locations[i].precision=="GeocodedBuilding"||this.locations[i].precision=="POI"){var O="/map?fLat="+this.locations[i].lat+"&fLon="+this.locations[i].lon+"&zl=2&woe_id="+this.locations[i].id+"&woe_sub_title="+escape(this.locations[i].sub_title);}else{var O="/map?woe_id="+this.locations[i].id;}var x="_ge('"+this.id+"').div_hide(); _ge('"+this.id+"').div_log('"+this.locations[i].id+"', this.href); return false";}else{S+=(i==this.current_location_index)?"font-weight:bold; text-decoration:none":"";var x="_ge('"+this.id+"').div_on_result_click("+i+"); return false;";if(this.page_type=="else"){if(this.locations[i].precision=="GeocodedBuilding"||this.locations[i].precision=="POI"){var O="/map?fLat="+this.locations[i].lat+"&fLon="+this.locations[i].lon+"&zl=2&woe_id="+this.locations[i].id+"&woe_sub_title="+escape(this.locations[i].sub_title);}else{var O="/map?woe_id="+this.locations[i].id;}}else{if(this.locations[i].precision=="GeocodedBuilding"||this.locations[i].precision=="POI"){var O="/photo/organize/?start_tab=map&fLat="+this.locations[i].lat+"&fLon="+this.locations[i].lon+"&zl=2&woe_id="+this.locations[i].id+"&woe_sub_title="+escape(this.locations[i].sub_title);}else{var O="/photo/organize/?start_tab=map&woe_id="+this.locations[i].id;}}}var u="<div style=\"margin-bottom:7px; font-size:12px; font-family:arial\">";if(this.locations[i].title){u+="<span class=\"loc_search_found_term\">"+this.locations[i].title+"</span>, ";}u+="<a href=\""+O+"\" style=\""+S+"\" onclick=\""+x+"\">";u+=" "+this.locations[i].sub_title+"</a>";u+="</div>";n.push(u);}if(this.locations.length>z){n.push("<br><b><a href=\"#\" onclick=\"_ge('"+this.id+"').div_update_results(1); return false;\">"+F.output.get("loc_results_more")+"</a></b>");}_ge("loc_search_results_div").innerHTML=n.join("");}this.div_show();};F._loc_search_div.div_go_to_map=function(r,z){if(!z||z<1){var O=this.locations[r].id;if(this.locations[r].precision=="GeocodedBuilding"||this.locations[r].precision=="POI"){var S="/map?fLat="+this.locations[r].lat+"&fLon="+this.locations[r].lon+"&zl=2&woe_id="+O+"&woe_sub_title="+escape(this.locations[r].sub_title);}else{var S="/map?woe_id="+O;}document.location=S;var s=F.output.get("loc_results_take_you_there");}else{setTimeout("_ge('"+this.id+"').div_go_to_map("+r+", "+(z-1000)+")",z);if(z==0){var s=F.output.get("loc_results_zero_second");}else{if(_pi(z/1000)==1){var s=F.output.get("loc_results_one_second");}else{var s=F.output.get("loc_results_x_second",_pi(z/1000));}}}writeDebug(s);if(_ge("loc_search_msg_div")){_ge("loc_search_msg_div").style.display="block";_ge("loc_search_msg_div").innerHTML=s;}};F._loc_search_div.div_on_result_click=function(S){if(this.page_type=="site"||this.page_type=="explore"){}else{this.current_location_index=S;this.focus_on_location();this.div_update_results();this.div_fade();}};F._loc_search_div.div_do_loc_search=function(){var S=_ge(this.input_id).value.trim();if(S){if(this.last_search_term!=S){if(this.last_search_term){this.div_log(0);if(this.logged_last){this.logged_last=0;}}this.last_search_term=S;this.div_loading();F.API.callMethod("flickr.geocode.translate",{location:this.last_search_term.replace("-",""),provider_name:this.provider_name},this,null,null,null,0);}else{this.div_show();}}};F._loc_search_div.div_add_source_params=function(S){if(this.setLocation_geo_point!=null&&_ge("map_controller").is_this_point_on_the_map(this.setLocation_geo_point)){writeDebug("adding source!");S.source=this.setLocation_source_id;S.query=this.setLocation_search_term;}return S;};F._loc_search_div.flickr_geocode_translate_onLoad=function(N,O,q,H){if(N){var G=O.documentElement.getElementsByTagName("ResultSet")[0];var A=O.documentElement.getElementsByTagName("Result");this.last_source_id=G.getAttribute("fl:source_id");this.locations=[];if(A.length==0){this.div_update_results();return ;}for(i=0;i<A.length;i++){try{var e=String(A[i].getAttribute("precision"));}catch(W){var e="";}try{var x=String(A[i].getElementsByTagName("woe_specificprobability")[0].firstChild.nodeValue);}catch(W){var x="";}try{var U=String(A[i].getElementsByTagName("woe_woeid")[0].firstChild.nodeValue);}catch(W){var U="";}var n=String(A[i].getElementsByTagName("Latitude")[0].firstChild.nodeValue);var s=String(A[i].getElementsByTagName("Longitude")[0].firstChild.nodeValue);try{var z=String(A[i].getElementsByTagName("woe_bbox")[0].firstChild.nodeValue);}catch(W){var z="";}try{var u=String(A[i].getElementsByTagName("Address")[0].firstChild.nodeValue);}catch(W){var u="";}try{var m=String(A[i].getElementsByTagName("City")[0].firstChild.nodeValue);}catch(W){var m="";}try{var B=String(A[i].getElementsByTagName("State")[0].firstChild.nodeValue);}catch(W){var B="";}try{var j=String(A[i].getElementsByTagName("Zip")[0].firstChild.nodeValue);}catch(W){var j="";}try{var Z=String(A[i].getElementsByTagName("Country")[0].firstChild.nodeValue);}catch(W){var Z="";}try{var g=String(A[i].getElementsByTagName("place_url")[0].firstChild.nodeValue);}catch(W){var g="";}Z=(Z=="United States")?"US":Z;Z=(Z=="United Kingdom")?"UK":Z;var X="";var S="";var r=this.last_search_term.trim().split(" ")[0].split(",")[0].replace("-","");var p=r.toLowerCase();if(e=="GeocodedBuilding"||e=="POI"){if(u){S=S+", "+u;}}if(m){S=S+", "+m;}if(B){S=S+", "+B;}if(Z){S=S+", "+Z;}if(S.length>2){S=S.substring(2,S.length);}if(e=="County"){X=r.substring(0,1).toUpperCase()+r.substring(1,r.length)+" County";}else{if(e=="GeocodedBuilding"){S=r+" "+S;}else{if(e=="POI"){S=this.last_search_term+", "+S;}else{sub_titleA=S.split(", ");if(p==sub_titleA[0].toLowerCase()){if(sub_titleA[0]!=S){X=sub_titleA[0];S=S.replace(sub_titleA[0]+", ","");}}}}}var w=new woe_location_obj(U,X,S,x,z,e,n,s,g);this.locations.push(w);}this.current_location_index=-1;if(this.locations.length==1){this.current_location_index=0;if(this.page_type=="site"||this.page_type=="explore"){this.div_go_to_map(0,3000);}else{var J=this.id;setTimeout(function(){_ge(J).focus_on_location();},200);}}this.div_update_results();}else{writeDebug("Something sucked");return ;}};F._loc_search_div.focus_on_location=function(){if(window.YGeoPoint==undefined||this.page_type=="site"){return ;}var u=this.locations[this.current_location_index];if(this.page_type=="places_world"){if(_ge("txt_search_for").value!=""){window.location="/places"+u.place_url+"/?q="+_ge("txt_search_for").value;}else{window.location="/places"+u.place_url;}return ;}var s=map.getCenterLatLon();if(this.locations.length==1&&(u.precision=="GeocodedBuilding"||u.precision=="POI")){var O=2;_ge("you_are_here_holder").setYGeoPoint(new YGeoPoint(u.lat,u.lon),O);_ge("you_are_here_holder").show(true,u.sub_title);if(s.Lon!=u.lon||s.Lat!=u.lat||map.getZoomLevel()!=O){map.drawZoomAndCenter(new YGeoPoint(u.lat,u.lon),O);_ge("map_controller").end_pan();}}else{_ge("you_are_here_holder").show(false,"");this.best_fit_points=[];this.best_fit_points.push(new YGeoPoint(u.bbox.split(",")[1],u.bbox.split(",")[0]));this.best_fit_points.push(new YGeoPoint(u.bbox.split(",")[3],u.bbox.split(",")[2]));var S=[];for(i=0;i<this.best_fit_points.length;i++){S.push(this.best_fit_points[i]);}var O=map.getZoomLevel(S);if(u.precision!="GeocodedStreet"){O=Math.max(5,O);var r=map.getGeoBox(S);var z=map.getBoxGeoCenter(r.min,r.max);}else{var z=new YGeoPoint(u.lat,u.lon);var O=3;}if(s.Lon!=z.Lon||s.Lat!=z.Lat||map.getZoomLevel()!=O){map.drawZoomAndCenter(z,O);_ge("map_controller").end_pan();}}this.setLocation_geo_point=new YGeoPoint(u.lat,u.lon);this.setLocation_source_id=this.last_source_id;this.setLocation_search_term=this.last_search_term;this.div_log(u.id);};F._loc_search_div.div_log=function(S,O){if(this.provider_name&&this.provider_name.toLowerCase()=="yahoo"){return ;}if(this.locations.length<2){return ;}if(!S&&this.logged_last){return ;}this.logged_last=1;F.API.callMethod("flickr.geocode.log",{query:this.last_search_term,result_id:S,provider_name:this.provider_name},{flickr_geocode_log_onLoad:function(){if(O){document.location=O;}}});};F._canvas={canvas_go_go_go:function(S,O){if(S!=undefined){this.width=S;this.style.width=S+"px";}if(O!=undefined){this.height=O;this.style.height=O+"px";}if(F.is_ie&&!this.getContext){G_vmlCanvasManager_.initElement(this);}},rounded_rect:function(S,B,z,s,u){var O=this.getContext("2d");O.beginPath();O.moveTo(S,B+u);O.lineTo(S,B+s-u);O.quadraticCurveTo(S,B+s,S+u,B+s);O.lineTo(S+z-u,B+s);O.quadraticCurveTo(S+z,B+s,S+z,B+s-u);O.lineTo(S+z,B+u);O.quadraticCurveTo(S+z,B,S+z-u,B);O.lineTo(S+u,B);O.quadraticCurveTo(S,B,S,B+u);O.stroke();}};F.eb_add({window_onload_dom:function(){return ;if(global_dbid!="41"){return ;}var S=document.createElement("div");S.id="talk_bubble_test_div";S.style.display="none";document.body.appendChild(S);F.decorate(S,F._talk_bubble).bubble_go_go_go();window.temp_i=0;window.temp_show_it=1;setInterval(function(){if(window.temp_show_it){var O=["Petit","Just the good ol' boys, never meanin' no harm. Beats all you've ever saw, been in trouble with the law since the day they was born. Straight'nin' the curve, flat'nin' the hills. Someday the mountain might get 'em, but the law never will. Makin' their way, the only way they know how, that's just a little bit more than the law will allow. Just good ol' boys, wouldn't change if they could, fightin' the system like a true modern day Robin Hood. Just the good ol' boys, never meanin' no harm. Beats all you've ever saw, been in trouble with the law since the day they was born. Straight'nin' the curve, flat'nin' the hills. Someday the mountain might get 'em, but the law never will. Makin' their way, the only way they know how, that's just a little bit more than the law will allow. Just good ol' boys, wouldn't change if they could, fightin' the system like a true modern day Robin Hood. Just the good ol' boys, never meanin' no harm. Beats all you've ever saw, been in trouble with the law since the day they was born. Straight'nin' the curve, flat'nin' the hills. Someday the mountain might get 'em, but the law never will. Makin' their way, the only way they know how, that's just a little bit more than the law will allow. Just good ol' boys, wouldn't change if they could, fightin' the system like a true modern day Robin Hood.","A bit longer","I ain't a gonna drive this great big truck no more ","Mutley, you snickering, floppy eared hound. When courage is needed, you're never around. Those medals you wear on your moth-eaten chest should be there for bungling at which you are best. So, stop that pigeon, stop that pigeon, stop that pigeon, stop that pigeon, stop that pigeon, stop that pigeon, stop that pigeon. Howwww! Nab him, jab him, tab him, grab him, stop that pigeon now.","Ulysses, Ulysses - Soaring through all the galaxies. In search of Earth, flying in to the night. Ulysses, Ulysses - Fighting evil and tyranny, with all his power, and with all of his might. Ulysses - no-one else can do the things you do. Ulysses - like a bolt of thunder from the blue. Ulysses - always fighting all the evil forces bringing peace and justice to all.","I never spend much time in school but I taught ladies plenty. It's true I hire my body out for pay, hey hey. I've gotten burned over Cheryl Tiegs, blown up for Raquel Welch. But when I end up in the hay it's only hay, hey hey. I might jump an open drawbridge, or Tarzan from a vine. 'Cause I'm the unknown stuntman that makes Eastwood look so fine.","Tired of using Lorem Ipsum for dummy text in your latest masterpiece?","This text generator has been developed based on years of careful research and is guaranteed to improve even the most lacklustre of designs.","No. of paragraphs:","Hong Kong Phooey, number one super guy. Hong Kong Phooey, quicker than the human eye. He's got style, a groovy style, and a car that just won't stop. When the going gets tough, he's really rough, with a Hong Kong Phooey chop (Hi-Ya!). Hong Kong Phooey, number one super guy. Hong Kong Phooey, quicker than the human eye. Hong Kong Phooey, he's fan-riffic!","Knight Rider, a shadowy flight into the dangerous world of a man who does not exist. Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless in a world of criminals who operate above the law.","Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn't commit. These men promptly escaped from a maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune. If you have a problem and no one else can help, and if you can find them, maybe you can hire the A-team.","I never spend much time in school but I taught ladies plenty. It's true I hire my body out for pay, hey hey. I've gotten burned over Cheryl Tiegs, blown up for Raquel Welch. But when I end up in the hay it's only hay, hey hey. I might jump an open drawbridge, or Tarzan from a vine. 'Cause I'm the unknown stuntman that makes Eastwood look so fine.","Just the good ol' boys, never meanin' no harm. Beats all you've ever saw, been in trouble with the law since the day they was born. Straight'nin' the curve, flat'nin' the hills. Someday the mountain might get 'em, but the law never will. Makin' their way, the only way they know how, that's just a little bit more than the law will allow. Just good ol' boys, wouldn't change if they could, fightin' the system like a true modern day Robin Hood."];S.show(O[window.temp_i]);window.temp_i++;if(window.temp_i>=O.length){window.temp_i=0;}}else{S.hide();}},1000);}});F._simple_button={button_disabled:0,button_go_go_go:function(s){this.EXT=this;this.style.cursor=(F.is_ie)?"hand":"pointer";if(this.tagName=="IMG"){this.img_id=this.id;}else{for(var z=0;z<this.childNodes.length;z++){var S=this.childNodes[z];if(S.tagName=="IMG"){if(!S.id){S.id=this.id+"IMG";}this.img_id=S.id;}else{if(S.tagName=="SPAN"){if(!S.id){S.id=this.id+"SPAN";}this.span_id=S.id;}}}}if(!this.img_id){return ;}this.button_has_disabled_src=(s)?1:0;var r=this.button_get_img();this.img_format=r.src.split(".")[r.src.split(".").length-1];var B=r.src.split("/");var x=B[B.length-1];this.img_path_root=r.src.replace("/"+x,"");var n=x.replace("_default."+this.img_format,"");this.button_set_img_srcs(n);if(this.img_format=="png"){r.className="trans_png";}this.button_is_down=0;this.button_is_over=0;if(this.onclick){var u=this.onclick;var O=this.button_default_onclick;this.onclick=function(N){u.apply(this,[N]);O.apply(this,[N]);};}else{this.onclick=this.button_default_onclick;}return this;},button_get_img:function(){return _ge(this.img_id);},button_get_span:function(){return _ge(this.span_id);},button_set_img_srcs_and_change:function(S){this.button_set_img_srcs(S);this.button_change_src();},button_set_text:function(S){var O=this.button_get_span();if(!O){return ;}O.innerHTML=S;},button_set_img_srcs:function(S){this.button_default_img=new Image();this.button_default_img.src=this.img_path_root+"/"+S+"_default."+this.img_format;this.button_hover_img=new Image();this.button_hover_img.src=this.img_path_root+"/"+S+"_hover."+this.img_format;this.button_selected_img=new Image();this.button_selected_img.src=this.img_path_root+"/"+S+"_selected."+this.img_format;if(this.button_has_disabled_src){this.button_disabled_img=new Image();this.button_disabled_img.src=this.img_path_root+"/"+S+"_disabled."+this.img_format;}else{this.button_disabled_img=this.button_default_img;}},button_change_src:function(){var S=this.button_default_img.src;if(this.button_disabled){S=this.button_disabled_img.src;}else{if(this.button_is_down){S=this.button_selected_img.src;}else{if(this.button_is_over){S=this.button_hover_img.src;}}}this.button_get_img().src=S;},button_enable:function(){this.button_disabled=0;this.button_change_src();if(this.tagName=="A"){this.className=this.className.replace("_disabled","");}},button_disable:function(){if(this.button_disabled){return ;}this.button_disabled=1;this.button_is_over=0;this.button_is_down=0;this.button_change_src();if(this.tagName=="A"){this.className=this.className+"_disabled";}},onmouseover:function(){if(this.button_disabled){return ;}this.button_is_over=1;this.button_change_src();},onmouseout:function(){if(this.button_disabled){return ;}this.button_is_over=0;this.button_is_down=0;this.button_change_src();},onmousedown:function(){if(this.button_disabled){return ;}this.button_is_over=1;this.button_is_down=1;this.button_change_src();},onmouseup:function(){if(this.button_disabled){return ;}this.button_is_over=1;this.button_is_down=0;this.button_change_src();},button_default_onclick:function(S){this.blur();return false;}};F._link_button={_decotype:F._simple_button,button_go_go_go:function(){F._link_button._decotype.button_go_go_go.apply(this);},button_default_onclick:function(S){this.blur();return true;}};F._button_bar={bar_go_go_go:function(){if(!this.bar_button){return ;}var O=Y.U.Dom.getElementsByClassName("menu_li","li",this);for(var S=0;S<O.length;S++){F.decorate(O[S],this.bar_button).button_go_go_go();}}};F._l10n_button={button_go_go_go:function(){this.button_menu_id=this.id.replace("button","menu");this.button_form_id=this.id.replace("button","form");var z=_ge(this.button_form_id);if(z){var O=this;z.onsubmit=function(){O.button_close();return false;};}this.button_is_open=0;this.button_is_split=(this.button_get_img().src.indexOf("_split")>-1)?1:0;this.onclick_default=(this.onclick)?this.onclick:function(){};this.onclick=this.onclick_handler;var S=this.button_get_a();if(!S){return ;}S.onclick_default=(S.onclick)?S.onclick:null;S.onclick=null;},button_get_img:function(){if(this.tagName=="IMG"){return this;}return this.getElementsByTagName("img")[0];},button_get_src:function(O){if(!O){O="default";}var S=(this.button_is_split)?"split_":"";return _images_root+"/"+this.button_img_root+S+O+"."+this.button_img_ext;},button_close:function(O){var S=this.button_get_img();Y.U.Dom.removeClass(this,"selected");if(O){S.src=this.button_get_src("hover");}else{Y.U.Dom.removeClass(this,"hover");S.src=this.button_get_src();}_ge(this.button_menu_id).style.display="none";this.button_is_open=0;document.onmousedown=null;},button_disable:function(){this.onmouseout();this.button_is_disabled=1;},button_undisable:function(){this.button_is_disabled=0;},button_go_down:function(O){O=O||"both";if(O=="both"||O=="left"){Y.U.Dom.addClass(this,"selected");}if(O=="both"||O=="right"){var S=this.button_get_img();S.src=this.button_get_src("selected");}},button_open:function(){if(this.button_is_split){this.button_go_down("right");}else{this.button_go_down();}var S=_ge(this.button_menu_id);if(!S){return ;}S.style.display="block";this.button_is_open=1;var O=this;document.onmousedown=function z(u){var s=_get_event_src(u);var r=0;if(s.parentNode){while(s.parentNode){if(s.parentNode==O){r=1;break;}s=s.parentNode;}}if(!r){O.button_close();}};},button_swap_image_if_needed:function(z,r){var O=this.button_get_img();if(O){var S=_get_event_src(z);if(S==O||this.button_always_swap_img){O.src=this.button_get_src(r);return 1;}}return 0;},onmouseover:function(S){if(this.button_is_disabled){return ;}if(this.button_is_open){return ;}Y.U.Dom.addClass(this,"hover");if(!this.button_swap_image_if_needed(S,"hover")){Y.U.Dom.addClass(this,"hover_left");}else{Y.U.Dom.removeClass(this,"hover_left");}},onmouseout:function(S){if(this.button_is_disabled){return ;}if(this.button_is_open){return ;}this.button_swap_image_if_needed(S,"default");Y.U.Dom.removeClass(this,"hover");Y.U.Dom.removeClass(this,"hover_left");Y.U.Dom.removeClass(this,"selected");},onmouseup:function(S){_enable_select();if(this.button_is_disabled){return ;}if(this.button_is_open){return ;}this.button_swap_image_if_needed(S,"hover");Y.U.Dom.removeClass(this,"selected");},onmousedown:function(r){if(this.button_is_disabled){return ;}if(this.button_is_split){var S=_get_event_src(r);var z=this.button_get_img();if(S==z){this.button_go_down("right");}else{this.button_go_down("left");}}else{this.button_go_down();}var S=_get_event_src(r);if(this.button_click_is_in_menu(S)){return ;}var O=this.button_get_a();if(!O||!O.href){_disable_select();return false;}},onclick_handler:function(B){if(this.button_is_disabled){return false;}var O=_get_event_src(B);var r=this.button_get_img();if(O==r||!this.button_is_split){if(this.button_is_open){var x=1;var u=_ge(this.button_form_id);if(u){if(this.button_click_is_in_menu(O)){x=0;}}if(x){this.button_close(1);}}else{var S=_ge(this.button_menu_id);if(S){this.button_open();}}}if((O!=r||O==this)&&!this.button_click_is_in_menu(O)){var z=this.button_get_a();if(z){if(z.onclick_default){return z.onclick_default();}if(z.href&&O!=z){document.location=z.href;return ;}}else{this.onclick_default();}if(this.button_is_split){var S=_ge(this.button_menu_id);var s=S.getElementsByTagName("A");if(s&&s[0]){if(s[0].onclick){return s[0].onclick();}if(s[0].href){document.location=s[0].href;return ;}}writeDebug("ddd");}}},button_get_a:function(){var S=this.getElementsByTagName("A");if(!S){return null;}return S[0];},button_click_is_in_menu:function(S){var O=S;while(O){if(Y.U.Dom.hasClass(O,"candy_menu")){return 1;}O=O.parentNode;if(O==this){return 0;}}return 0;}};F._nav_button={_decotype:F._l10n_button,button_always_swap_img:0,button_img_root:"site_nav_caret_",button_img_ext:"png",button_go_go_go:function(){F.preload_images(_images_root+"/site_nav_caret_split_default.png",_images_root+"/site_nav_caret_split_hover.png",_images_root+"/site_nav_caret_split_selected.png");F._nav_button._decotype.button_go_go_go.apply(this);}};F._gray_menu_button={_decotype:F._l10n_button,button_always_swap_img:1,button_img_root:"gray_button_caret_",button_img_ext:"gif",button_go_go_go:function(){F.preload_images(_images_root+"/gray_button_caret_default.gif",_images_root+"/gray_button_caret_hover.gif",_images_root+"/gray_button_caret_selected.gif",_images_root+"/gray_button_caret_split_default.gif",_images_root+"/gray_button_caret_split_hover.gif",_images_root+"/gray_button_caret_split_selected.gif","/images/gray_button_bg_hover.gif","/images/gray_button_bg_selected.gif");F._gray_menu_button._decotype.button_go_go_go.apply(this);}};F._gray_button={_decotype:F._l10n_button,button_always_swap_img:1,button_img_root:"gray_button_no_caret_",button_img_ext:"gif",button_go_go_go:function(){F.preload_images(_images_root+"/gray_button_no_caret_default.gif",_images_root+"/gray_button_no_caret_hover.gif",_images_root+"/gray_button_no_caret_selected.gif","/images/gray_button_bg_hover.gif","/images/gray_button_bg_selected.gif");F._gray_button._decotype.button_go_go_go.apply(this);}};F._gray_button_bar={_decotype:F._button_bar,bar_button:F._gray_menu_button,bar_go_go_go:function(){var O=Y.U.Dom.getElementsByClassName("no_menu_li","li",this);for(var S=0;S<O.length;S++){F.decorate(O[S],F._gray_button).button_go_go_go();}F._gray_button_bar._decotype.bar_go_go_go.apply(this);}};F._nav_button_bar={_decotype:F._button_bar,bar_button:F._nav_button};F.geotagger={closed:true,loaded_geobookmarks:false,already_loading_js:false,block_size:[],new_map_link:{},two_second_delay_time_started_for_dunstan_because_he_is_picky_like_that:0,saved_responseXML:"",geotagger_go_go_go:function(){this.bookmarks_select={onclick:function(){this.update_location_input();},onchange:function(){this.update_location_input();},onkeyup:function(O){this.update_location_input();},update_location_input:function(){if(this.options[this.options.selectedIndex].value!=""){_ge("freeform_geotagging").value=this.options[this.options.selectedIndex].text.split(" - (")[0];}else{var z=_ge("freeform_geotagging").value.toLowerCase();if(_ge("geo_bookmarks_slct")){for(var O=1;O<_ge("geo_bookmarks_slct").options.length;O++){if(z==_ge("geo_bookmarks_slct").options[O].text.split(" - (")[0].toLowerCase()){_ge("freeform_geotagging").value="";}}}}}};this.input_box={do_first_lat_long_auto_insert:true,onkeyup:function(r){if(!r){r=window.event;}var O=_get_event_keycode(r);if(O==71&&r.ctrlKey&&r.altKey){this.value="geo:long=";}if(O==13){_ge("geo_form_save").onclick();return ;}if(this.do_first_lat_long_auto_insert){var z=new RegExp("^(geo:(lat)=(\\+|\\-)?((\\d+\\.\\d+)|\\d+)([,; ]))$");var s=new RegExp("^(geo:(lon|long)=(\\+|\\-)?((\\d+\\.\\d+)|\\d+)([,; ]))$");if(this.value.toLowerCase().match(z)){this.value=this.value.toLowerCase()+" geo:long=";this.do_first_lat_long_auto_insert=false;}if(this.value.toLowerCase().match(s)){this.value=this.value.toLowerCase()+" geo:lat=";this.do_first_lat_long_auto_insert=false;}}if(_ge("geo_bookmarks_slct")){_ge("geo_bookmarks_slct").options.selectedIndex=0;}if(this.value==""){this.do_first_lat_long_auto_insert=true;}_ge("freeform_geotagging_4real").value="";}};this.submit_button={onclick:function(){_ge("a_geotag_toggle").two_second_delay_time_started_for_dunstan_because_he_is_picky_like_that=new Date();if(_ge("freeform_geotagging").value==""){return ;}if(_ge("freeform_geotagging_4real").value!=""){if(_ge("freeform_geotagging_4real").value.split("|").length==1){_ge("a_geotag_toggle").save_position(_pf(_ge("freeform_geotagging_4real").value.split(",")[0]),_pf(_ge("freeform_geotagging_4real").value.split(",")[1]),_pf(_ge("freeform_geotagging_4real").value.split(",")[2]),_ge("freeform_geotagging_4real").value.split(",")[0]+", "+_ge("freeform_geotagging_4real").value.split(",")[1]);}else{_ge("a_geotag_toggle").save_position(_pf(_ge("freeform_geotagging_4real").value.split(",")[0]),_pf(_ge("freeform_geotagging_4real").value.split(",")[1]),_pf(_ge("freeform_geotagging_4real").value.split(",")[2]),_ge("freeform_geotagging_4real").value.split("|")[1]);}return ;}var z=_ge("freeform_geotagging").value.toLowerCase();var q=null;if(_ge("freeform_geotagging").value.length>1&&_ge("freeform_geotagging").value.substr(0,1)=="@"){_ge("a_geotag_toggle").find_at(_ge("freeform_geotagging").value.substr(1,9999));return ;}var s=new RegExp("^(geo:lat=(\\+|\\-)?((\\d+\\.\\d+)|\\d+)([,; ]+))(geo:(long|lon)=(\\+|\\-)?((\\d+\\.\\d+)|\\d+))");var O=new RegExp("^(geo:(long|lon)=(\\+|\\-)?((\\d+\\.\\d+)|\\d+)([,; ]+))(geo:lat=(\\+|\\-)?((\\d+\\.\\d+)|\\d+))");var N=new RegExp("[a-z:=]","g");var B=new RegExp("[ ;]","g");var Z=new RegExp(",+","g");if(z.match(s)){q=z.replace(N,"").replace(B,",").replace(Z,",");var e=_pf(q.split(",")[0]);var J=_pf(q.split(",")[1]);}if(z.match(O)){q=z.replace(N,"").replace(B,",").replace(Z,",");var e=_pf(q.split(",")[1]);var J=_pf(q.split(",")[0]);}if(typeof (e)=="undefined"){var n=null;var m=null;var G=null;z=z.replace(String.fromCharCode(8220),"\"").replace(String.fromCharCode(8221),"\"").replace(String.fromCharCode(8216),"'").replace(String.fromCharCode(8217),"'").replace(String.fromCharCode(176),"*");var p=null;var U=null;if(z.indexOf("n")>0){n=true;p=z.indexOf("n");}if(z.indexOf("s")>0){n=false;p=z.indexOf("s");}if(z.indexOf("e")>0){m=true;U=z.indexOf("e");}if(z.indexOf("w")>0){m=false;U=z.indexOf("w");}if(p!=null&&U!=null&&U<p){this.lon_first=true;}if(z.indexOf("*")>0&&z.indexOf("'")>0&&z.indexOf("\"")>0){var z=z.replace(new RegExp("[nsew'\"*]"),",").replace(new RegExp(",+")," ").replace(new RegExp(" +")," ");var u=z.split(" ");if(u.length>=6){var e=_pi(u[0]);if(e>=0){e+=(u[1]/60)+(u[2]/6000);}else{e-=((u[1]/60)+(u[2]/6000));}var J=_pi(u[3]);if(J>=0){J+=(u[4]/60)+(u[5]/6000);}else{J-=((u[4]/60)+(u[5]/6000));}}}if(z.indexOf("*")>0&&z.indexOf("'")>0){var z=z.replace(new RegExp("[nsew'\"*]"),",").replace(new RegExp(",+")," ").replace(new RegExp(" +")," ");var u=z.split(" ");if(u.length>=4){var e=_pi(u[0]);if(e>=0){e+=(u[1]/60);}else{e-=(u[1]/60);}var J=_pi(u[2]);if(J>=0){J+=(u[3]/60);}else{J-=(u[3]/60);}}}if(typeof (u)=="undefined"){var z=z.replace(new RegExp("[nsew'\"*]"),",").replace(new RegExp(",+")," ").replace(new RegExp(" +")," ");var u=z.split(" ");if(u.length>=2){var e=_pf(u[0]);var J=_pf(u[1]);}}if(G==true){var r=e;e=J;J=r;}if(n==true){e=Math.abs(e);}if(n==false){e=-1*Math.abs(e);}if(m==true){J=Math.abs(J);}if(m==false){J=-1*Math.abs(J);}}if(this.validate(e,J)){_ge("a_geotag_toggle").save_position(e,J,16,e+", "+J);}else{var x=_ge("freeform_geotagging").value.toLowerCase().replace(new RegExp("[a-z]"),"").replace(new RegExp("[,;*'\" ]"),"");var A=_ge("freeform_geotagging").value.toLowerCase().replace(new RegExp("[0-9]"),"").replace(new RegExp("[,;*'\" ]"),"");if((x.length*0.7)>A.length){YAHOO.util.Dom.setStyle("block_page_geotag","display","none");YAHOO.util.Dom.setStyle("div_geo_feedback_mangled_format","display","block");}else{_ge("a_geotag_toggle").find_location(_ge("freeform_geotagging").value);}}},validate:function(O,z){if(typeof (O)=="undefined"||typeof (z)=="undefined"||typeof (O)!="number"||typeof (z)!="number"||isNaN(O)||isNaN(z)){return false;}if(Math.abs(O)>90||Math.abs(z)>180){return false;}return true;}};if(_ge("geo_bookmarks_slct")){F.decorate(_ge("geo_bookmarks_slct"),this.bookmarks_select);}F.decorate(_ge("freeform_geotagging"),this.input_box);F.decorate(_ge("geo_form_save"),this.submit_button);if(_ge("geo_bookmark_privacy_slct")){for(var S=0;S<_ge("geo_bookmark_privacy_slct").options.length;S++){if(use_viewgeo==_ge("geo_bookmark_privacy_slct").options[S].value){_ge("geo_bookmark_privacy_slct").options.selected=true;}}}if(_ge("a_place_on_map_nu")){_ge("a_place_on_map_nu").style.display="none";}if(_ge("a_place_on_map_old")){_ge("a_place_on_map_old").style.display="none";}if(_ge("a_geotag_toggle")){_ge("a_geotag_toggle").style.display="inline";}if(_ge("freeform_geotagging")){_ge("freeform_geotagging").value="";}if(_ge("freeform_geotagging_4real")){_ge("freeform_geotagging_4real").value="";}if(_ge("freeform_geotagging")&&use_location!=""){_ge("freeform_geotagging").value=use_location;}if(_ge("freeform_geotagging_4real")&&use_4real_location!=""){_ge("freeform_geotagging_4real").value=use_4real_location;}},toggle_geotagging:function(){if(this.closed){if(_ge("div_remove_only_if_we_have_geodata")){if(use_4real_location!=""){YAHOO.util.Dom.setStyle("div_remove_only_if_we_have_geodata","display","block");}else{YAHOO.util.Dom.setStyle("div_remove_only_if_we_have_geodata","display","none");}}YAHOO.util.Dom.setStyle("block_page_geotag","height","");YAHOO.util.Dom.setStyle("block_page_geotag","display","block");this.block_size_height=_ge("block_page_geotag").offsetHeight;this.block_size_width=_ge("block_page_geotag").offsetWidth;if(F.is_ie){var r=0;var z=0;}else{var r=10;var z=10;}var O=["div_geo_feedback_mangled_format","div_geo_feedback_error","div_geo_feedback_finding_locations","div_geo_feedback_saving","div_geo_feedback_success","div_geo_feedback_list_locations","div_geo_removing","div_geo_remove_success"];for(var S=0;S<O.length;S++){if(_ge(O[S])){YAHOO.util.Dom.setStyle(O[S],"height",this.block_size_height-z);YAHOO.util.Dom.setStyle(O[S],"width",this.block_size_width-r);}}this.closed=false;if(_ge("freeform_geotagging")){_ge("freeform_geotagging").focus();_ge("freeform_geotagging").do_first_lat_long_auto_insert=true;}}else{YAHOO.util.Dom.setStyle("block_page_geotag","display","none");this.closed=true;}return false;},load_geobookmarks:function(){var S={flickr_people_geoBookmarks_getList_onLoad:function(x,B,s,u){if(x){this.loaded_geobookmarks=true;var r=B.documentElement.getElementsByTagName("bookmark");var O=_ge("geo_bookmarks_slct").options;O.length=0;O[O.length]=new Option("-- "+F.output.get("global_plus_geo_select_bmk")+" --","");for(var z=0;z<r.length;z++){O[O.length]=new Option(r[z].getAttribute("label")+" - ("+r[z].getAttribute("pretty_name")+")",r[z].getAttribute("latitude")+", "+r[z].getAttribute("longitude")+", "+r[z].getAttribute("accuracy"));}_ge("div_geo_bookmark_form_loading").style.display="none";if(r.length>0){_ge("div_geo_bookmark_form").style.display="block";}else{_ge("div_geo_bookmark_none").style.display="block";}_ge("a_geotag_toggle").loaded_geobookmarks=true;}}};if(_ge("geo_bookmarks_slct")){F.API.callMethod("flickr.people.geoBookmarks.getList",{},S,null,null,0);}},find_location:function(S){var O={flickr_geocode_translate_onLoad:function(y,g,q,r){if(y){var Q=g.documentElement.getElementsByTagName("ResultSet")[0];var Z=g.documentElement.getElementsByTagName("Result");var h=Q.getAttribute("fl:source_id");var U=r.location.trim().split(",")[0].replace("-","");var p=[];var j=false;var u=function(C){var T=1;if(C.precision=="GeocodedBuilding"){T=16;}if(C.precision=="POI"){T=16;}if(C.precision=="GeocodedStreet"){T=15;}if(C.precision=="Suburb"){T=11;}if(C.precision=="Town"){T=9;}if(C.precision=="State"){T=5;}if(C.precision=="Country"){T=2;}return T;};var f=function(C){var T="&bull; ";if(C.title!=""){T+="<strong>"+C.title+"</strong>, ";}T+="<a href=\"#\" onclick=\"_ge('a_geotag_toggle').set_position("+C.lat+", "+C.lon+", ";T+=u(C);T+=", '"+C.title+", "+C.sub_title+"'); return false\">";T+=C.sub_title;T+="</a><br />";return T;};var H=0;for(I=0;I<Z.length;I++){try{var E=String(Z[I].getAttribute("precision"));}catch(t){var E="";}try{var G=String(Z[I].getElementsByTagName("woe_specificprobability")[0].firstChild.nodeValue);}catch(t){var G="";}try{var a=String(Z[I].getElementsByTagName("woe_woeid")[0].firstChild.nodeValue);}catch(t){var a="";}var W=String(Z[I].getElementsByTagName("Latitude")[0].firstChild.nodeValue);var N=String(Z[I].getElementsByTagName("Longitude")[0].firstChild.nodeValue);try{var m=String(Z[I].getElementsByTagName("woe_bbox")[0].firstChild.nodeValue);}catch(t){var m="";}try{var c=String(Z[I].getElementsByTagName("Address")[0].firstChild.nodeValue);}catch(t){var c="";}try{var J=String(Z[I].getElementsByTagName("City")[0].firstChild.nodeValue);}catch(t){var J="";}try{var P=String(Z[I].getElementsByTagName("State")[0].firstChild.nodeValue);}catch(t){var P="";}try{var e=String(Z[I].getElementsByTagName("Zip")[0].firstChild.nodeValue);}catch(t){var e="";}try{var L=String(Z[I].getElementsByTagName("Country")[0].firstChild.nodeValue);}catch(t){var L="";}try{var d=String(Z[I].getElementsByTagName("place_url")[0].firstChild.nodeValue);}catch(t){var d="";}L=(L=="United States")?"US":L;L=(L=="United Kingdom")?"UK":L;var w="";var z="";var s=U.toLowerCase();if(E=="GeocodedBuilding"||E=="POI"){if(c){z=z+", "+c;}}if(J){z=z+", "+J;}if(P){z=z+", "+P;}if(L){z=z+", "+L;}if(z.length>2){z=z.substring(2,z.length);}if(E=="County"){w=U.substring(0,1).toUpperCase()+U.substring(1,U.length)+" County";}else{if(E=="GeocodedBuilding"){z=U.split(" ")[0]+" "+z;}else{if(E=="POI"){w=U;}else{sub_titleA=z.split(", ");if(s==sub_titleA[0].toLowerCase()){if(sub_titleA[0]!=z){w=sub_titleA[0];z=z.replace(sub_titleA[0]+", ","");}}if(w==""){w=U;}}}}if(p.length==0||(p.length>0&&(w!=p[p.length-1].title||z!=p[p.length-1].sub_title))){var D=Math.abs(_pf(m.split(",")[0])-_pf(m.split(",")[2]));var x=Math.abs(_pf(m.split(",")[1])-_pf(m.split(",")[3]));var K=new woe_location_obj(a,w,z,G,m,E,W,N);j=true;var A=100.035;if((D+x<A||E=="GeocodedBuilding"||E=="POI"||E=="GeocodedStreet")){p.push(K);}else{if(E!="Country"){H++;}else{H+=5;}}}}if(H>=5){p=[];}if(p.length==0){if(j){new_html="<strong>"+F.output.get("global_plus_geo_kinda_found_stuff")+"</strong>";}else{new_html="<strong>"+F.output.get("global_plus_geo_no_matches_for",r.location)+"</strong>";}}else{if(p.length==1&&(p[0].precision=="GeocodedBuilding"||p[0].precision=="POI"||p[0].precision=="GeocodedStreet")){new_html="<strong>"+F.output.get("global_plus_geo_search_results")+"</strong><br />"+F.output.get("global_plus_geo_one_match")+"<br /><br />";new_html+=f(p[0]);_ge("a_geotag_toggle").set_position(p[0].lat,p[0].lon,u(p[0]),p[0].title+", "+p[0].sub_title);return ;}else{if(p.length>=8){new_html="<strong>"+F.output.get("global_plus_geo_search_results")+"</strong><br />"+F.output.get("global_plus_geo_found_x_matches",p.length)+"<br /><br />";for(var I=0;I<7;I++){new_html+=f(p[I]);}new_html+="<a href=\"#\" onclick=\"this.style.display='none'; _ge('div_geo_feedback_list_locations').style.height=''; _ge('div_more_geo_results').style.display='block'; return false\"><br /><strong>"+F.output.get("global_plus_geo_more_results")+"</strong></a>";new_html+="<div id=\"div_more_geo_results\" style=\"display: none\" class=\"p_smaller\">";for(var I=7;I<p.length;I++){new_html+=f(p[I]);}new_html+="</div>";}else{if(p.length==1){new_html=F.output.get("global_plus_geo_one_match")+"<br /><br />";}else{new_html=F.output.get("global_plus_geo_found_x_matches",p.length)+"<br /><br />";}for(var I=0;I<p.length;I++){new_html+=f(p[I]);}}}}_ge("a_geotag_toggle").set_failed_search(new_html);}else{try{var n=_pi(g.documentElement.getElementsByTagName("err")[0].getAttribute("code"));var X=g.documentElement.getElementsByTagName("err")[0].getAttribute("msg");}catch(t){var B=F.output.get("unknown_err");}_ge("div_geo_feedback_error_msg").innerHTML=B;YAHOO.util.Dom.setStyle("div_geo_feedback_finding_locations","display","none");YAHOO.util.Dom.setStyle("div_geo_feedback_error","display","block");}}};YAHOO.util.Dom.setStyle("block_page_geotag","display","none");_ge("div_geo_feedback_finding_locations").style.display="block";F.API.callMethod("flickr.geocode.translate",{provider_name:(_qs_args.provider_name)?_qs_args.provider_name:"woe",location:S},O,null,null,0);},find_at:function(O){var S={flickr_photos_search_onLoad:function(q,N,u,r){if(q){var x="";if(N.documentElement.getElementsByTagName("photo").length==1){photo_id=N.documentElement.getElementsByTagName("photo")[0].getAttribute("id");var n={flickr_photos_getInfo_onLoad:function(w,j,m,J){if(w){if(j.documentElement.getElementsByTagName("location").length==0){var p=j.documentElement.getElementsByTagName("url");var e="";for(var A=0;A<p.length;A++){if(p[A].getAttribute("type")=="photopage"){e=p[A].childNodes[0].nodeValue;}}if(e!=""){x="<strong>"+F.output.get("global_plus_geo_no_geo_bookmark_data_for_with_path",e,"@"+J.tags)+"</strong>";}else{x="<strong>"+F.output.get("global_plus_geo_no_geo_bookmark_data_for","@"+J.tags)+"</strong>";}_ge("a_geotag_toggle").set_failed_search(x);}else{latitude=j.documentElement.getElementsByTagName("location")[0].getAttribute("latitude");longitude=j.documentElement.getElementsByTagName("location")[0].getAttribute("longitude");accuracy=j.documentElement.getElementsByTagName("location")[0].getAttribute("accuracy");try{query_string=j.documentElement.getElementsByTagName("query_string")[0].childNodes[0].nodeValue;}catch(H){query_string=latitude+", "+longitude;}geo_ispublic=j.documentElement.getElementsByTagName("geoperms")[0].getAttribute("ispublic");geo_iscontact=j.documentElement.getElementsByTagName("geoperms")[0].getAttribute("iscontact");geo_isfriend=j.documentElement.getElementsByTagName("geoperms")[0].getAttribute("isfriend");geo_isfamily=j.documentElement.getElementsByTagName("geoperms")[0].getAttribute("isfamily");use_location=query_string;use_4real_location=latitude+", "+longitude+", "+accuracy+"|"+query_string;_ge("freeform_geotagging").value=use_location;_ge("freeform_geotagging_4real").value=use_4real_location;var W=0;if(geo_ispublic==0&&geo_iscontact==0&&geo_isfriend==1&&geo_isfamily==1){W=1;}if(geo_ispublic==0&&geo_iscontact==0&&geo_isfriend==0&&geo_isfamily==1){W=2;}if(geo_ispublic==0&&geo_iscontact==0&&geo_isfriend==1&&geo_isfamily==0){W=3;}if(geo_iscontact==1){W=4;}if(geo_ispublic==1){W=5;}_ge("geo_bookmark_privacy_slct").options[W].selected=true;_ge("geo_form_save").onclick();}}else{try{var Z=_pi(j.documentElement.getElementsByTagName("err")[0].getAttribute("code"));var G=j.documentElement.getElementsByTagName("err")[0].getAttribute("msg");var g=F.output.get("api_err_generic")+G;}catch(H){var g=F.output.get("unknown_err");}_ge("div_geo_feedback_error_msg").innerHTML="<strong>"+g+"</strong>";_ge("div_geo_feedback_finding_locations").style.display="none";_ge("div_geo_feedback_error").style.display="block";}}};F.API.callMethod("flickr.photos.getInfo",{photo_id:photo_id,tags:r.tags},n,null,null,0);}else{x="<strong>"+F.output.get("global_plus_geo_no_matches_for","@"+r.tags)+"</strong>";_ge("a_geotag_toggle").set_failed_search(x);}}else{try{var s=_pi(N.documentElement.getElementsByTagName("err")[0].getAttribute("code"));var z=N.documentElement.getElementsByTagName("err")[0].getAttribute("msg");}catch(U){var B=F.output.get("unknown_err");}_ge("div_geo_feedback_error_msg").innerHTML=B;YAHOO.util.Dom.setStyle("div_geo_feedback_finding_locations","display","none");YAHOO.util.Dom.setStyle("div_geo_feedback_error","display","block");}}};YAHOO.util.Dom.setStyle("block_page_geotag","display","none");_ge("div_geo_feedback_finding_locations").style.display="block";F.API.callMethod("flickr.photos.search",{user_id:global_nsid,tags:"geo:bookmark="+O,extras:"geo",per_page:1},S,null,null,0);},set_failed_search:function(s){YAHOO.util.Dom.setStyle("div_geo_feedback_list_locations","height","");_ge("div_geo_feedback_list_locations_list").innerHTML=s;YAHOO.util.Dom.setStyle("div_geo_feedback_finding_locations","display","none");YAHOO.util.Dom.setStyle("div_geo_feedback_list_locations","display","block");var S=YAHOO.util.Dom.getRegion("div_geo_feedback_list_locations");if(F.is_ie){var r=10;}else{var r=10;}if(S.bottom-S.top>_ge("a_geotag_toggle").block_size_height+r){var z=["div_geo_feedback_mangled_format","div_geo_feedback_error","div_geo_feedback_finding_locations","div_geo_feedback_saving","div_geo_feedback_success","div_geo_feedback_list_locations","div_geo_removing","div_geo_remove_success"];for(var O=0;O<z.length;O++){YAHOO.util.Dom.setStyle(z[O],"height",S.bottom-S.top-r);YAHOO.util.Dom.setStyle(z[O],"width",S.right-S.left-r);}}else{var z=["div_geo_feedback_list_locations"];for(var O=0;O<z.length;O++){YAHOO.util.Dom.setStyle(z[O],"height",_ge("a_geotag_toggle").block_size_height-r);YAHOO.util.Dom.setStyle(z[O],"width",_ge("a_geotag_toggle").block_size_width-r);}}},set_position:function(O,r,S,z){_ge("freeform_geotagging_4real").value=O+", "+r+", "+S+",|"+z;if(z.length>=2&&z.substring(0,2)==", "){z=z.substring(2,z.length);}_ge("freeform_geotagging").value=z;_ge("div_geo_feedback_list_locations").style.display="none";_ge("block_page_geotag").style.display="block";this.save_position(O,r,S,z);},save_position:function(r,s,z,O){var S={flickr_photos_geo_setLocation_onLoad:function(Z,G,U,x){if(Z){var J=use_viewgeo;if(_ge("geo_bookmark_privacy_slct")){for(var n=0;n<_ge("geo_bookmark_privacy_slct").options.length;n++){if(_ge("geo_bookmark_privacy_slct").options[n].selected){J=_ge("geo_bookmark_privacy_slct").options[n].value;break;}}}if(J!=use_viewgeo){var u={flickr_photos_geo_setPerms_onLoad:function(g,e,m,p){if(g){_ge("a_geotag_toggle").load_position(p.accuracy);}else{_ge("a_geotag_toggle").load_position(p.accuracy);}}};if(J==0){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,accuracy:x.accuracy,is_public:1,is_friend:0,is_family:0,is_contact:0},u);}if(J==1){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,accuracy:x.accuracy,is_public:0,is_friend:0,is_family:0,is_contact:1},u);}if(J==2){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,accuracy:x.accuracy,is_public:0,is_friend:1,is_family:1,is_contact:0},u);}if(J==3){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,accuracy:x.accuracy,is_public:0,is_friend:1,is_family:0,is_contact:0},u);}if(J==4){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,accuracy:x.accuracy,is_public:0,is_friend:0,is_family:1,is_contact:0},u);}if(J==5){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,accuracy:x.accuracy,is_public:0,is_friend:0,is_family:0,is_contact:0},u);}}else{_ge("a_geotag_toggle").load_position(x.accuracy);}}else{try{var N=_pi(G.documentElement.getElementsByTagName("err")[0].getAttribute("code"));var B=G.documentElement.getElementsByTagName("err")[0].getAttribute("msg");var q=F.output.get("api_err_generic")+" "+B;}catch(A){var q=F.output.get("unknown_err");}_ge("div_geo_feedback_error_msg").innerHTML=q;_ge("div_geo_feedback_saving").style.display="none";_ge("div_geo_feedback_error").style.display="block";}}};if(O.length>=2&&O.substr(0,2)==", "){O=O.substr(2,9999);}_ge("block_page_geotag").style.display="none";_ge("div_geo_feedback_list_locations").style.display="none";_ge("div_geo_feedback_finding_locations").style.display="none";_ge("div_geo_feedback_saving").style.display="block";F.API.callMethod("flickr.photos.geo.setLocation",{photo_id:page_photo_id,lat:r,lon:s,accuracy:z,query:O,provider:"user"},S,null,null,0);},remove_location:function(){var S={flickr_photos_geo_removeLocation_onLoad:function(N,x,u,z){if(N){if(_ge("div_pre_geo_block")){_ge("div_pre_geo_block").innerHTML="";}use_location="";use_4real_location;if(_ge("freeform_geotagging")){_ge("freeform_geotagging").value=use_location;}if(_ge("freeform_geotagging_4real")){_ge("freeform_geotagging_4real").value=use_4real_location;}if(_ge("geo_bookmark_privacy_slct")){for(var r=0;r<_ge("geo_bookmark_privacy_slct").options.length;r++){if(default_viewgeo==_ge("geo_bookmark_privacy_slct").options[r].value){_ge("geo_bookmark_privacy_slct").options.selected=true;}}}YAHOO.util.Dom.setStyle("div_geo_remove_location_confirm","display","none");YAHOO.util.Dom.setStyle("div_geo_remove_location_question","display","block");YAHOO.util.Dom.setStyle("div_remove_only_if_we_have_geodata","display","none");if(_ge("div_mini_map_frame")&&_ge("div_mini_map_frame").visible==true){_ge("div_mini_map_frame").visible=false;}YAHOO.util.Dom.setStyle("div_geo_removing","display","none");YAHOO.util.Dom.setStyle("div_geo_remove_success","display","block");setTimeout("_ge('a_geotag_toggle').fade_yay('div_geo_remove_success')",500);}else{try{var s=_pi(x.documentElement.getElementsByTagName("err")[0].getAttribute("code"));var O=x.documentElement.getElementsByTagName("err")[0].getAttribute("msg");var B=F.output.get("api_err_generic")+" "+O;}catch(n){var B=F.output.get("unknown_err");}_ge("div_geo_feedback_error_msg").innerHTML=B;YAHOO.util.Dom.setStyle("div_geo_feedback_removing","display","none");YAHOO.util.Dom.setStyle("div_geo_remove_location_confirm","display","none");YAHOO.util.Dom.setStyle("div_geo_remove_location_question","display","block");YAHOO.util.Dom.setStyle("div_geo_feedback_error","display","block");}}};YAHOO.util.Dom.setStyle("block_page_geotag","display","none");YAHOO.util.Dom.setStyle("div_geo_removing","display","block");F.API.callMethod("flickr.photos.geo.removeLocation",{photo_id:page_photo_id},S,null,null,0);},load_position:function(O){var S={flickr_photos_geo_getLocation_onLoad:function(q,N,x,s){if(q){var z=new Date();var u=z-_ge("a_geotag_toggle").two_second_delay_time_started_for_dunstan_because_he_is_picky_like_that;if(u<2000){_ge("a_geotag_toggle").saving_delayer(N,s.accuracy);}else{_ge("a_geotag_toggle").saved_responseXML=N;_ge("a_geotag_toggle").saved_accuracy=s.accuracy;setTimeout("_ge('a_geotag_toggle').saving_delayer(_ge('a_geotag_toggle').saved_responseXML, _ge('a_geotag_toggle').saved_accuracy)",2000-u);}}else{try{var B=_pi(N.documentElement.getElementsByTagName("err")[0].getAttribute("code"));var r=N.documentElement.getElementsByTagName("err")[0].getAttribute("msg");var n=F.output.get("api_err_generic")+r;}catch(U){var n=F.output.get("unknown_err");}_ge("div_geo_feedback_error_msg").innerHTML="<strong>"+n+"</strong>";_ge("div_geo_feedback_saving").style.display="none";_ge("div_geo_feedback_error").style.display="block";}}};F.API.callMethod("flickr.photos.geo.getLocation",{photo_id:page_photo_id,accuracy:O},S,null,null,0);},saving_delayer:function(z,O){_ge("a_geotag_toggle").saved_responseXML=z;if(O<15){_ge("a_geotag_toggle").redraw_taken_in(z);var S=_ge("div_geo_feedback_success").innerHTML;S+="<small style=\"color:black\">"+F.output.get("global_plus_geo_yeah_ok_found_stuff","/photos/organize/?start_tab=map&from_geo_ids="+page_photo_id)+"</small>";S+="<input type=\"button\" class=\"Butt\" value=\"CONTINUE\" onclick=\"_ge('a_geotag_toggle').saving_delayer(_ge('a_geotag_toggle').saved_responseXML, 99)\" />";S+="<br /><br /><small>"+F.output.get("global_plus_geo_yeah_ok_hint_found_stuff")+"</small>";_ge("div_geo_feedback_saving").innerHTML=S;}else{_ge("div_geo_feedback_saving").innerHTML=_ge("div_geo_feedback_saving_stored").innerHTML;_ge("div_geo_feedback_saving").style.display="none";_ge("div_geo_feedback_success").style.display="block";setTimeout("_ge('a_geotag_toggle').fade_yay('div_geo_feedback_success')",500);_ge("a_geotag_toggle").redraw_taken_in(z);}},redraw_taken_in:function(S){this.responseXML=S;if(_ge("div_pre_geo_block")){_ge("div_pre_geo_block").innerHTML="<span id='div_taken_in'>"+S.documentElement.getElementsByTagName("location")[0].getAttribute("taken_in").replace("&lt;","<").replace("&gt;",">").replace("&#38;lt;","<").replace("&#38;gt;",">")+"</span>";}if(typeof (YMap)=="function"){_ge("a_geotag_toggle").new_geo_point=new YGeoPoint(S.documentElement.getElementsByTagName("location")[0].getAttribute("latitude"),S.documentElement.getElementsByTagName("location")[0].getAttribute("longitude"));_ge("a_geotag_toggle").new_geo_accuracy=S.documentElement.getElementsByTagName("location")[0].getAttribute("accuracy");_ge("a_geotag_toggle").new_geo_taken_in=S.documentElement.getElementsByTagName("location")[0].getAttribute("taken_in").replace("&lt;","<").replace("&gt;",">").replace("&#38;lt;","<").replace("&#38;gt;",">");_ge("div_pre_geo_block").innerHTML+=" (<a id=\"a_link_to_map\" href=\""+geo_map_url+"?view=everyones\" class=\"Plain\" onclick=\"try{F.mini_map_open(_ge('a_link_to_map'), "+page_photo_id+", '"+geo_map_url+"', '"+escape(geo_possessed_username)+"', '"+geo_thmb+"', _ge('a_geotag_toggle').new_geo_point.Lat + '', _ge('a_geotag_toggle').new_geo_point.Lon + '', _ge('a_geotag_toggle').new_geo_accuracy, escape(_ge('a_geotag_toggle').new_geo_taken_in)); return false} catch(er) {}\">map</a>)<br />";if(_ge("div_mini_map_frame")&&_ge("div_mini_map_frame").visible==true){_ge("div_mini_map_frame").visible=false;_ge("a_link_to_map").onclick();}}else{_ge("a_geotag_toggle").new_geo_point_lat=S.documentElement.getElementsByTagName("location")[0].getAttribute("latitude");_ge("a_geotag_toggle").new_geo_point_lon=S.documentElement.getElementsByTagName("location")[0].getAttribute("longitude");_ge("a_geotag_toggle").new_geo_accuracy=S.documentElement.getElementsByTagName("location")[0].getAttribute("accuracy");_ge("a_geotag_toggle").new_geo_taken_in=S.documentElement.getElementsByTagName("location")[0].getAttribute("taken_in").replace("&lt;","<").replace("&gt;",">").replace("&#38;lt;","<").replace("&#38;gt;",">");F._map_script_loader.load_scripts(_ge("a_geotag_toggle").map_scripts_loaded,null);}},map_scripts_loaded:function(){_ge("div_pre_geo_block").innerHTML+=" (<a id=\"a_link_to_map\" href=\""+geo_map_url+"?view=everyones\" class=\"Plain\" onclick=\"try{F.mini_map_open(_ge('a_link_to_map'), "+page_photo_id+", '"+geo_map_url+"', '"+escape(geo_possessed_username)+"', '"+geo_thmb+"', _ge('a_geotag_toggle').new_geo_point_lat + '', _ge('a_geotag_toggle').new_geo_point_lon + '', _ge('a_geotag_toggle').new_geo_accuracy, escape(_ge('a_geotag_toggle').new_geo_taken_in)); return false} catch(er) {}\">map</a>)<br />";var S=1;},check_for_map_existing:function(){if(typeof (YMap)=="function"){_ge("a_geotag_toggle").new_geo_point=new YGeoPoint(this.responseXML.documentElement.getElementsByTagName("location")[0].getAttribute("latitude"),this.responseXML.documentElement.getElementsByTagName("location")[0].getAttribute("longitude"));_ge("a_geotag_toggle").new_geo_accuracy=this.responseXML.documentElement.getElementsByTagName("location")[0].getAttribute("accuracy");_ge("a_geotag_toggle").new_geo_taken_in=this.responseXML.documentElement.getElementsByTagName("location")[0].getAttribute("taken_in").replace("&lt;","<").replace("&gt;",">").replace("&#38;lt;","<").replace("&#38;gt;",">");_ge("a_link_to_map").onclick=function(){F.mini_map_open(_ge("a_link_to_map"),page_photo_id,geo_map_url,escape(geo_possessed_username),geo_thmb,_ge("a_geotag_toggle").new_geo_point.Lat,_ge("a_geotag_toggle").new_geo_point.Lon,_ge("a_geotag_toggle").new_geo_accuracy,escape(_ge("a_geotag_toggle").new_geo_taken_in));};_ge("div_hide_map_link").style.display="inline";}else{setTimeout("_ge('a_geotag_toggle').check_for_map_existing()",1000);}},fade_yay:function(O){var r=_ge(O);var S=function(){var s=function(){r.style.display="none";var B=new YAHOO.util.Anim(O,{opacity:{to:1}},0.1,YAHOO.util.Easing.easeOut);B.animate();_ge("a_geotag_toggle").closed=true;};var u=new YAHOO.util.Anim(O,{height:{to:1}},0.333,YAHOO.util.Easing.easeOut);u.onComplete.subscribe(s);u.animate();};var z=new YAHOO.util.Anim(O,{opacity:{to:0}},0.333,YAHOO.util.Easing.easeOut);z.onComplete.subscribe(S);z.animate();},last_empty_function:function(){}};F._map_script_loader={callback_func:"",load_scripts:function(O,S){this.callback_func=O;this.callback_args=S;if(typeof (YMap)=="function"){this.do_callback();return ;}var z=document.createElement("script");z.src="http://us.js2.yimg.com/us.js.yimg.com/lib/map/js/api/ymapapi_3_0_4_7.js";z.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(z);setTimeout("F._map_script_loader.check_for_map_existing()",100);},check_for_map_existing:function(){if(typeof (YMap)=="function"){F._map_script_loader.do_callback();return ;}setTimeout("F._map_script_loader.check_for_map_existing()",100);},do_callback:function(){if(this.callback_func){if(this.callback_args){this.callback_func.apply(null,this.callback_args);}else{this.callback_func.apply();}}}};F.str_to_XML=function(O){var S;if(window.DOMParser){var z=new DOMParser();S=z.parseFromString(O,"text/xml");}else{if(window.ActiveXObject){S=new ActiveXObject("Microsoft.XMLDOM");S.async=false;S.loadXML(O);}else{}}if(S.normalize){S.normalize();}return S;};F.cornicate=function(){try{if(typeof (global_nsid)!="undefined"&&global_nsid=="50362456@N00"){YAHOO.util.Dom.setStyle(document.body,"background","url(/images/flickrorn.jpg)");}}catch(S){}};try{YAHOO.util.Event.on(window,"load",F.cornicate);}catch(er){}F.make_hoverable=function(S,O){S.hover_class=O;Y.U.Event.addListener(S,"mouseover",F.handle_hoverable_mouseover);Y.U.Event.addListener(S,"mouseout",F.handle_hoverable_mouseout);};F.handle_hoverable_mouseover=function(S){Y.U.Dom.addClass(this,this.hover_class);};F.handle_hoverable_mouseout=function(S){Y.U.Dom.removeClass(this,this.hover_class);};F.output.sentencise=function(g,M){var H=(M)?M:"";var j=(M)?M.replace("<","</"):"";var E="";for(var V=0;V<g.length;V++){if(V>0){if(V==g.length-1){if(g.length>2){E+=",";}E+=" "+F.output.get("and")+" ";}else{E+=", ";}}E+=H+g[V]+j;}return E;};F.output.sentencize=function(M){var j="<b>";for(var g=0;g<M.length;g++){j+=M[g];if(g==M.length-1){break;}if(g==M.length-2){j+="</b> and <b>";continue;}j+="</b>, <b>";}j+="</b>";return j;};F.output.dateize=function(V,M,j){var g=F.output.date_strs.monthsA[M]+" "+j+", "+V;return g;};F.output.get_plural=function(){var V=[];for(var g=0;g<arguments.length;g++){V[g]=arguments[g];}var M=V[0];var j=_pi(V[1]);if(j>1){M=M+"_plural";}else{if(j==0&&global_intl_lang!="fr-fr"){M=M+"_plural";}}V[0]=M;V[1]=j.pretty_num();return this.get.apply(this,V);};F.output.get=function(){var V=[];for(var j=0;j<arguments.length;j++){V[j]=arguments[j];}var M=V.shift();var g=this.format_strs[M];if(g==undefined){return " output:"+M;}V.unshift(g);return this.sprintf.apply(null,V);};F.output.sprintf=function(j){var V=function(a,z,b){var m="";for(var P=0;P<Math.abs(b);P++){m+=z;}return b>0?a+m:m+a;};var E=function(P,l,z,b){var a=function(k,Q,J){if(Q>=0){if(k.indexOf(" ")>=0){J=" "+J;}else{if(k.indexOf("+")>=0){J="+"+J;}}}else{J="-"+J;}return J;};var o=parseInt(l,10);if(l.charAt(0)=="0"){var m=0;if(P.indexOf(" ")>=0||P.indexOf("+")>=0){m++;}if(z.length<(o-m)){z=V(z,"0",z.length-(o-m));}return a(P,b,z);}z=a(P,b,z);if(z.length<o){if(P.indexOf("-")<0){z=V(z," ",z.length-o);}else{z=V(z," ",o-z.length);}}return z;};var H=new Array();H["c"]=function(z,m,P,b){if(typeof (b)=="number"){return String.fromCharCode(b);}if(typeof (b)=="string"){return b.charAt(0);}return "";};H["d"]=function(z,m,P,b){return H["i"](z,m,P,b);};H["u"]=function(z,m,P,b){return H["i"](z,m,P,Math.abs(b));};H["i"]=function(z,a,P,b){var l=parseInt(P);var m=((Math.abs(b)).toString().split("."))[0];if(m.length<l){m=V(m," ",l-m.length);}return E(z,a,m,b);};H["E"]=function(z,m,P,b){return (H["e"](z,m,P,b)).toUpperCase();};H["e"]=function(z,m,P,b){iPrecision=parseInt(P);if(isNaN(iPrecision)){iPrecision=6;}rs=(Math.abs(b)).toExponential(iPrecision);if(rs.indexOf(".")<0&&z.indexOf("#")>=0){rs=rs.replace(/^(.*)(e.*)$/,"$1.$2");}return E(z,m,rs,b);};H["f"]=function(z,m,P,b){iPrecision=parseInt(P);if(isNaN(iPrecision)){iPrecision=6;}rs=(Math.abs(b)).toFixed(iPrecision);if(rs.indexOf(".")<0&&z.indexOf("#")>=0){rs=rs+".";}return E(z,m,rs,b);};H["G"]=function(z,m,P,b){return (H["g"](z,m,P,b)).toUpperCase();};H["g"]=function(z,m,P,b){iPrecision=parseInt(P);absArg=Math.abs(b);rse=absArg.toExponential();rsf=absArg.toFixed(6);if(!isNaN(iPrecision)){rsep=absArg.toExponential(iPrecision);rse=rsep.length<rse.length?rsep:rse;rsfp=absArg.toFixed(iPrecision);rsf=rsfp.length<rsf.length?rsfp:rsf;}if(rse.indexOf(".")<0&&z.indexOf("#")>=0){rse=rse.replace(/^(.*)(e.*)$/,"$1.$2");}if(rsf.indexOf(".")<0&&z.indexOf("#")>=0){rsf=rsf+".";}rs=rse.length<rsf.length?rse:rsf;return E(z,m,rs,b);};H["o"]=function(z,a,P,b){var l=parseInt(P);var m=Math.round(Math.abs(b)).toString(8);if(m.length<l){m=V(m," ",l-m.length);}if(z.indexOf("#")>=0){m="0"+m;}return E(z,a,m,b);};H["X"]=function(z,m,P,b){return (H["x"](z,m,P,b)).toUpperCase();};H["x"]=function(z,a,P,b){var l=parseInt(P);b=Math.abs(b);var m=Math.round(b).toString(16);if(m.length<l){m=V(m," ",l-m.length);}if(z.indexOf("#")>=0){m="0x"+m;}return E(z,a,m,b);};H["s"]=function(z,a,P,b){var l=parseInt(P);var m=b;if(m.length>l){m=m.substring(0,l);}return E(z,a,m,0);};H["a"]=function(z,m,P,b){if(b instanceof Array){return F.output.sentencise(b,"<b>");}return b;};farr=j.split("%");retstr=farr[0];fpRE=/^([0-9]+\$)?([-+ #]*)(\d*)\.?(\d*)([acdieEfFgGosuxX])(.*)$/;for(var g=1;g<farr.length;g++){fps=fpRE.exec(farr[g]);if(!fps){continue;}var M=g;if(fps[1]){M=fps[1].replace("$","");}if(arguments[M]!=null){retstr+=H[fps[5]](fps[2],fps[3],fps[4],arguments[M]);}retstr+=fps[6];}return retstr;};if(window.ActiveXObject&&!window.XMLHttpRequest){window.XMLHttpRequest=function(){return new ActiveXObject((navigator.userAgent.toLowerCase().indexOf("msie 5")!=-1)?"Microsoft.XMLHTTP":"Msxml2.XMLHTTP");};}global_fakeOperaXMLHttpRequestSupport=false;if(window.opera&&(!window.XMLHttpRequest||!(new window.XMLHttpRequest()).setRequestHeader)){global_fakeOperaXMLHttpRequestSupport=true;window.XMLHttpRequest=function(){this.readyState=0;this.status=0;this.statusText="";this._headers=[];this._aborted=false;this._async=true;this.abort=function(){this._aborted=true;};this.getAllResponseHeaders=function(){return this.getAllResponseHeader("*");};this.getAllResponseHeader=function(Q){var A="";for(var o=0;o<this._headers.length;o++){if(Q=="*"||this._headers[o].h==Q){A+=this._headers[o].h+": "+this._headers[o].v+"\n";}}return A;};this.setRequestHeader=function(o,A){this._headers[this._headers.length]={h:o,v:A};};this.open=function(u,Q,Z,A,o){this.method=u;this.url=Q;this._async=true;this._aborted=false;if(arguments.length>=3){this._async=Z;}if(arguments.length>3){opera.postError("XMLHttpRequest.open() - user/password not supported");}this._headers=[];this.readyState=1;if(this.onreadystatechange){this.onreadystatechange();}};this.send=function(A){if(!navigator.javaEnabled()){alert("XMLHttpRequest.send() - Java must be installed and enabled.");return ;}if(this._async){setTimeout(this._sendasync,0,this,A);}else{this._sendsync(A);}};this._sendasync=function(A,o){if(!A._aborted){A._sendsync(o);}};this._sendsync=function(q){this.readyState=2;if(this.onreadystatechange){this.onreadystatechange();}var l=new java.net.URL(new java.net.URL(window.location.href),this.url);var C=l.openConnection();for(var J=0;J<this._headers.length;J++){C.setRequestProperty(this._headers[J].h,this._headers[J].v);}this._headers=[];if(this.method=="POST"){C.setDoOutput(true);var o=new java.io.OutputStreamWriter(C.getOutputStream());o.write(q);o.flush();o.close();}var g=false;var j=false;var u=false;var Q=false;var v=false;var I=false;for(var J=0;;J++){var a=C.getHeaderFieldKey(J);var S=C.getHeaderField(J);if(a==null&&S==null){break;}if(a!=null){this._headers[this._headers.length]={h:a,v:S};switch(a.toLowerCase()){case "content-encoding":g=true;break;case "content-length":j=true;break;case "content-type":u=true;break;case "date":Q=true;break;case "expires":v=true;break;case "last-modified":I=true;break;}}}var Y;Y=C.getContentEncoding();if(Y!=null&&!g){this._headers[this._headers.length]={h:"Content-encoding",v:Y};}Y=C.getContentLength();if(Y!=-1&&!j){this._headers[this._headers.length]={h:"Content-length",v:Y};}Y=C.getContentType();if(Y!=null&&!u){this._headers[this._headers.length]={h:"Content-type",v:Y};}Y=C.getDate();if(Y!=0&&!Q){this._headers[this._headers.length]={h:"Date",v:(new Date(Y)).toUTCString()};}Y=C.getExpiration();if(Y!=0&&!v){this._headers[this._headers.length]={h:"Expires",v:(new Date(Y)).toUTCString()};}Y=C.getLastModified();if(Y!=0&&!I){this._headers[this._headers.length]={h:"Last-modified",v:(new Date(Y)).toUTCString()};}var Z="";var n=C.getInputStream();if(n){var A=new java.io.BufferedReader(new java.io.InputStreamReader(n));var y;while((y=A.readLine())!=null){if(this.readyState==2){this.readyState=3;if(this.onreadystatechange){this.onreadystatechange();}}Z+=y+"\n";}A.close();this.status=200;this.statusText="OK";this.responseText=Z;this.readyState=4;if(this.onreadystatechange){this.onreadystatechange();}if(this.onload){this.onload();}}else{this.status=404;this.statusText="Not Found";this.responseText="";this.readyState=4;if(this.onreadystatechange){this.onreadystatechange();}if(this.onerror){this.onerror();}}};};}if(!window.ActiveXObject&&window.XMLHttpRequest){window.ActiveXObject=function(A){switch(A.toLowerCase()){case "microsoft.xmlhttp":case "msxml2.xmlhttp":return new XMLHttpRequest();}return null;};}F.API={};F.API.callMethod=function(B,V,l,q,H,K,Y,h){if(_qs_args.APIdelayMS){h=_qs_args.APIdelayMS;}var g={};if(typeof V=="object"){for(var A in V){g[A]=V[A];}}g.method=B;var z=(Y)?0:1;var O="/services/rest/";if(K){O=K+O;}g.src="js";g.api_key=global_magisterLudi;g.auth_hash=global_auth_hash;g.auth_token=global_auth_token;g.cb=new Date().getTime();var b=[];var w="";for(var A in g){if(A=="RESTURL"){continue;}g[A]=g[A];b.push(A);w+="&"+A+"="+escape_utf8(g[A]);}b.sort();var Q=global_flickr_secret;if(Q!=""){for(var I=0;I<b.length;I++){Q+=b[I]+g[b[I]];}Q=md5_calcMD5(Q);w="api_sig="+Q+w;}g.RESTURL=w;var H=(H==undefined)?1:H;var D=new XMLHttpRequest();var R={};if(z){F.eb_add(R);R.window_onbeforeunload=function(p){F.eb_remove(R);D.onreadystatechange=function(){};D.abort();if(p&&typeof F.API=="object"){F.API.handleResponse(null,B,g,"Action cancelled by window unload. Try again please!",l);}};}g.timer_index=_page_timer.add("before api call "+g.method);if(D){D.onreadystatechange=function(){if(D.readyState==4){if(D.responseText==""&&H<2){H++;D.abort();F.API.callMethod(B,g,l,q,H,K,z);}else{F.eb_remove(R);if(typeof F.API=="object"){F.API.handleResponse(D.responseXML,B,g,D.responseText,l);}}this.onreadystatechange=null;}};if(q){O=q;}D.open("POST",O,z);D.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(z&&h){if(_qs_args.no_api_debug!="1"){writeAPIDebug("delaying API call "+h+" milliseconds for "+O+"?"+w);}setTimeout(function(){if(_qs_args.no_api_debug!="1"){writeAPIDebug(O+"?"+w);}D.send(w);},h);}else{if(_qs_args.no_api_debug!="1"){writeAPIDebug(O+"?"+w);}D.send(w);}if(!z){this.handleResponse(D.responseXML,B,g,D.responseText,l);}}};F.API.getCallBackName=function(D){return D.split(".").join("_")+"_onLoad";};F.API.handleResponse=function(w,Y,q,Q,l){if(!w){var A=(Q.indexOf("<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<rsp stat=\"ok\">")==0)?true:false;}else{if(navigator.userAgent.indexOf("Gecko")>-1&&!F.is_safari){w=F.str_to_XML(Q);}var A=(w.documentElement&&w.documentElement.getAttribute("stat")=="ok")?true:false;}if(A){if(_qs_args.no_api_debug!="1"){writeAPIDebug(Q);}}else{writeAPIDebug(Q+"\r"+_uber_toString(q));}if((window.global_rper&&!A)||_qs_args.rper=="1"){var D="";var B="";var p="";if(w&&w.documentElement){if(w.documentElement.getElementsByTagName("err")){var z=w.documentElement.getElementsByTagName("err")[0];if(z){D=z.getAttribute("code");B=z.getAttribute("msg");p=Q;}}}F.fragment_getter.get("/report_error.gne",{report:"api_err",json_str:JSON.stringify({req_params:q,success:A,code:D,rsp_str:p,user_nsid:window.global_nsid,user_name:window.global_name,agent:navigator.userAgent})},{rp:function(){}},"rp");}_page_timer.add("after api call "+q.method);_page_timer.dump(q.timer_index);l=(l)?l:this;if(typeof l[this.getCallBackName(Y)]=="function"){l[this.getCallBackName(Y)](A,w,Q,q);}else{if(typeof l.generic_api_onLoad=="function"){l.generic_api_onLoad(A,w,Q,q);}}};F.fragment_getter={};F.fragment_getter.get=function(B,w,q,l,H,Q,V,A){if(typeof w!="object"){w={};}var Y=(V)?0:1;var i=B;if(Q){i=Q+i;}var D="?src=js";for(var z in w){D+="&"+z+"="+escape_utf8(w[z]);}D+="&cb="+new Date().getTime();w.RESTURL=D;var H=(H==undefined)?1:H;var K=new XMLHttpRequest();if(K){K.onreadystatechange=function(){if(K.readyState==4){if(K.responseText==""&&H<1){H++;K.abort();F.fragment_getter.get(B,w,q,l,H,Q,V,A);}else{F.fragment_getter.handleResponse(l,w,K.responseText,q);}this.onreadystatechange=null;}};var R=D.length>1000||window.page_always_post_fragment_requests;if(R){K.open("POST",i,Y);}else{K.open("GET",i+D);}K.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(Y&&A){if(_qs_args.no_api_debug!="1"){writeAPIDebug("delaying fragment call "+A+" milliseconds for "+i+D);}setTimeout(function(){if(_qs_args.no_api_debug!="1"){writeAPIDebug(i+D);}if(R){K.send(D);}else{K.send(null);}},A);}else{if(_qs_args.no_api_debug!="1"){writeAPIDebug(i+D);}if(R){K.send(D);}else{K.send(null);}}}};F.fragment_getter.handleResponse=function(D,z,p,l){l=(l)?l:this;if(_qs_args.no_api_debug!="1"){writeAPIDebug(p);}try{l[D](1,p,z);}catch(B){}};var escape_utf8=function(Y){if(Y===""||Y===null||Y===undefined){return "";}Y=Y.toString();var B="";for(var z=0;z<Y.length;z++){var Q=Y.charCodeAt(z);var p=new Array();if(Q>65536){p[0]=240|((Q&1835008)>>>18);p[1]=128|((Q&258048)>>>12);p[2]=128|((Q&4032)>>>6);p[3]=128|(Q&63);}else{if(Q>2048){p[0]=224|((Q&61440)>>>12);p[1]=128|((Q&4032)>>>6);p[2]=128|(Q&63);}else{if(Q>128){p[0]=192|((Q&1984)>>>6);p[1]=128|(Q&63);}else{p[0]=Q;}}}if(p.length>1){for(var l=0;l<p.length;l++){var D=p[l];var q=nibble_to_hex((D&240)>>>4)+nibble_to_hex(D&15);B+="%"+q;}}else{if(encodeURIComponent&&typeof encodeURIComponent=="function"){B+=encodeURIComponent(String.fromCharCode(p[0]));}else{B+=(String.fromCharCode(p[0]));}}}return B;};var nibble_to_hex=function(D){var B="0123456789ABCDEF";return B.charAt(D);};var flashDescription;var requiredVersion=6;var useRedirect=false;var flashPage="movie.html";var noFlashPage="noflash.html";var upgradePage="upgrade.html";var flash2Installed=false;var flash3Installed=false;var flash4Installed=false;var flash5Installed=false;var flash6Installed=false;var flash7Installed=false;var maxVersion=7;var actualVersion=0;var hasRightVersion=false;var jsVersion=1;var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.indexOf("Windows")!=-1)?true:false;jsVersion=1.1;if(isIE&&isWin){document.write("<SCR"+"IPT LANGUAGE=VBScript> \n");document.write("on error resume next \n");document.write("flash2Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.2\"))) \n");document.write("flash3Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.3\"))) \n");document.write("flash4Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.4\"))) \n");document.write("flash5Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.5\"))) \n");document.write("flash6Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.6\"))) \n");document.write("</SCR"+"IPT> \n");}function detectFlash(){if(navigator.plugins){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var isVersion2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";flashDescription=navigator.plugins["Shockwave Flash"+isVersion2].description;var flashVersion=parseInt(flashDescription.charAt(flashDescription.indexOf(".")-1));flash2Installed=flashVersion==2;flash3Installed=flashVersion==3;flash4Installed=flashVersion==4;flash5Installed=flashVersion==5;flash6Installed=flashVersion==6;flash7Installed=flashVersion>=7;}}for(var i=2;i<=maxVersion;i++){if(eval("flash"+i+"Installed")==true){actualVersion=i;}}if(navigator.userAgent.indexOf("WebTV")!=-1){actualVersion=3;}if(actualVersion>=requiredVersion){if(useRedirect){if(jsVersion>1){window.location.replace(flashPage);}else{window.location=flashPage;}}hasRightVersion=true;}else{if(useRedirect){if(jsVersion>1){window.location.replace((actualVersion>=2)?upgradePage:noFlashPage);}else{window.location=(actualVersion>=2)?upgradePage:noFlashPage;}}}}detectFlash();var md5_hex_chr="0123456789abcdef";function md5_rhex(X){str="";for(j=0;j<=3;j++){str+=md5_hex_chr.charAt((X>>(j*8+4))&15)+md5_hex_chr.charAt((X>>(j*8))&15);}return str;}function md5_str2blks_MD5(X){nblk=((X.length+8)>>6)+1;blks=new Array(nblk*16);for(i=0;i<nblk*16;i++){blks[i]=0;}for(i=0;i<X.length;i++){blks[i>>2]|=X.charCodeAt(i)<<((i%4)*8);}blks[i>>2]|=128<<((i%4)*8);blks[nblk*16-2]=X.length*8;return blks;}function md5_add(X,w){var I=(X&65535)+(w&65535);var T=(X>>16)+(w>>16)+(I>>16);return (T<<16)|(I&65535);}function md5_rol(X,T){return (X<<T)|(X>>>(32-T));}function md5_cmn(P,I,T,X,V,w){return md5_add(md5_rol(md5_add(md5_add(I,P),md5_add(X,w)),V),T);}function md5_ff(I,T,S,P,X,V,w){return md5_cmn((T&S)|((~T)&P),I,T,X,V,w);}function md5_gg(I,T,S,P,X,V,w){return md5_cmn((T&P)|(S&(~P)),I,T,X,V,w);}function md5_hh(I,T,S,P,X,V,w){return md5_cmn(T^S^P,I,T,X,V,w);}function md5_ii(I,T,S,P,X,V,w){return md5_cmn(S^(T|(~P)),I,T,X,V,w);}function md5_calcMD5(X){x=md5_str2blks_MD5(X);a=1732584193;b=-271733879;c=-1732584194;d=271733878;for(i=0;i<x.length;i+=16){olda=a;oldb=b;oldc=c;oldd=d;a=md5_ff(a,b,c,d,x[i+0],7,-680876936);d=md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5_ff(b,c,d,a,x[i+3],22,-1044525330);a=md5_ff(a,b,c,d,x[i+4],7,-176418897);d=md5_ff(d,a,b,c,x[i+5],12,1200080426);c=md5_ff(c,d,a,b,x[i+6],17,-1473231341);b=md5_ff(b,c,d,a,x[i+7],22,-45705983);a=md5_ff(a,b,c,d,x[i+8],7,1770035416);d=md5_ff(d,a,b,c,x[i+9],12,-1958414417);c=md5_ff(c,d,a,b,x[i+10],17,-42063);b=md5_ff(b,c,d,a,x[i+11],22,-1990404162);a=md5_ff(a,b,c,d,x[i+12],7,1804603682);d=md5_ff(d,a,b,c,x[i+13],12,-40341101);c=md5_ff(c,d,a,b,x[i+14],17,-1502002290);b=md5_ff(b,c,d,a,x[i+15],22,1236535329);a=md5_gg(a,b,c,d,x[i+1],5,-165796510);d=md5_gg(d,a,b,c,x[i+6],9,-1069501632);c=md5_gg(c,d,a,b,x[i+11],14,643717713);b=md5_gg(b,c,d,a,x[i+0],20,-373897302);a=md5_gg(a,b,c,d,x[i+5],5,-701558691);d=md5_gg(d,a,b,c,x[i+10],9,38016083);c=md5_gg(c,d,a,b,x[i+15],14,-660478335);b=md5_gg(b,c,d,a,x[i+4],20,-405537848);a=md5_gg(a,b,c,d,x[i+9],5,568446438);d=md5_gg(d,a,b,c,x[i+14],9,-1019803690);c=md5_gg(c,d,a,b,x[i+3],14,-187363961);b=md5_gg(b,c,d,a,x[i+8],20,1163531501);a=md5_gg(a,b,c,d,x[i+13],5,-1444681467);d=md5_gg(d,a,b,c,x[i+2],9,-51403784);c=md5_gg(c,d,a,b,x[i+7],14,1735328473);b=md5_gg(b,c,d,a,x[i+12],20,-1926607734);a=md5_hh(a,b,c,d,x[i+5],4,-378558);d=md5_hh(d,a,b,c,x[i+8],11,-2022574463);c=md5_hh(c,d,a,b,x[i+11],16,1839030562);b=md5_hh(b,c,d,a,x[i+14],23,-35309556);a=md5_hh(a,b,c,d,x[i+1],4,-1530992060);d=md5_hh(d,a,b,c,x[i+4],11,1272893353);c=md5_hh(c,d,a,b,x[i+7],16,-155497632);b=md5_hh(b,c,d,a,x[i+10],23,-1094730640);a=md5_hh(a,b,c,d,x[i+13],4,681279174);d=md5_hh(d,a,b,c,x[i+0],11,-358537222);c=md5_hh(c,d,a,b,x[i+3],16,-722521979);b=md5_hh(b,c,d,a,x[i+6],23,76029189);a=md5_hh(a,b,c,d,x[i+9],4,-640364487);d=md5_hh(d,a,b,c,x[i+12],11,-421815835);c=md5_hh(c,d,a,b,x[i+15],16,530742520);b=md5_hh(b,c,d,a,x[i+2],23,-995338651);a=md5_ii(a,b,c,d,x[i+0],6,-198630844);d=md5_ii(d,a,b,c,x[i+7],10,1126891415);c=md5_ii(c,d,a,b,x[i+14],15,-1416354905);b=md5_ii(b,c,d,a,x[i+5],21,-57434055);a=md5_ii(a,b,c,d,x[i+12],6,1700485571);d=md5_ii(d,a,b,c,x[i+3],10,-1894986606);c=md5_ii(c,d,a,b,x[i+10],15,-1051523);b=md5_ii(b,c,d,a,x[i+1],21,-2054922799);a=md5_ii(a,b,c,d,x[i+8],6,1873313359);d=md5_ii(d,a,b,c,x[i+15],10,-30611744);c=md5_ii(c,d,a,b,x[i+6],15,-1560198380);b=md5_ii(b,c,d,a,x[i+13],21,1309151649);a=md5_ii(a,b,c,d,x[i+4],6,-145523070);d=md5_ii(d,a,b,c,x[i+11],10,-1120210379);c=md5_ii(c,d,a,b,x[i+2],15,718787259);b=md5_ii(b,c,d,a,x[i+9],21,-343485551);a=md5_add(a,olda);b=md5_add(b,oldb);c=md5_add(c,oldc);d=md5_add(d,oldd);}return md5_rhex(a)+md5_rhex(b)+md5_rhex(c)+md5_rhex(d);}var g_tooltip_elm=null;var g_tooltip_inner_elm=null;var g_tooltip_showing=0;var g_tooltip_trigger_elm=null;var g_tooltip_previous_click=null;var g_tip_elm=null;function init_tooltip(){g_tooltip_elm=document.createElement("DIV");g_tooltip_inner_elm=document.createElement("DIV");g_tooltip_elm.style.display="none";g_tooltip_elm.style.zIndex="200000";document.body.appendChild(g_tooltip_elm);g_tooltip_elm.appendChild(g_tooltip_inner_elm);}function show_tooltip(r,c,a,K,Q){if(!g_tooltip_elm){init_tooltip();}if(Y.U.Dom.getStyle(r,"visibility")=="hidden"){return ;}var Q=Q||"ToolTip";g_tooltip_elm.className=Q;if(g_tooltip_showing){if(g_tooltip_trigger_elm==r){hide_tooltip();return ;}hide_tooltip();}var K=(K==undefined)?"":K;a+=K.length;g_tip_elm=document.getElementById(c);g_tooltip_inner_elm.innerHTML=g_tip_elm.innerHTML+K;g_tooltip_inner_elm.style.width="auto";g_tooltip_elm.style.display="block";g_tooltip_elm.style.visibility="hidden";if(Q!="ToolTipSmall"){var o=150;if(a>200){o=300;}else{if(a>100){o=200;}}g_tooltip_inner_elm.style.width=o+"px";}var s=g_tooltip_elm.offsetWidth;var j=Y.U.Dom.getX(r);var m=Y.U.Dom.getY(r);if(Q=="ToolTipSmall"){j-=Math.round((s-r.offsetWidth)/2)-5;if(r.tip_placement=="below"){m+=r.offsetHeight+10;}else{m-=22;}}else{m+=20;}var P=_find_screen_width()-40;if(j+s>P){j=P-s;}g_tooltip_elm.style.left=j+"px";g_tooltip_elm.style.top=m+"px";g_tooltip_showing=1;g_tooltip_elm.style.display="block";g_tooltip_elm.style.visibility="visible";g_tooltip_trigger_elm=r;document.onmousedown=doc_mousedown;}function doc_mousedown(w){var K=_get_event_src(w);if(K==g_tooltip_trigger_elm||(_el_is_in_a_link(K)&&tooltip_el_is_in_tooltip(K))){document.onmousedown=function(){};}else{hide_tooltip();}}function hide_tooltip(K){if(K){if(g_tooltip_trigger_elm!=K){return ;}}document.onmousedown=function(){};if(!g_tooltip_elm){return false;}g_tooltip_showing=0;g_tooltip_elm.style.display="none";g_tooltip_trigger_elm="null";return false;}var tooltip_el_is_in_tooltip=function(K){var w=K;while(w){if(w==g_tooltip_elm){return 1;}w=w.parentNode;}return 0;};function deja_view_check(Q){if(!Q||!_ok_for_scrumjax_xml()){return ;}window.deja_view_item=Q;window.deja_view_should_refresh=0;window.deja_view_type=Q.substring(0,1);window.deja_view_id=Q.replace(deja_view_type,"");var p=_get_cookie("deja_view");if(p){georgeA=p.split(" ");for(var K=0;K<georgeA.length;K++){var L=georgeA[K].split("^");if(L[0]==Q){if(global_time_stamp==L[1]){deja_view_should_refresh=1;document.write("<style>#otherContexts_div {display:none} </style>");}break;}}}}function deja_view_uh_huh(){if(!window.deja_view_item){return ;}var Q=deja_view_item+"^"+global_time_stamp;var L=[Q];var T=_get_cookie("deja_view");if(T){georgeA=T.split(" ");for(var K=0;K<georgeA.length;K++){var p=georgeA[K].split("^");if(p[0]!=deja_view_item){L.push(georgeA[K]);}if(L.length==30){break;}}}_set_cookie("deja_view",L.join(" "),1);}function deja_view_refresh(){if(!window.deja_view_should_refresh||!window.deja_view_item||!_ok_for_scrumjax_xml()){return ;}var K={};K.flickr_photos_getInfo_onLoad=function(k,y,p){if(k){var L=_ge("title_div"+deja_view_id);if(L){L.flickr_photos_getInfo_onLoad(k,y,p);}var Q=_ge("photo_notes");if(Q&&Q.p_id){Q.flickr_photos_getInfo_onLoad(k,y,p);}var T=_ge("description_div"+deja_view_id);if(T){T.flickr_photos_getInfo_onLoad(k,y,p);}var h=_ge("tagadder");if(h){h.flickr_photos_getInfo_onLoad(k,y,p);}}else{}};K.flickr_photos_getAllContexts_onLoad=function(H,N,y){var L=_ge("otherContexts_div");if(H){var a={};var T=N.documentElement.getElementsByTagName("set");for(var S=0;S<T.length;S++){var Q=T[S].getAttribute("id");a["contextDiv_set"+Q]=1;add_context_widget("set",Q,deja_view_id);}var q=N.documentElement.getElementsByTagName("pool");for(var S=0;S<q.length;S++){var Q=q[S].getAttribute("id");a["contextDiv_pool"+Q]=1;add_context_widget("pool",Q,deja_view_id);}var h=Y.U.Dom.getElementsByClassName("contextDiv","DIV");for(var S=0;S<h.length;S++){var p=h[S].id;if(a[p]!=1){var k="set";var s=p.split(k);if(s.length==1){k="pool";s=p.split(k);}var Q=s[1];remove_context_widget(k,Q);}}}else{}L.style.display="block";};if(deja_view_type=="p"){F.API.callMethod("flickr.photos.getInfo",{photo_id:deja_view_id},K);F.API.callMethod("flickr.photos.getAllContexts",{photo_id:deja_view_id},K);}else{}}var tab_bumper=1;var insitu_init_page_set_description_div=function(C){if(!_ok_for_scrumjax()){return false;}var c=insitu_init_generic_description_div(C,global_sets);c.getInput=function(){return "<textarea name=\"content\" tabindex=\""+tab_bumper+"1\" style=\"font-family:arial; font-size:12px; padding:3px; margin-top:14px; width:100%; height:75px;border:1px inset #e9e9ae; background-color:#ffffd3; margin-bottom:5px;\">"+this.form_content.escape_for_xml()+"</textarea>";};return true;};var insitu_init_page_set_title_div=function(C){if(!_ok_for_scrumjax()){return false;}var c=insitu_init_generic_title_div(C,global_sets);c.getInput=function(){return "<input name=\"content\" value=\""+this.form_content.escape_for_xml().replace("\"","&#34;")+"\" style=\"font-size:32px; font-family:arial; padding:3px; width:100%; border:1px inset #e9e9ae; background-color:#ffffd3; margin-bottom:5px;\">";};c.getExtra=function(){return "<br>";};return true;};var insitu_init_page_collection_description_div=function(c,C){if(!_ok_for_scrumjax()){return false;}var e=insitu_init_generic_description_div(c,global_collections);e.getInput=function(){return "<textarea name=\"content\" tabindex=\""+tab_bumper+"1\" style=\"font-family:arial; font-size:12px; padding:3px; margin-top:14px; width:100%; height:150px;border:1px inset #e9e9ae; background-color:#ffffd3; margin-bottom:5px;\">"+this.form_content.escape_for_xml()+"</textarea>";};e.after_save_func=C;return true;};var insitu_init_page_collection_title_div=function(C){if(!_ok_for_scrumjax()){return false;}var c=insitu_init_generic_title_div(C,global_collections);c.getInput=function(){return "<input name=\"content\" value=\""+this.form_content.escape_for_xml().replace("\"","&#34;")+"\" style=\"font-size:22px; font-family:arial; padding:3px; width:100%; border:1px inset #e9e9ae; background-color:#ffffd3; margin-bottom:5px;\">";};c.getExtra=function(){return "<br>";};return true;};var insitu_init_page_photo_description_div=function(C){if(!_ok_for_scrumjax()){return false;}var c=insitu_init_generic_description_div(C,global_photos);c.getInput=function(){return "<textarea tabindex=\""+tab_bumper+"1\" name=\"content\" style=\"font-family:arial; font-size:12px; padding:3px; margin-top:0px; width:100%; height:100px; border:1px inset #e9e9ae; background-color:#ffffd3; margin-bottom:5px;\">"+this.form_content.escape_for_xml()+"</textarea>";};c.getExtra=function(){return "<br>";};return true;};var insitu_init_page_photo_title_div=function(C){if(!_ok_for_scrumjax()){return false;}var c=insitu_init_generic_title_div(C,global_photos);c.getInput=function(){return "<input name=\"content\" value=\""+this.form_content.escape_for_xml().replace("\"","&#34;")+"\" style=\"font-size:22px; font-weight: bold; font-family: Arial; padding:4px; width:100%; border:1px inset #e9e9ae; background-color:#ffffd3; margin-bottom:5px;\">";};c.getExtra=function(){return "<br>";};return true;};var insitu_init_group_blast_div=function(c,C,e){if(!_ok_for_scrumjax()){return false;}var G=_ge("description_div"+c);G.title=F.output.get("insitu_click_to_edit");G.hash_id=c;G.show_some_html_is_ok=true;G.blast_date=C;G.buddy_icon=e;G.emptyText="<i style=\"color: rgb(136, 136, 136);\">"+F.output.get("insitu_click_to_add_blast")+"</i>&nbsp;";G.form_content=(G.innerHTML==G.emptyText||G.innerHTML=="&nbsp;")?"":G.innerHTML;G.blast_date_format="<small id=\"blast_date\" style=\"font-size: 11px;\">"+C+"</small>";G.change_checker=false;G=insitu_init_editable_div(G);G.getInput=function(){return "<textarea id=\"ta_content_"+c+"\" tabindex=\""+tab_bumper+"1\" name=\"content\" style=\"font-family:arial; font-size:14px; padding:3px; margin-top:0px; width:100%; height:100px; border:1px inset #e9e9ae; background-color:#ffffd3; margin-bottom:5px;\">"+_ge("description_simple_div"+G.hash_id).innerHTML.replace("<br>",String.fromCharCode(13))+"</textarea>";};G.getExtra=function(){return "<br>";};G.flickr_groups_getInfo_onLoad=function(o,V){var j=new Date();G.blast_date=j.flickr_minidate()+" - ";G.blast_date_format="<small id=\"blast_date\" style=\"font-size: 11px;\">"+G.blast_date+"</small> ";if(o){if(V.documentElement.getElementsByTagName("blast").length>0&&V.documentElement.getElementsByTagName("blast")[0].firstChild){var s=V.documentElement.getElementsByTagName("blast")[0].firstChild.nodeValue;}else{var s="";}G.description=G.form_content=s;}else{G.description=G.form_content=this.new_blast;}if(G.form_content.length>0){_ge("description_simple_div"+G.hash_id).innerHTML=G.form_content;G.form_content="<table cellpadding=\"0\" collspacing=\"0\" border=\"0\"><tr><td width=\"55px\" valign=\"top\"><img src=\""+global_icon_url+"\" id=\"icon_"+global_nsid+"\" width=\"48px\" height=\"48px\" /></td><td valign=\"top\"><strong>"+F.output.get("page_groups_view_admin_says",global_name)+"</strong><br />"+G.blast_date_format+G.form_content.trim().nl2br()+"</td></tr></table>";G.innerHTML=G.form_content;G.style.border="1px solid #e2e2e2";personmenu_process_img(_ge("icon_"+global_nsid));}else{_ge("description_simple_div"+G.hash_id).innerHTML=G.form_content;G.form_content=F.output.get("page_groups_view_add_ann");G.innerHTML="<i>"+G.form_content+"</i>";G.style.border="1px solid #f4f4f4";G.style.color="#a3a3a3";}};G.flickr_groups_addBlast_onLoad=G.flickr_photosets_getInfo_onLoad=function(V,s){if(V){F.API.callMethod("flickr.groups.getInfo",{group_id:this.hash_id},G);}else{G.description=G.form_content=this.new_blast;if(G.form_content.length>0){_ge("description_simple_div"+G.hash_id).innerHTML=G.form_content;G.form_content="<table cellpadding=\"0\" collspacing=\"0\" border=\"0\"><tr><td width=\"55px\" valign=\"top\"><img src=\""+global_icon_url+"\" id=\"icon_"+global_nsid+"\" width=\"48px\" height=\"48px\" /></td><td valign=\"top\"><strong>"+F.output.get("page_groups_view_admin_says",global_name)+"</strong><br />"+G.blast_date_format+" - "+G.form_content.trim().nl2br()+"</td></tr></table>";G.innerHTML=G.form_content;G.style.border="1px solid #e2e2e2";personmenu_process_img(_ge("icon_"+global_nsid));var j=1;}else{_ge("description_simple_div"+G.hash_id).innerHTML=G.form_content;G.form_content=F.output.get("page_groups_view_add_ann");G.innerHTML=G.form_content;G.style.border="1px solid #f4f4f4";}}};G.check_changes=function(j){if(j){this.change_checker=true;setTimeout("_ge('description_div"+this.hash_id+"').do_change_checker()",250);}else{this.change_checker=false;}};G.do_change_checker=function(){if(this.change_checker){if(_ge("ta_content_"+this.hash_id).value.length>500){_ge("div_boing_alert_"+this.hash_id).style.display="block";}else{_ge("div_boing_alert_"+this.hash_id).style.display="none";}setTimeout("_ge('description_div"+this.hash_id+"').do_change_checker()",250);}};G.saveChanges=function(j){this.new_blast=j.content.value;this.innerHTML="<i>"+F.output.get("insitu_saving")+"</i>&nbsp;";this.endEditing();F.API.callMethod("flickr.groups.addBlast",{group_id:this.hash_id,blast:this.new_blast,user_id:global_nsid},G);};return true;};var insitu_init_page_photos_user_description_div=function(c,C){C=(C||240);if(!_ok_for_scrumjax()){return false;}var e=insitu_init_generic_description_div(c,global_photos);e.getInput=function(){return "<textarea name=\"content\" tabindex=\""+tab_bumper+"1\" style=\"font-family:arial; font-size:12px; padding:3px; margin-top:0px; width:"+C+"px; height:75px;border:1px inset #e9e9ae; background-color:#ffffd3; margin-bottom:5px;\">"+this.form_content.escape_for_xml()+"</textarea>";};return true;};var insitu_init_page_photos_user_title_div=function(c,C){C=(C||240);if(!_ok_for_scrumjax()){return false;}var e=insitu_init_generic_title_div(c,global_photos);e.getInput=function(){return "<input name=\"content\" value=\""+this.form_content.escape_for_xml().replace("\"","&#34;")+"\" style=\"font-size:14px; font-weight:bold; font-family:arial; padding:3px; width:"+C+"px; border:1px inset #e9e9ae; background-color:#ffffd3; margin-bottom:5px;\" />";};return true;};var insitu_init_generic_description_div=function(c,C){if(!_ok_for_scrumjax()){return false;}var e=_ge("description_div"+c);e.title=F.output.get("insitu_click_to_edit");e.hash_id=c;if(!C[e.hash_id]){alert(F.output.get("insitu_error_no_hash",e.hash_id));return false;}e.form_content=C[e.hash_id].description;e.emptyText="<i>"+F.output.get("insitu_click_to_add_description")+"</i>&nbsp;";e.getExtra=function(){return "";};e.flickr_photos_getInfo_onLoad=e.flickr_collections_getInfo_onLoad=e.flickr_photosets_getInfo_onLoad=function(V,s){if(V){if(s.documentElement.getElementsByTagName("description")&&s.documentElement.getElementsByTagName("description")[0]&&s.documentElement.getElementsByTagName("description")[0].firstChild){var G=s.documentElement.getElementsByTagName("description")[0].firstChild.nodeValue;}else{var G="";}C[e.hash_id].description=e.form_content=G;var j=(C[e.hash_id].description=="")?"&nbsp;":C[e.hash_id].description.trim().nl2br();if(j!=e.innerHTML){e.innerHTML=j+"&nbsp;";}}else{e.form_content=C[e.hash_id].description;e.innerHTML=(C[e.hash_id].description=="")?"&nbsp;":C[e.hash_id].description.trim().nl2br()+"&nbsp;";}if(this.after_save_func){this.after_save_func();}};e.flickr_photos_setMeta_onLoad=e.flickr_collections_editMeta_onLoad=e.flickr_photosets_editMeta_onLoad=function(j,G){if(j){if(_ok_for_scrumjax_xml()){if(C==global_sets){F.API.callMethod("flickr.photosets.getInfo",{photoset_id:this.hash_id},e);}else{if(C==global_collections){F.API.callMethod("flickr.collections.getInfo",{collection_id:this.hash_id},e);}else{if(C==global_photos){F.API.callMethod("flickr.photos.getInfo",{photo_id:this.hash_id},e);}}}}else{e.form_content=C[e.hash_id].description;e.innerHTML=(C[e.hash_id].description=="")?"&nbsp;":C[e.hash_id].description.trim().nl2br()+"&nbsp;";}}else{C[e.hash_id].description=e.form_content;e.innerHTML=(C[e.hash_id].description=="")?"&nbsp;":C[e.hash_id].description.trim().nl2br()+"&nbsp;";alert(F.output.get("insitu_description_error"));}};e.saveChanges=function(G){deja_view_uh_huh();C[this.hash_id].description=G.content.value;this.innerHTML="<i>"+F.output.get("insitu_saving")+"</i>&nbsp;";this.endEditing();if(!C[this.hash_id]){this.innerHTML=F.output.get("insitu_error_no_hash",this.hash_id);return false;}if(C==global_sets){F.API.callMethod("flickr.photosets.editMeta",{photoset_id:this.hash_id,title:C[this.hash_id].title,description:C[this.hash_id].description},e);}else{if(C==global_collections){F.API.callMethod("flickr.collections.editMeta",{collection_id:this.hash_id,title:C[this.hash_id].title,description:C[this.hash_id].description},e);}else{if(C==global_photos){F.API.callMethod("flickr.photos.setMeta",{photo_id:this.hash_id,title:C[this.hash_id].title,description:C[this.hash_id].description},e);}else{alert(F.output.get("insitu_unknown_hash"));}}}};if(window.deja_view_should_refresh){e.innerHTML="...";}return insitu_init_editable_div(e);};var insitu_init_generic_title_div=function(c,C){if(!_ok_for_scrumjax()){return false;}var e=_ge("title_div"+c);e.title=F.output.get("insitu_click_to_edit");e.hash_id=c;if(!C[e.hash_id]){alert(F.output.get("insitu_unknown_hash"));return false;}e.form_content=C[e.hash_id].title;e.emptyText="<i>"+F.output.get("insitu_click_to_add_title")+"</i>&nbsp;";e.getExtra=function(){return "";};e.flickr_photos_getInfo_onLoad=e.flickr_collections_getInfo_onLoad=e.flickr_photosets_getInfo_onLoad=function(s,j){if(s){if(j.documentElement.getElementsByTagName("title")[0].firstChild){var V=j.documentElement.getElementsByTagName("title")[0].firstChild.nodeValue;}else{var V="";}C[e.hash_id].title=e.form_content=V;var G=(C[e.hash_id].title=="")?"&nbsp;":C[e.hash_id].title.escape_for_xml();if(G!=e.innerHTML){e.innerHTML=G;}}else{e.form_content=C[e.hash_id].title;e.innerHTML=(C[e.hash_id].title=="")?"&nbsp;":C[e.hash_id].title.escape_for_display();}};e.flickr_photos_setMeta_onLoad=e.flickr_collections_editMeta_onLoad=e.flickr_photosets_editMeta_onLoad=function(s,j,G){if(s){if(_ok_for_scrumjax_xml()){if(C==global_sets){F.API.callMethod("flickr.photosets.getInfo",{photoset_id:this.hash_id},e);}else{if(C==global_collections){F.API.callMethod("flickr.collections.getInfo",{collection_id:this.hash_id},e);}else{if(C==global_photos){F.API.callMethod("flickr.photos.getInfo",{photo_id:this.hash_id},e);}}}}else{e.form_content=C[e.hash_id].title;e.innerHTML=(C[e.hash_id].title=="")?"&nbsp;":C[e.hash_id].title.escape_for_display();}}else{C[e.hash_id].title=e.form_content;e.innerHTML=(C[e.hash_id].title=="")?"&nbsp;":C[e.hash_id].title.escape_for_display();alert(F.output.get("insitu_error_title_not_saved",G));}};e.saveChanges=function(G){deja_view_uh_huh();C[this.hash_id].title=G.content.value;this.innerHTML="<i>"+F.output.get("insitu_saving")+"</i>&nbsp;";this.endEditing();if(!C[this.hash_id]){this.innerHTML=F.output.get("insitu_error_no_hash",this.hash_id);return false;}if(C==global_sets){F.API.callMethod("flickr.photosets.editMeta",{photoset_id:this.hash_id,title:C[this.hash_id].title,description:C[this.hash_id].description},e);}else{if(C==global_collections){F.API.callMethod("flickr.collections.editMeta",{collection_id:this.hash_id,title:C[this.hash_id].title,description:C[this.hash_id].description},e);}else{if(C==global_photos){F.API.callMethod("flickr.photos.setMeta",{photo_id:this.hash_id,title:C[this.hash_id].title,description:C[this.hash_id].description},e);}else{alert(F.output.get("insitu_unknown_hash"));}}}};if(window.deja_view_should_refresh){e.innerHTML="...";}return insitu_init_editable_div(e);};var insitu_init_editable_div=function(C){C.startEditing=function(){if(window.should_I_ignore_stuff_because_note_editing||window.should_I_ignore_stuff_because_of_button_action){return ;}window.should_I_ignore_stuff_because_of_editable_div_action=1;var c=_ge("photo_notes");if(c&&c.take_her_away){c.take_her_away();}this.isEditing=true;this.unhighlight();this.style.display="none";var e=this.getForm_div();e.style.display="block";var G=e.firstChild;G.content.focus();G.content.select();if(typeof (this.check_changes)=="function"){this.check_changes(true);}};C.endEditing=function(){window.should_I_ignore_stuff_because_of_editable_div_action=0;this.isEditing=false;var c=this.getForm_div();c.innerHTML="";c.style.display="none";this.style.display="block";if(typeof (this.check_changes)=="function"){this.check_changes(false);_ge("div_boing_alert_"+this.hash_id).style.display="none";}};C.onclick=C.startEditing;C.getForm_div=function(){if(!this.form_div){this.form_div=document.createElement("div");this.parentNode.insertBefore(this.form_div,this);this.form_div.display_div=this;}var c="<form onsubmit=\"this.parentNode.display_div.saveChanges(this); return false;\" style=\"margin-left:"+this.style.marginLeft+"\" style=\"margin-right:"+this.style.marginRight+"\">";c+=this.getInput();if(C.show_some_html_is_ok){c+="<small>(<a class=\"Plain\" onclick=\"window.open('/html.gne?tighten=1','html','status=yes,scrollbars=yes,resizable=yes,width=400,height=480');return false\" href=\"/html.gne?tighten=1\" tabindex=\""+tab_bumper+"4\">"+F.output.get("some_tiny_html")+"</a>.)</small>";}c+="<br /><input type=\"submit\" class=\"Butt\" value=\""+F.output.get("save_up")+"\" tabindex=\""+tab_bumper+"2\" />&nbsp;&nbsp;<span style=\"font-family:arial; font-size:12px;\">"+F.output.get("or_up")+"</span>&nbsp;&nbsp;<input type=\"button\" class=\"DeleteButt\" value=\""+F.output.get("cancel")+"\" onclick=\"this.form.parentNode.display_div.endEditing();\" tabindex=\""+tab_bumper+"3\" /></form>";c+=this.getExtra();this.form_div.innerHTML=c;tab_bumper+=10;return this.form_div;};C.onmouseover=function(){if(window.should_I_ignore_stuff_because_note_editing||window.should_I_ignore_stuff_because_of_button_action){return ;}this.highlight();};C.onmouseout=function(){if(this.hideTimer){clearTimeout(this.hideTimer);}this.hideTimer=setTimeout("var el = document.getElementById(\""+this.id+"\"); if (el) el.unhighlight()",1000);};C.highlight=function(){if(this.hideTimer){clearTimeout(this.hideTimer);}C.style.backgroundColor="#ffffd3";if(this.emptyText&&(C.innerHTML=="&nbsp;"||C.innerHTML==" "||C.innerHTML.charCodeAt(0)==160)){C.style.color="#888";C.innerHTML=this.emptyText;}};C.unhighlight=function(){if(this.hideTimer){clearTimeout(this.hideTimer);}if(typeof (this.check_changes)=="function"){C.style.backgroundColor="#efefef";}else{C.style.backgroundColor="";}if(this.emptyText&&C.innerHTML.toUpperCase()==this.emptyText.toUpperCase()){C.innerHTML="&nbsp;";C.style.color="#000";}};return C;};function insert_set_SlideShow(v,s,l){produceSlideShow(v,s,"","","","","","","","","",l);}function insert_user_SlideShow(R,s,v,y,O,l,D){produceSlideShow(R,"",v,s,"",y,O,"","","","",l,D);}function insert_pool_SlideShow(O,R,v,y,s,D,l){produceSlideShow(O,"",v,"","",y,"",R,"","","",s,D,l);}function insert_contacts_SlideShow(D,v,y,l,R,s){produceSlideShow(D,"","",v,"","","","",y,l,R,s);}function insert_search_or_tags_SlideShow(R,v,y,O,s,D,l){produceSlideShow(R,"",v,"","",y,O,"","","","",s,D,l);}function insert_favorites_SlideShow(y,v,l,s,D){produceSlideShow(y,"","",v,l,"","","","","","",s,D);}function insert_method_SlideShow(D,y,v,s,l){produceSlideShow(D,"","","","","","","","","","",s,"",l,y,v);}function pop_show(R){if(!R){return true;}var l=Math.min(screen.width,1024+95);var D=Math.min(screen.height,768+95);var l=1024;var D=683+92+9;var v=(R.href.indexOf("?")==-1)?"?":"&";v+="no_back=1";var s=R.href+v;var O=window.open(s,"slideShowWin","width="+l+",height="+D+",top=70,left=70,scrollbars=no, status=no, resizable=yes");try{O.focus();}catch(y){}return false;}function produceSlideShow(k,n,j,v,D,I,L,h,y,d,W,T,m,x,l,b){n=(n==undefined)?"":n;j=(j==undefined)?"":j;L=(L==undefined)?"":L;v=(v==undefined)?"":v;D=(D==undefined)?"":D;I=(I==undefined)?"":I;h=(h==undefined)?"":h;y=(y==true)?"y":"";d=(d==true)?"y":"";W=(W==true)?"y":"";T=(T==undefined||T=="start_id")?"":T;x=(x==undefined||x=="start_index")?"":x;m=(m==undefined)?"":m;l=(l==undefined)?"":l;b=(b==undefined)?"":b;var Z=document.getElementById(k);if(!Z){return ;}var r="000000";var t="100%";var s="100%";window.se_min_w=762;window.se_max_w=2000;window.se_min_h=350;var R="/slideShow/slideShowV2.swf?nsid="+global_nsid+"&show_slideshow_prefs="+((window.page_show_slideshow_prefs)?1:0)+"&set_id="+n+"&lang="+global_intl_lang+"&text="+escape_utf8(L)+"&tags="+escape_utf8(j)+"&tag_mode="+escape(I)+"&user_id="+v+"&favorites="+D+"&group_id="+h+"&contacts="+y+"&frifam="+d+"&single="+W+"&start_id="+T+"&start_index="+x+"&sort="+m+"&v="+global_slideShowVersionV2+"&codeV="+global_slideShowCodeVersionV2+"&ispro="+global_ispro+"&minH="+se_min_h+"&minW="+se_min_w+"&magisterLudi="+global_magisterLudi+"&auth_hash="+global_auth_hash+"&auth_token="+global_auth_token+"&flickr_secret="+global_flickr_secret+"&method="+l+"&textV="+global_slideShowTextVersion+"&"+b;if(_qs_args.no_back!="1"){if(!_qs_args.no_txt||_qs_args.use_back_txt){R+="&back_txt="+escape_utf8(window.page_show_back_txt);}}else{window.focus();}for(var O in _qs_args){R+="&"+O+"="+_qs_args[O];}if(_ok_for_swf){var A="<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\""+t+"\" HEIGHT=\""+s+"\" id=\"slideShowMovie\" name=\"slideShowMovie\" ALIGN=\"\"><PARAM NAME=movie VALUE=\""+R+"\"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#"+r+"><EMBED src=\""+R+"\" quality=high bgcolor=#"+r+"  WIDTH=\""+t+"\" HEIGHT=\""+s+"\" id=\"slideShowMovie\" name=\"slideShowMovie\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED></OBJECT>";}else{var A="<br><br><span style=\"color:white\">"+F.output.get("slideshow_requires_flash")+"</span><br><br><br>";}Z.innerHTML=A;writeAPIDebug(R);if(document.slideShowMovie&&typeof document.slideShowMovie.focus=="function"){document.slideShowMovie.focus();}}function calculateFlashHeight(){var l=_find_screen_height()-(Y.U.Dom.getY(_ge("swfdiv")));l=(l>se_min_h)?l:se_min_h;return l;}function calculateFlashWidth(){var l=_find_screen_width();l=(l>se_min_w)?l:se_min_w;return l;}function slide_makeItFit(){if(!_ge("swfdiv")){return ;}_ge("swfdiv").style.height=calculateFlashHeight()+"px";_ge("swfdiv").style.width=calculateFlashWidth()+"px";var l=_find_screen_width();var s=_find_screen_height();}F.eb_add({window_onload_dom:function(){slide_makeItFit();}});F.eb_add({window_onresize:function(){slide_makeItFit();}});var JSON={copyright:"(c)2005 JSON.org",license:"http://www.crockford.com/JSON/license.html",stringify:function(i){var m=[];function O(a){m[m.length]=a;}function s(a){var e,C,J,r;switch(typeof a){case "object":if(a){if(a instanceof Array){O("[");J=m.length;for(C=0;C<a.length;C+=1){r=a[C];if(typeof r!="undefined"&&typeof r!="function"){if(J<m.length){O(",");}s(r);}}O("]");return ;}else{if(typeof a.toString!="undefined"){O("{");J=m.length;for(C in a){r=a[C];if(a.hasOwnProperty(C)&&typeof r!="undefined"&&typeof r!="function"){if(J<m.length){O(",");}s(C);O(":");s(r);}}return O("}");}}}O("null");return ;case "number":O(isFinite(a)?+a:"null");return ;case "string":J=a.length;O("\"");for(C=0;C<J;C+=1){e=a.charAt(C);if(e>=" "){if(e=="\\"||e=="\""){O("\\");}O(e);}else{switch(e){case "\b":O("\\b");break;case "\f":O("\\f");break;case "\n":O("\\n");break;case "\r":O("\\r");break;case "\t":O("\\t");break;default:e=e.charCodeAt();O("\\u00"+Math.floor(e/16).toString(16)+(e%16).toString(16));}}}O("\"");return ;case "boolean":O(String(a));return ;default:O("null");return ;}}s(i);return m.join("");},parse:function(text){var p=/^\s*(([,:{}\[\]])|"(\\.|[^\x00-\x1f"\\])*"|-?\d+(\.\d*)?([eE][+-]?\d+)?|true|false|null)\s*/,token,operator;function error(m,t){throw {name:"JSONError",message:m,text:t||operator||token};}function next(b){if(b&&b!=operator){error("Expected '"+b+"'");}if(text){var t=p.exec(text);if(t){if(t[2]){token=null;operator=t[2];}else{operator=null;try{token=eval(t[1]);}catch(e){error("Bad token",t[1]);}}text=text.substring(t[0].length);}else{error("Unrecognized token",text);}}else{token=operator=undefined;}}function val(){var k,o;switch(operator){case "{":next("{");o={};if(operator!="}"){for(;;){if(operator||typeof token!="string"){error("Missing key");}k=token;next();next(":");o[k]=val();if(operator!=","){break;}next(",");}}next("}");return o;case "[":next("[");o=[];if(operator!="]"){for(;;){o.push(val());if(operator!=","){break;}next(",");}}next("]");return o;default:if(operator!==null){error("Missing value");}k=token;next();return k;}}next();return val();}};anim_eqA=["easeInOutBounce","easeOutBounce","easeInBounce","easeInOutBack","easeOutBack","easeInBack","easeInOutElastic","easeOutElastic","easeInElastic","easeOutCirc","easeInOutCirc","easeInCirc","easeInOutExpo","easeOutExpo","easeInExpo","easeInOutSine","easeOutSine","easeInSine","easeInOutQuint","easeOutQuint","easeInQuint","easeInOutQuart","easeOutQuart","easeInQuart","easeOutCubic","easeInCubic","easeInOutQuad","easeOutQuad","easeInQuad","linearTween"];anim_count=0;anim_animate=function(G,w){var w=(w==undefined)?"anim_seq"+(anim_count++):w;var i=0;var q=w+"i";this[w]=function(){if(this[q]){clearTimeout(this[q]);}if(i==G.length){this[w]=null;this[q]=null;if(!this.length){if(F.is_ie){this.removeAttribute(w);this.removeAttribute(q);}else{delete this[w];delete this[q];}}else{this[w]=null;this[q]=null;}if(typeof list_properties=="function"){list_properties(this);}return ;}G[i].unshift(this[w]);this[q]=anim_step.apply(this,G[i]);i++;return this[q];};return this[w]();};anim_step=function(m,n,G,D,T,J){var q="anim_interv"+(anim_count++);var W=0;var n=n;var O=this;var J=J;var c=[];for(var E=6;E<arguments.length;E++){var w=arguments[E];if(O.length){var x=[];for(var A=0;A<w["e"].length;A++){x.push(w["e"][A]-w["b"][A]);}w["c"]=x;}else{w["c"]=w["e"]-w["b"];}if(w["eq"]==""||!Math[w["eq"]]){w["eq"]="linearTween";}c.push(w);}if(c.length==0){return ;}var u=setInterval(function(){var b=(O.length==undefined)?[O]:O;for(var k=0;k<b.length;k++){if(typeof J=="function"){var h=[];for(var t=0;t<c.length;t++){var f=c[t];if(O.length!=undefined){var I=_pi(Math[f.eq](W,f.b[k],f.c[k],n));}else{var I=_pi(Math[f.eq](W,f.b,f.c,n));}h.push(I);}J.apply(b[k],h);}else{for(var t=0;t<c.length;t++){var f=c[t];if(O.length!=undefined){var I=_pi(Math[f.eq](W,f.b[k],f.c[k],n));}else{var I=_pi(Math[f.eq](W,f.b,f.c,n));}if(I){I+="px";}b[k].style[f.p]=I;}}}if(W==n){clearTimeout(u);m.call(O);if(typeof D=="function"){if(!T){T=[];}D.apply(O[k],T);}}W++;},G);return u;};anim_do_height_to=function(w,k,G,A,c,E,q,T){if(w.length){var p=[];for(var O=0;O<w.length;O++){p.push((w[O].style.height)?_pi(w[O].style.height):w[O].offsetHeight);}if(w.length!=A.length){alert("wrong length h "+w.length+" "+A.length);return ;}}else{var p=(w.style.height)?_pi(w.style.height):w.offsetHeight;}return anim_animate.call(w,[[k,G,E,q,T,{p:"height",b:p,e:A,eq:c}]],"anim_do_height_to");};anim_do_width_to=function(O,A,p,q,i,G,T){return anim_animate.call(O,[[A,p,G,T,null,{p:"width",b:O.offsetWidth,e:q,eq:i}]],"anim_do_width_to");};anim_do_size_to=function(p,T,w,q,i,G,O){return anim_animate.call(p,[[T,w,G,O,anim_handler_size_to,{p:"s",b:p.offsetWidth,e:q,eq:i}]],"anim_do_size_to");};anim_do_opacity_to=function(q,A,w,T,c,E,p){if(q.length){var k=[];for(var O=0;O<q.length;O++){var G=100;if(F.is_ie){if(q[O].style.filter.indexOf("alpha(opacity=")!=-1){G=q[O].style.filter.replace("alpha(opacity=","").replace(")","");}}else{if(q[O].style.opacity!=undefined&&q[O].style.opacity.length>0){G=q[O].style.opacity*100;}}k.push(G);}if(q.length!=k.length){alert("wrong length of bop "+q.length+" "+k.length);return ;}if(q.length!=T.length){if(!T.length){opA=[];for(var O=0;O<q.length;O++){opA.push(T);}T=opA;}else{alert("wrong length of op "+T);return ;}}}else{var k=100;if(F.is_ie){if(q.style.filter.indexOf("alpha(opacity=")!=-1){k=q.style.filter.replace("alpha(opacity=","").replace(")","")*1;}}else{if(q.style.opacity!=undefined&&q.style.opacity.length>0){k=q.style.opacity*100;}}}return anim_animate.call(q,[[A,w,E,p,anim_handler_opacity,{p:"val",b:k,e:T,eq:c}]],"anim_do_opacity_to");};anim_do_size_to_and_slide_to_on_center=function(i,q,G,k,O,p,A,T,w){return anim_animate.call(i,[[q,G,T,w,anim_handler_size_to_and_slide_to_on_center,{p:"s",b:i.offsetWidth,e:k,eq:A},{p:"x",b:Y.U.Dom.getX(i)+(i.offsetWidth/2),e:O,eq:A},{p:"y",b:Y.U.Dom.getY(i)+(i.offsetHeight/2),e:p,eq:A}]],"anim_do_size_to_and_slide_to_on_center");};anim_do_size_to_and_slide_to=function(i,q,G,k,O,p,A,T,w){return anim_animate.call(i,[[q,G,T,w,anim_handler_size_to_and_slide_to,{p:"s",b:i.offsetWidth,e:k,eq:A},{p:"x",b:F.get_local_X(i),e:O,eq:A},{p:"y",b:F.get_local_Y(i),e:p,eq:A}]],"anim_do_size_to_and_slide_to");};anim_do_slide_to_on_center=function(p,T,q,w,A,i,G,O){return anim_animate.call(p,[[T,q,G,O,anim_handler_center_on,{p:"x",b:Y.U.Dom.getX(p)+(p.offsetWidth/2),e:w,eq:i},{p:"y",b:Y.U.Dom.getY(p)+(p.offsetHeight/2),e:A,eq:i}]],"anim_do_slide_to_on_center");};anim_do_slide_to=function(w,O,G,E,A,u,c,q,k,T){if(w.length){if(k==undefined||k.length==undefined){var k=[];var T=[];for(var p=0;p<w.length;p++){if(w[p].style.left!=undefined){k.push(_pi(w[p].style.left));}else{k.push(Y.U.Dom.getX(w[p]));}if(w[p].style.top!=undefined){T.push(_pi(w[p].style.top));}else{T.push(Y.U.Dom.getY(w[p]));}}}if(w.length!=k.length||w.length!=T.length){alert("wrong length of sx or sy "+w.length+" "+k.length+" "+T.length);return ;}if(w.length!=E.length||w.length!=A.length){alert("wrong length of s or y");return ;}}else{k=(k!=undefined)?k:(w.style.left!=undefined)?_pi(w.style.left):Y.U.Dom.getX(w);T=(T!=undefined)?T:(w.style.top!=undefined)?_pi(w.style.top):Y.U.Dom.getY(w);}return anim_animate.call(w,[[O,G,c,q,null,{p:"left",b:k,e:E,eq:u},{p:"top",b:T,e:A,eq:u}]],"anim_do_slide_to");};anim_do_slide_relative_to=function(p,T,q,w,A,i,G,O){return anim_animate.call(p,[[T,q,G,O,null,{p:"left",b:_pi(p.style.left),e:w,eq:i},{p:"top",b:_pi(p.style.top),e:A,eq:i}]],"anim_do_slide_relative_to");};anim_do_slide_to_x=function(p,T,q,w,i,G,O){return anim_animate.call(p,[[T,q,G,O,null,{p:"left",b:F.get_local_X(p),e:w,eq:i}]],"anim_do_slide_to_x");};anim_do_scroll_to_scrollTop=function(q,T,w,O,i,G,p){return anim_animate.call(q,[[T,w,G,p,anim_handler_set_scrollTop,{p:"scrollTop",b:q.scrollTop,e:O,eq:i}]],"anim_do_scroll_to_scrollTop");};anim_do_marginTop_to=function(q,T,w,p,i,G,O){return anim_animate.call(q,[[T,w,G,O,null,{p:"marginTop",b:_pi(q.style.marginTop),e:p,eq:i}]],"anim_do_marginTop_to");};anim_do_marginLeft_to=function(q,T,w,p,i,G,O){return anim_animate.call(q,[[T,w,G,O,null,{p:"marginLeft",b:_pi(q.style.marginLeft),e:p,eq:i}]],"anim_do_marginLeft_to");};anim_do_blink_pink=function(i,G,w){return anim_animate.call(i,[[1,1,null,[],anim_handler_set_color_rgb,{p:"r",b:0,e:255,eq:"easeOutQuad"},{p:"g",b:0,e:0,eq:"easeOutQuad"},{p:"b",b:0,e:132,eq:"easeOutQuad"}],[4,50,null,[],anim_handler_set_color_rgb,{p:"r",b:255,e:0,eq:"easeOutQuad"},{p:"g",b:0,e:0,eq:"easeOutQuad"},{p:"b",b:132,e:0,eq:"easeOutQuad"}],[1,1,null,[],anim_handler_set_color_rgb,{p:"r",b:0,e:255,eq:"easeOutQuad"},{p:"g",b:0,e:0,eq:"easeOutQuad"},{p:"b",b:0,e:132,eq:"easeOutQuad"}],[4,50,G,w,anim_handler_set_color_rgb,{p:"r",b:255,e:0,eq:"easeOutQuad"},{p:"g",b:0,e:0,eq:"easeOutQuad"},{p:"b",b:132,e:0,eq:"easeOutQuad"}]],"anim_do_blink_pink");};anim_do_color_to=function(w,A,i,G,O,k,c,p,T,u,E,q){return anim_animate.call(w,[[A,i,null,[],anim_handler_set_color_rgb,{p:"r",b:G,e:c,eq:u},{p:"g",b:O,e:p,eq:u},{p:"b",b:k,e:T,eq:u}]],"anim_do_color_to");};anim_do_bgcolor_to=function(w,A,i,G,O,k,c,p,T,u,E,q){return anim_animate.call(w,[[A,i,E,q,anim_handler_set_bgcolor_rgb,{p:"r",b:G,e:c,eq:u},{p:"g",b:O,e:p,eq:u},{p:"b",b:k,e:T,eq:u}]],"anim_do_bgcolor_to");};anim_do_pink_fade=function(i,G,w){return anim_animate.call(i,[[50,50,null,[],anim_handler_set_backgroundColor_rgb,{p:"r",b:255,e:239,eq:"easeOutQuad"},{p:"g",b:255,e:239,eq:"easeOutQuad"},{p:"b",b:255,e:239,eq:"easeOutQuad"}]],"anim_do_blink_pink");};anim_do_margin_dance_right=function(i,w,G){return anim_animate.call(i,[[w,G,null,[],null,{p:"marginRight",b:110,e:0,eq:"easeInOutQuad"},{p:"marginLeft",b:-110,e:0,eq:"easeInOutQuad"}]],"anim_do_margin_dance_right");};anim_do_margin_dance_left=function(i,w,G){return anim_animate.call(i,[[w,G,null,[],null,{p:"marginLeft",b:110,e:0,eq:"easeInOutQuad"}]],"anim_do_margin_dance_left");};anim_handler_set_color_rgb=function(w,i,G){anm_set_rgb.call(this,"color",w,i,G);};anim_handler_set_bgcolor_rgb=function(w,i,G){anm_set_rgb.call(this,"backgroundColor",w,i,G);};anim_handler_set_scrollTop=function(G){this.scrollTop=G;};anim_handler_set_backgroundColor_rgb=function(w,i,G){anm_set_rgb.call(this,"backgroundColor",w,i,G);};anim_handler_center_on=function(G,i){this.style["left"]=_pi(G-(this.offsetWidth/2))+"px";this.style["top"]=_pi(i-(this.offsetHeight/2))+"px";};anim_handler_opacity=function(G){this.style.opacity=G/100;this.style.filter="alpha(opacity="+G+")";};anim_handler_size_to=function(G){this.style["width"]=G+"px";this.style["height"]=G+"px";};anim_handler_size_to_and_slide_to_on_center=function(i,G,w){this.style["left"]=_pi(G-(i/2))+"px";this.style["top"]=_pi(w-(i/2))+"px";this.style["width"]=i+"px";this.style["height"]=i+"px";};anim_handler_size_to_and_slide_to=function(i,G,w){this.style["left"]=_pi(G)+"px";this.style["top"]=_pi(w)+"px";this.style["width"]=i+"px";this.style["height"]=i+"px";};anm_set_rgb=function(q,w,i,G){this.style[q]="rgb("+w+", "+i+", "+G+")";};Math.linearTween=function(h,K,O,S){return O*h/S+K;};Math.easeInQuad=function(h,K,O,S){return O*(h/=S)*h+K;};Math.easeOutQuad=function(h,K,O,S){return -O*(h/=S)*(h-2)+K;};Math.easeInOutQuad=function(h,K,O,S){if((h/=S/2)<1){return O/2*h*h+K;}return -O/2*((--h)*(h-2)-1)+K;};Math.easeInCubic=function(h,K,O,S){return O*(h/=S)*h*h+K;};Math.easeOutCubic=function(h,K,O,S){return O*((h=h/S-1)*h*h+1)+K;};Math.easeInOutCubic=function(h,K,O,S){if((h/=S/2)<1){return O/2*h*h*h+K;}return O/2*((h-=2)*h*h+2)+K;};Math.easeInQuart=function(h,K,O,S){return O*(h/=S)*h*h*h+K;};Math.easeOutQuart=function(h,K,O,S){return -O*((h=h/S-1)*h*h*h-1)+K;};Math.easeInOutQuart=function(h,K,O,S){if((h/=S/2)<1){return O/2*h*h*h*h+K;}return -O/2*((h-=2)*h*h*h-2)+K;};Math.easeInQuint=function(h,K,O,S){return O*(h/=S)*h*h*h*h+K;};Math.easeOutQuint=function(h,K,O,S){return O*((h=h/S-1)*h*h*h*h+1)+K;};Math.easeInOutQuint=function(h,K,O,S){if((h/=S/2)<1){return O/2*h*h*h*h*h+K;}return O/2*((h-=2)*h*h*h*h+2)+K;};Math.easeInSine=function(h,K,O,S){return -O*Math.cos(h/S*(Math.PI/2))+O+K;};Math.easeOutSine=function(h,K,O,S){return O*Math.sin(h/S*(Math.PI/2))+K;};Math.easeInOutSine=function(h,K,O,S){return -O/2*(Math.cos(Math.PI*h/S)-1)+K;};Math.easeInExpo=function(h,K,O,S){return (h==0)?K:O*Math.pow(2,10*(h/S-1))+K;};Math.easeOutExpo=function(h,K,O,S){return (h==S)?K+O:O*(-Math.pow(2,-10*h/S)+1)+K;};Math.easeInOutExpo=function(h,K,O,S){if(h==0){return K;}if(h==S){return K+O;}if((h/=S/2)<1){return O/2*Math.pow(2,10*(h-1))+K;}return O/2*(-Math.pow(2,-10*--h)+2)+K;};Math.easeInCirc=function(h,K,O,S){return -O*(Math.sqrt(1-(h/=S)*h)-1)+K;};Math.easeOutCirc=function(h,K,O,S){return O*Math.sqrt(1-(h=h/S-1)*h)+K;};Math.easeInOutCirc=function(h,K,O,S){if((h/=S/2)<1){return -O/2*(Math.sqrt(1-h*h)-1)+K;}return O/2*(Math.sqrt(1-(h-=2)*h)+1)+K;};Math.easeInElastic=function(S,K,D,B,h,X){if(S==0){return K;}if((S/=B)==1){return K+D;}if(!X){X=B*0.3;}if(h<Math.abs(D)){h=D;var O=X/4;}else{var O=X/(2*Math.PI)*Math.asin(D/h);}return -(h*Math.pow(2,10*(S-=1))*Math.sin((S*B-O)*(2*Math.PI)/X))+K;};Math.easeOutElastic=function(S,K,D,B,h,X){if(S==0){return K;}if((S/=B)==1){return K+D;}if(!X){X=B*0.3;}if(h<Math.abs(D)){h=D;var O=X/4;}else{var O=X/(2*Math.PI)*Math.asin(D/h);}return h*Math.pow(2,-10*S)*Math.sin((S*B-O)*(2*Math.PI)/X)+D+K;};Math.easeInOutElastic=function(S,K,D,B,h,X){if(S==0){return K;}if((S/=B/2)==2){return K+D;}if(!X){X=B*(0.3*1.5);}if(h<Math.abs(D)){h=D;var O=X/4;}else{var O=X/(2*Math.PI)*Math.asin(D/h);}if(S<1){return -0.5*(h*Math.pow(2,10*(S-=1))*Math.sin((S*B-O)*(2*Math.PI)/X))+K;}return h*Math.pow(2,-10*(S-=1))*Math.sin((S*B-O)*(2*Math.PI)/X)*0.5+D+K;};Math.easeInBack=function(h,K,X,O,S){if(S==undefined){S=1.70158;}return X*(h/=O)*h*((S+1)*h-S)+K;};Math.easeOutBack=function(h,K,X,O,S){if(S==undefined){S=1.70158;}return X*((h=h/O-1)*h*((S+1)*h+S)+1)+K;};Math.easeInOutBack=function(h,K,X,O,S){if(S==undefined){S=1.70158;}if((h/=O/2)<1){return X/2*(h*h*(((S*=(1.525))+1)*h-S))+K;}return X/2*((h-=2)*h*(((S*=(1.525))+1)*h+S)+2)+K;};Math.easeInBounce=function(h,K,O,S){return O-Math.easeOutBounce(S-h,0,O,S)+K;};Math.easeOutBounce=function(h,K,O,S){if((h/=S)<(1/2.75)){return O*(7.5625*h*h)+K;}else{if(h<(2/2.75)){return O*(7.5625*(h-=(1.5/2.75))*h+0.75)+K;}else{if(h<(2.5/2.75)){return O*(7.5625*(h-=(2.25/2.75))*h+0.9375)+K;}else{return O*(7.5625*(h-=(2.625/2.75))*h+0.984375)+K;}}}};Math.easeInOutBounce=function(h,K,O,S){if(h<S/2){return Math.easeInBounce(h*2,0,O,S)*0.5+K;}return Math.easeOutBounce(h*2-S,0,O,S)*0.5+O*0.5+K;};F._one_photo_tab=new Object();F._one_photo_tab.tab_go_go_go=function(K){this.rsp_errs=[];if(K){this.style.cursor="default";_ge("one_photo_edit_pop").pop_activate_tab(this.id);}else{this.style.cursor=(F.is_ie)?"hand":"pointer";}};F._one_photo_tab.tab_activate=function(){this.className="one_photo_tab_active";this.style.cursor="default";};F._one_photo_tab.tab_deactivate=function(){this.className="one_photo_tab";this.style.cursor=(F.is_ie)?"hand":"pointer";};F._one_photo_tab.onclick=function(c){var K=_get_event_src(c);if(!c){c=window.event;}if(K!=this){return ;}_ge("one_photo_edit_pop").pop_activate_tab(this.id);};F._one_photo_edit_pop=new Object();F._one_photo_edit_pop.pop_go_go_go=function(){F.decorate(this,F._eb).eb_go_go_go();this.style.position="absolute";this.style.zIndex="995";this.style.top="0";this.style.left="0";this.style.display="none";this.pop_shadow_id=F.make_shadow(this.id,994).id;this.pop_showing=0;this.pop_loading=1;this.pop_fragment_loaded=0;var K=document.createElement("DIV");K.id="one_photo_modal_blocker";K.style.position="absolute";K.style.zIndex="993";K.style.top=0;K.style.backgroundColor="#999";K.style.opacity=".5";K.style.filter="alpha(opacity=50)";K.style.display="none";document.body.appendChild(K);F.eb_add(this);return this;};F._one_photo_edit_pop.pop_get_mb=function(){return _ge("one_photo_modal_blocker");};F._one_photo_edit_pop.pop_get_active_tab_id=function(){return this.pop_active_tab_id;};F._one_photo_edit_pop.pop_get_mat_id_from_tab_id=function(K){return K.replace("_tab_","_mat_");};F._one_photo_edit_pop.pop_activate_tab=function(K){if(this.pop_get_active_tab_id()!=K){if(this.pop_get_active_tab_id()){this.pop_deactivate_tab(this.pop_get_active_tab_id());}_ge(K).tab_activate();var c=this.pop_get_mat_id_from_tab_id(K);_ge(c).style.display="block";this.pop_active_tab_id=K;this.pop_place();this.pop_do_focus();}};F._one_photo_edit_pop.pop_close_license_pop=function(){l_pop=_ge("one_photo_license_pop");l_pop.style.display="none";if(this.pop_license_pop_shadow_id){_ge(this.pop_license_pop_shadow_id).shadow_hide();}};F._one_photo_edit_pop.pop_license_was_switched=function(){this.pop_close_license_pop();this.pop_change_license_name();};F._one_photo_edit_pop.pop_open_license_pop=function(){l_pop=_ge("one_photo_license_pop");if(!this.pop_license_pop_shadow_id){this.pop_license_pop_shadow_id=F.make_shadow("one_photo_license_pop",2,this,l_pop).id;}l_pop.style.display="block";l_pop.style.visibility="hidden";var K=_pi((this.offsetWidth-l_pop.offsetWidth)/2);var c=_pi((this.offsetHeight-l_pop.offsetHeight)/2);l_pop.style.left=K+"px";l_pop.style.top=c+"px";l_pop.style.visibility="visible";_ge(this.pop_license_pop_shadow_id).shadow_size_and_place();if(!F.is_ie){_ge(this.pop_license_pop_shadow_id).shadow_show();}};F._one_photo_edit_pop.pop_toggle_more_perms_table=function(){var c=_ge("one_photo_more_perms_table");var K=_ge("one_photo_more_perm_carrot_div");if(c.style.display!="none"){c.style.display="none";K.style.display="block";}else{c.style.display="block";K.style.display="none";}this.pop_place();};F._one_photo_edit_pop.pop_deactivate_tab=function(K){if(!_ge(K)){return ;}_ge(K).tab_deactivate();var c=this.pop_get_mat_id_from_tab_id(K);_ge(c).style.display="none";};F._one_photo_edit_pop.fragment_onLoad=function(w,e,T){this.innerHTML=e;this.pop_fragment_loaded=1;var c=Y.U.Dom.getElementsByClassName("one_photo_tab","div",_ge("one_photo_inner_border_div"));for(var K=0;K<c.length;K++){F.decorate(c[K],F._one_photo_tab).tab_go_go_go();}var c=Y.U.Dom.getElementsByClassName("one_photo_tab_active","div",_ge("one_photo_inner_border_div"));for(var K=0;K<c.length;K++){this.pop_active_tab_id=c[K].id;F.decorate(c[K],F._one_photo_tab).tab_go_go_go(1);}F.decorate(_ge("one_photo_more_perm_carrot_div"),F._carrot).carrot_go_go_go("down",0);F.decorate(_ge("one_photo_close_img"),F._simple_button).button_go_go_go();this.pop_stop_comming();if(this.pop_photo){this.pop_show(this.pop_photo.id,this.pop_A,this.pop_photo_slot,this.pop_what);}};F._one_photo_edit_pop.pop_done_hiding=function(){this.style.display="none";_ge(this.pop_shadow_id).shadow_hide();this.pop_photo=null;this.pop_A=null;this.pop_photo_slot=null;this.pop_what=null;this.pop_get_mb().style.display="none";this.pop_change_next_prev_text();this.pop_activate_tab("one_photo_tab_title");this.eb_broadcast("one_photo_onhide");_ge("one_photo_prev_link").style.visibility="hidden";_ge("one_photo_next_link").style.visibility="hidden";_ge("one_photo_goto_next").style.visibility=_ge("one_photo_goto_next_label").style.visibility="hidden";this.pop_clear_form();if(window.map){map._disableKeys=false;}};F._one_photo_edit_pop.pop_hide=function(){_ge(this.pop_shadow_id).shadow_hide();this.pop_close_license_pop();var c=this;var K=function(){c.pop_done_hiding();};anim_do_opacity_to(c,5,35,0,"easeInQuad",K);this.pop_showing=0;};F._one_photo_edit_pop.pop_show_start=function(w,K,c,T,e){this.pop_were_changes_when_opened=F.changes_count;this.eb_broadcast("one_photo_onshow");this.pop_show(w,K,c,T,e);};F._one_photo_edit_pop.pop_show=function(w,K,c,T,e){if(window.map){map._disableKeys=true;}this.pop_photo=global_photos[w];this.pop_A=K;this.pop_photo_slot=c;this.pop_what=T;this.pop_place();if(!this.pop_fragment_loaded){this.pop_loading=1;this.pop_start_comming(F.output.get("loading_interface"));F.fragment_getter.get("/photo_edit_fragment.gne",{one_photo_show_belongs:one_photo_show_belongs},this,"fragment_onLoad");return ;}this.style.opacity="1";this.style.filter="alpha(opacity=100)";this.style.display="block";this.pop_get_mb().style.display="block";this.pop_place();_ge(this.pop_shadow_id).shadow_show();if(!e||(!this.pop_photo||this.pop_photo.description==undefined)){this.pop_loading=1;this.pop_clear_form();this.pop_start_comming(F.output.get("one_photo_edit_loading_info"));F.API.callMethod("flickr.photos.getInfo",{photo_id:w,get_contexts:one_photo_show_belongs},this);return ;}this.pop_loading=0;this.pop_fill_form();this.pop_change_next_prev_text();this.pop_place();_ge(this.pop_shadow_id).shadow_show();this.pop_showing=1;this.pop_do_focus();};F._one_photo_edit_pop.flickr_photos_getInfo_onLoad=function(w,T,c){if(w&&T){var K=T.documentElement.getElementsByTagName("photo")[0];var e=_upsert_photo(K);writeAPIDebug(this.pop_photo.toString());this.pop_stop_comming();this.pop_show(e.id,this.pop_A,this.pop_photo_slot,this.pop_what,1);}else{this.pop_start_comming(F.output.get("one_photo_edit_problem_loading",c.escape_for_display()),1,1);this.pop_hide();}};F._one_photo_edit_pop.pop_change_next_prev_text=function(K){var c=(this.pop_what)?"&nbsp;in "+this.pop_what:"";c="";_ge("one_photo_next_link_what").innerHTML=c;_ge("one_photo_prev_link_what").innerHTML=c;_ge("one_photo_goto_what").innerHTML=c;};F._one_photo_edit_pop.window_onresize=function(){this.pop_place();};F._one_photo_edit_pop.pop_place=function(K,T){if(window.innerWidth){var w=window.innerWidth;var c=window.innerHeight;var s=window.pageXOffset;var U=window.pageYOffset;}else{var w=document.body.clientWidth;var c=document.body.clientHeight;var s=document.body.scrollLeft;var U=document.body.scrollTop;}var H=this;var e=function(){var d=H.offsetWidth;var v=s+_pi((w-d)/2);v=Math.max(v,1);return v;};var N=function(){var v=H.offsetHeight;var d=U+_pi((c-v)/2);d=Math.min(d,90);d=Math.max(d,1);return d;};var i=(typeof K=="function")?K():(typeof K=="number")?K:e();var g=(typeof T=="function")?T():(typeof T=="number")?T:N();i=Math.max(i,10);g=Math.max(g,10);this.style.left=i+"px";this.style.top=g+"px";if(0&&this.pop_fragment_loaded){this.style.width=this.offsetWidth+"px";this.style.height=this.offsetHeight+"px";}_ge(this.pop_shadow_id).shadow_size_and_place();var h=H.pop_get_mb();h.style.left=s+"px";h.style.top=U+"px";h.style.width=w+"px";h.style.height=c+"px";};F._one_photo_edit_pop.pop_start_comming=function(c,T,h,e,K,i,w,N,U,H){if(!global_comm_div){_make_comm_div("1002");}x_func=null;var g=this;y_func=function(){g.pop_place();return _pi(g.style.top)+100;};var s=1;if(this.pop_fragment_loaded){this.pop_place();s={opacity:"0",filter:"alpha(opacity=0)"};}global_comm_div.start_comming(c,x_func,y_func,T,h,e,K,i,w,N,U,s,H);};F._one_photo_edit_pop.pop_stop_comming=function(){global_comm_div.stop_comming();};F._one_photo_edit_pop.pop_go_to_next=function(K){this.pop_go_to_either(1,0,K);};F._one_photo_edit_pop.pop_go_to_previous=function(K){this.pop_go_to_either(-1,0,K);};F._one_photo_edit_pop.pop_get_next_id=function(){return this.pop_go_to_either(1,1);};F._one_photo_edit_pop.pop_get_previous_id=function(){return this.pop_go_to_either(-1,1);};F._one_photo_edit_pop.pop_go_to_either=function(N,w,T){if(!w&&T){if(this.pop_has_changes()){var c=function(){_ge("one_photo_edit_pop").pop_go_to_either(N,w);};_ge("tabl").tabl_start_comming(F.output.get("unsaved_msg"),1,1,F.output.get("ok"),c,1,F.output.get("cancel"));return ;}}var K=null;var U=0;var e=_ge("findr");if(this.pop_A){curr_index=F.array_index_of(this.pop_A,this.pop_photo.id);U=this.pop_A[curr_index+N];}else{if(this.pop_photo_slot!=undefined&&e){K=this.pop_photo_slot+N;U=e.findr_get_photo_for_slot(K).id;}else{writeDebug("unknown context");}}if(w){return U;}if(!U){return ;}if(this.pop_loading){return ;}this.pop_show(U,this.pop_A,K,this.pop_what);};F._one_photo_edit_pop.pop_clear_form=function(){_ge("one_photo_title").value="";_ge("addtagbox").value="";_ge("one_photo_description").value="";_ge("one_photo_img_div").style.visibility="hidden";_ge("one_photo_date_taken_exact").value="";_ge("one_photo_time_taken_exact").value="";_ge("one_photo_date_posted_exact").value="";_ge("one_photo_time_posted_exact").value="";_ge("one_photo_geo_data_lon").value="";_ge("one_photo_geo_data_lat").value="";_ge("div_load_photo_on_map").style.display="none";_ge("one_photo_mat_belongs_list_div").innerHTML="";};F._one_photo_edit_pop.pop_fill_form=function(){if(!disable_geo){if(prefs_isset_viewgeo&&_qs_args.show_geo_pref!="true"){_ge("one_photo_tab_loc").style.display="inline";}else{_ge("one_photo_tab_loc").style.display="none";}}var f=this.pop_photo;var o=this.pop_get_previous_id();var N=this.pop_get_next_id();_ge("one_photo_prev_link").style.visibility=(o)?"visible":"hidden";_ge("one_photo_next_link").style.visibility=(N)?"visible":"hidden";_ge("one_photo_goto_next").style.visibility=_ge("one_photo_goto_next_label").style.visibility=(N)?"visible":"hidden";this.pop_is_there_a_next=N;_ge("one_photo_title").value=f.title;var l=[];for(var D=0;D<f.tags_rawA.length;D++){var S=f.tags_rawA[D];if(S.indexOf(" ")!=-1){S="\""+S+"\"";}l.push(S);}var e=l.join(" ");_ge("addtagbox").value=e;_ge("one_photo_description").value=f.description;_ge("one_photo_img_div").innerHTML="<img src=\""+_get_photo_src(f,"m")+"\" style=\"\">";_ge("one_photo_img_div").style.visibility="visible";_ge("one_photo_link").href=photos_url+f.id;var c=f.date_taken.split(" ")[0].split("-");var L=(c[1]*1).addZeros(2);var H=(c[2]*1).addZeros(2);var t=c[0]*1;var v=L+"/"+H+"/"+t;var U=f.date_taken.split(" ")[1];_ge("one_photo_date_taken_exact").value=v;_ge("one_photo_time_taken_exact").value=U;var W=_ge("one_photo_date_taken_approx_month");if(f.date_taken_granularity==6){W.options[0].selected=1;}else{for(var D=W.options.length-1;D>-1;D--){var y=W.options[D];if(y.value*1==L){y.selected=1;break;}}}var u=_ge("one_photo_date_taken_approx_year");for(var D=u.options.length-1;D>-1;D--){var y=u.options[D];if(y.value*1==t){y.selected=1;break;}}if(f.date_taken_granularity==0){_ge("one_photo_date_taken_exact_div").style.display="block";_ge("one_photo_date_taken_approx_div").style.display="none";_ge("one_photo_date_taken_exact_switcher").style.display="none";_ge("one_photo_date_taken_approx_switcher").style.display="inline";}else{_ge("one_photo_date_taken_exact_div").style.display="none";_ge("one_photo_date_taken_approx_div").style.display="block";_ge("one_photo_date_taken_exact_switcher").style.display="inline";_ge("one_photo_date_taken_approx_switcher").style.display="none";}var z=F.convert_unix_time_stamp(f.date_upload);var m=(z.getMonth()+1).addZeros(2);var R=z.getDate().addZeros(2);var n=z.getFullYear();var E=m+"/"+R+"/"+n;var V=z.getHours().addZeros(2)+":"+z.getMinutes().addZeros(2)+":"+z.getSeconds().addZeros(2);_ge("one_photo_date_posted_exact").value=E;_ge("one_photo_time_posted_exact").value=V;var s=(_pf(f.longitude)&&_pf(f.latitude))?f.latitude:"";var w=(_pf(f.longitude)&&_pf(f.latitude))?f.longitude:"";_ge("one_photo_geo_data_lat").value=s;_ge("one_photo_geo_data_lon").value=w;if(s.length>0&&w.length>0&&_ge("tabl")&&_ge("tabl").tabl_get_active_tab_id()=="tabl_tab_map"){_ge("map_controller")._photo_to_open=_pi(f.id);_ge("div_load_photo_on_map").style.display="block";}else{_ge("div_load_photo_on_map").style.display="none";}if(_pi(f.accuracy)!=0){if(f.geo_is_family=="1"&&f.geo_is_friend=="1"){_ge("one_photo_perm_viewgeo_2").checked=1;}else{if(f.geo_is_family=="1"){_ge("one_photo_perm_viewgeo_4").checked=1;}else{if(f.geo_is_friend=="1"){_ge("one_photo_perm_viewgeo_3").checked=1;}else{if(f.geo_is_contact=="1"){_ge("one_photo_perm_viewgeo_1").checked=1;}else{if(f.geo_is_public=="1"){_ge("one_photo_perm_viewgeo_0").checked=1;}else{_ge("one_photo_perm_viewgeo_5").checked=1;}}}}}}else{_ge("one_photo_perm_viewgeo_"+user_default_geo).checked=1;}if(global_eighteen){_ge("one_photo_safety_level_"+f.safety_level).checked=1;_ge("one_photo_content_type_"+f.content_type).checked=1;if(f.moderation_mode=="0"||f.moderation_mode=="3"){for(var D=0;D<3;D++){_ge("one_photo_safety_level_"+D).disabled=0;_ge("one_photo_content_type_"+D).disabled=0;_ge("one_photo_safety_level_"+D+"_label").className="";_ge("one_photo_content_type_"+D+"_label").className="";}_ge("one_photo_mat_filters_moderated_div").style.display="none";}else{for(var D=0;D<3;D++){_ge("one_photo_safety_level_"+D).disabled=1;_ge("one_photo_content_type_"+D).disabled=1;_ge("one_photo_safety_level_"+D+"_label").className="findr_input_disabled";_ge("one_photo_content_type_"+D+"_label").className="findr_input_disabled";}_ge("one_photo_mat_filters_moderated_div").style.display="block";_ge("one_photo_mat_filters_moderated_a").href="/help/contact/?cat_shortcut=review_photo&photo_id="+f.id;}}var T=_ge("one_photo_license_form").one_photo_license;for(var D=0;D<T.length;D++){var P=T[D];if(P.value==f.license_id){P.checked=1;break;}}this.pop_change_license_name();_ge("one_photo_is_public").checked=1;_ge("one_photo_is_family").checked=1;_ge("one_photo_is_friend").checked=1;if(f.is_public=="0"){_ge("one_photo_is_private").checked=1;if(f.is_friend!="1"){_ge("one_photo_is_friend").checked=0;}if(f.is_family!="1"){_ge("one_photo_is_family").checked=0;}}var h={"0":"4","1":"3","2":"2","3":"1"};if(!h[f.perm_comment]){f.perm_comment=3;}if(!h[f.perm_addmeta]){f.perm_addmeta=3;}_ge("one_photo_perm_comment_"+h[f.perm_comment]).checked=1;_ge("one_photo_perm_addmeta_"+h[f.perm_addmeta]).checked=1;_privacy_specific_change("one_photo_",1);var K=[];K.push(F.output.get("one_photo_edit_sets_title"));if(f.sets){for(var D=0;D<f.sets.length;D++){var d=global_sets[f.sets[D]];if(!d){continue;}K.push(this.pop_generate_set_HTML(d));}}else{K.push(F.output.get("one_photo_edit_none"));}K.push(F.output.get("one_photo_edit_groups_title"));if(f.pools){for(var D=0;D<f.pools.length;D++){var g=global_groups[f.pools[D]];if(!g){continue;}K.push(this.pop_generate_group_HTML(g));}}else{K.push(F.output.get("one_photo_edit_none"));}_ge("one_photo_mat_belongs_list_div").innerHTML=K.join("");this.pop_add_form_handlers();this.pop_form_data_saved=this.pop_get_data_from_form();this.pop_disable_save_and_revert_buttons();if(this.pop_slot&&_ge("findr")){_ge("findr").findr_place_slot_in_mid(this.pop_slot);}};F._one_photo_edit_pop.pop_generate_set_HTML=function(e){var K=global_photos[e.primary_photo_id];var c=""+"<table class=\"existing_set_table\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td>"+"<img src=\""+_get_photo_src(K)+"\" width=\"25\" height=\"25\" alt=\"\" title=\"\">"+"</td><td>"+e.title.truncate_with_ellipses(40).escape_for_display()+" (<b>"+e.count.pretty_num()+"</b>)"+"</td></tr></table>";return c;};F._one_photo_edit_pop.pop_generate_group_HTML=function(e){if(e.count!=undefined){var K=(e.count!=1)?F.output.get("one_photo_edit_plural_photos",e.count.pretty_num()):F.output.get("one_photo_edit_single_photo");if(_get_group_throttle_txt(e)){K+=" <span class=\"group_pipe\"> | </span> "+F.output.get("one_photo_edit_limit")+" "+_get_group_throttle_txt(e);}}else{var K=F.output.get("one_photo_edit_no_longer_member");}var c=""+"<table class=\"existing_group_table\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td valign=\"top\">"+"<img src=\""+e.icon_url+"\" width=\"24\" height=\"24\" alt=\"\" title=\"\">"+"</td><td><b>"+e.name.truncate_with_ellipses(40).escape_for_display()+"</b><br>"+K+""+"</td></tr></table>";return c;};F._one_photo_edit_pop.pop_change_license_name=function(){var K="";var T=_ge("one_photo_license_form").one_photo_license;for(var c=0;c<T.length;c++){var e=T[c];if(e.checked){K=_ge("one_photo_license_label"+e.value).innerHTML;break;}}_ge("one_photo_current_license_name").innerHTML=K;};F._one_photo_edit_pop.pop_do_focus=function(){if(!this.pop_showing){return ;}if(this.pop_get_active_tab_id()=="one_photo_tab_title"){_ge("one_photo_title").focus();_ge("one_photo_title").select();}};F._one_photo_edit_pop.pop_get_data_from_form=function(){var K={};K.title=_ge("one_photo_title").value;K.description=_ge("one_photo_description").value;K.tags=_ge("addtagbox").value;K.dates=F.get_dates_from_form("one_photo_",0);K.lat=_ge("one_photo_geo_data_lat").value;K.lon=_ge("one_photo_geo_data_lon").value;var w="0";var T=_ge("one_photo_license_form").one_photo_license;for(var c=0;c<T.length;c++){if(T[c].checked){w=T[c].value;break;}}K.license_id=w;K.is_private=(_ge("one_photo_is_private").checked)?1:0;K.is_public=(K.is_private)?0:1;K.is_friend=(K.is_public||_ge("one_photo_is_friend").checked)?1:0;K.is_family=(K.is_public||_ge("one_photo_is_family").checked)?1:0;K.safety_level=(_ge("one_photo_safety_level_1").checked)?1:0;K.safety_level=(_ge("one_photo_safety_level_2").checked)?2:K.safety_level;if(global_eighteen){K.content_type=(_ge("one_photo_content_type_1").checked)?1:0;K.content_type=(_ge("one_photo_content_type_2").checked)?2:K.content_type;}K.geo_is_public=(_ge("one_photo_perm_viewgeo_0").checked)?1:0;K.geo_is_family=(_ge("one_photo_perm_viewgeo_2").checked||_ge("one_photo_perm_viewgeo_4").checked)?1:0;K.geo_is_friend=(_ge("one_photo_perm_viewgeo_2").checked||_ge("one_photo_perm_viewgeo_3").checked)?1:0;K.geo_is_contact=(_ge("one_photo_perm_viewgeo_1").checked)?1:0;K.perm_comment="0";if((_ge("one_photo_perm_comment_3").checked)){K.perm_comment="1";}if((_ge("one_photo_perm_comment_2").checked)){K.perm_comment="2";}if((_ge("one_photo_perm_comment_1").checked)){K.perm_comment="3";}K.perm_addmeta="0";if((_ge("one_photo_perm_addmeta_3").checked)){K.perm_addmeta="1";}if((_ge("one_photo_perm_addmeta_2").checked)){K.perm_addmeta="2";}if((_ge("one_photo_perm_addmeta_1").checked)){K.perm_addmeta="3";}var e="pop_get_data_from_form";for(c in K){e+="<br>"+c+":"+K[c];}return K;};F._one_photo_edit_pop.pop_on_form_activity=function(){if(this.pop_has_changes()){F.changes_were_made(F.output.get("one_photo_edit_photo_changed"));this.pop_enable_save_and_revert_buttons();}else{if(!this.pop_were_changes_when_opened){F.changes_were_saved();}this.pop_disable_save_and_revert_buttons();}};F._one_photo_edit_pop.pop_add_form_handlers=function(){var w=function(U){_ge("one_photo_edit_pop").pop_on_form_activity();};var T=function(U){setTimeout("_ge('one_photo_edit_pop').pop_on_form_activity();",100);};_ge("one_photo_date_taken_exact_switcher").onclick=_ge("one_photo_date_taken_approx_switcher").onclick=function(U){_ge("one_photo_edit_pop").pop_toggle_date_taken();w();return false;};var c=function(U){_privacy_specific_change("one_photo_");w();};var K=function(U){_ge("one_photo_edit_pop").pop_license_was_switched();w();};yui.Event.addListener(_ge("one_photo_title"),"change",w);yui.Event.addListener(_ge("one_photo_title"),"keyup",w);yui.Event.addListener(_ge("one_photo_title"),"keydown",T);yui.Event.addListener(_ge("addtagbox"),"change",w);yui.Event.addListener(_ge("addtagbox"),"keyup",w);yui.Event.addListener(_ge("addtagbox"),"keydown",T);yui.Event.addListener(_ge("one_photo_description"),"change",w);yui.Event.addListener(_ge("one_photo_description"),"keyup",w);yui.Event.addListener(_ge("one_photo_description"),"keydown",T);yui.Event.addListener(_ge("one_photo_date_taken_exact"),"change",w);yui.Event.addListener(_ge("one_photo_date_taken_exact"),"keyup",w);yui.Event.addListener(_ge("one_photo_date_taken_exact"),"keydown",T);yui.Event.addListener(_ge("one_photo_date_taken_exact"),"focus",w);yui.Event.addListener(_ge("one_photo_time_taken_exact"),"change",w);yui.Event.addListener(_ge("one_photo_time_taken_exact"),"keyup",w);yui.Event.addListener(_ge("one_photo_time_taken_exact"),"keydown",T);yui.Event.addListener(_ge("one_photo_date_taken_approx_month"),"change",w);yui.Event.addListener(_ge("one_photo_date_taken_approx_year"),"change",w);yui.Event.addListener(_ge("one_photo_date_posted_exact"),"change",w);yui.Event.addListener(_ge("one_photo_date_posted_exact"),"keyup",w);yui.Event.addListener(_ge("one_photo_date_posted_exact"),"keydown",T);yui.Event.addListener(_ge("one_photo_date_posted_exact"),"focus",w);yui.Event.addListener(_ge("one_photo_time_posted_exact"),"change",w);yui.Event.addListener(_ge("one_photo_time_posted_exact"),"keyup",w);yui.Event.addListener(_ge("one_photo_time_posted_exact"),"keydown",T);if(!disable_geo){yui.Event.addListener(_ge("one_photo_geo_data_lon"),"change",w);yui.Event.addListener(_ge("one_photo_geo_data_lon"),"keyup",w);yui.Event.addListener(_ge("one_photo_geo_data_lon"),"keydown",T);yui.Event.addListener(_ge("one_photo_geo_data_lat"),"change",w);yui.Event.addListener(_ge("one_photo_geo_data_lat"),"keyup",w);yui.Event.addListener(_ge("one_photo_geo_data_lat"),"keydown",T);}var N=_ge("one_photo_license_form").one_photo_license;for(var e=0;e<N.length;e++){yui.Event.addListener(N[e],"click",K);}if(!disable_geo){for(var e=0;e<7;e++){yui.Event.addListener(_ge("one_photo_perm_viewgeo_"+e),"click",w);}}yui.Event.addListener(_ge("one_photo_is_private"),"click",c);yui.Event.addListener(_ge("one_photo_is_public"),"click",c);yui.Event.addListener(_ge("one_photo_is_family"),"click",c);yui.Event.addListener(_ge("one_photo_is_friend"),"click",c);for(var e=1;e<5;e++){yui.Event.addListener(_ge("one_photo_perm_comment_"+e),"click",w);yui.Event.addListener(_ge("one_photo_perm_addmeta_"+e),"click",w);}if(!disable_geo){for(var e=0;e<7;e++){yui.Event.addListener(_ge("one_photo_perm_viewgeo_"+e),"change",w);}}yui.Event.addListener(_ge("one_photo_is_private"),"change",c);yui.Event.addListener(_ge("one_photo_is_public"),"change",c);yui.Event.addListener(_ge("one_photo_is_family"),"change",c);yui.Event.addListener(_ge("one_photo_is_friend"),"change",c);for(var e=1;e<5;e++){yui.Event.addListener(_ge("one_photo_perm_comment_"+e),"change",w);yui.Event.addListener(_ge("one_photo_perm_addmeta_"+e),"change",w);}if(global_eighteen){for(var e=0;e<3;e++){yui.Event.addListener(_ge("one_photo_safety_level_"+e),"change",w);yui.Event.addListener(_ge("one_photo_content_type_"+e),"change",w);yui.Event.addListener(_ge("one_photo_safety_level_"+e),"click",w);yui.Event.addListener(_ge("one_photo_content_type_"+e),"click",w);}}this.pop_add_form_handlers=function(){};};F._one_photo_edit_pop.pop_toggle_date_taken=function(){if(_ge("one_photo_date_taken_exact_div").style.display=="none"){_ge("one_photo_date_taken_exact_div").style.display="block";_ge("one_photo_date_taken_approx_div").style.display="none";_ge("one_photo_date_taken_exact_switcher").style.display="none";_ge("one_photo_date_taken_approx_switcher").style.display="inline";}else{_ge("one_photo_date_taken_exact_div").style.display="none";_ge("one_photo_date_taken_approx_div").style.display="block";_ge("one_photo_date_taken_exact_switcher").style.display="inline";_ge("one_photo_date_taken_approx_switcher").style.display="none";}};F._one_photo_edit_pop.pop_disable_save_and_revert_buttons=function(){this.pop_disable_save_button();this.pop_disable_revert_button();};F._one_photo_edit_pop.pop_enable_save_and_revert_buttons=function(){this.pop_enable_save_button();this.pop_enable_revert_button();};F._one_photo_edit_pop.pop_disable_save_button=function(){_ge("one_photo_save").disabled=true;_ge("one_photo_save").className="DisabledButt";};F._one_photo_edit_pop.pop_enable_save_button=function(){_ge("one_photo_save").disabled=false;_ge("one_photo_save").className="Butt";};F._one_photo_edit_pop.pop_disable_revert_button=function(){_ge("one_photo_revert_link").style.visibility="hidden";_ge("one_photo_revert_link").onclick=function(){this.blur();return false;};};F._one_photo_edit_pop.pop_enable_revert_button=function(){_ge("one_photo_revert_link").style.visibility="visible";_ge("one_photo_revert_link").onclick=function(){this.blur();_ge("one_photo_edit_pop").pop_revert();return false;};};F._one_photo_edit_pop.pop_delete_photo=function(c){if(!c){var T=F.output.get("one_photo_edit_really_delete");var K=this;var e=function(){K.pop_delete_photo(1);};this.pop_start_comming(T,1,1,F.output.get("yes_delete"),e,1,F.output.get("one_photo_edit_no"));return ;}this.pop_start_comming(F.output.get("one_photo_edit_deleting"));F.API.callMethod("flickr.photos.delete",{photo_id:this.pop_photo.id},this);};F._one_photo_edit_pop.flickr_photos_delete_onLoad=function(e,c,K){if(e){this.pop_done_deleting();}else{this.pop_start_comming(F.output.get("api_err_generic")+" "+K.escape_for_display(),1,1);}};F._one_photo_edit_pop.pop_done_deleting=function(){if(!this.pop_were_changes_when_opened){F.changes_were_saved();}this.pop_stop_comming();this.eb_broadcast("one_photo_on_save",this.pop_photo.id,0,1);this.pop_hide();var K=global_photos[this.pop_photo.id];global_photos[this.pop_photo.id]=null;delete global_photos[this.pop_photo.id];};F._one_photo_edit_pop.pop_save=function(){exp_rsps=0;var w=this.pop_what_changed();var c=w.now;var N="";if(limit_tags&&w.tags){var K=F.get_tags_from_input_str(c.tags);if(K.length>global_tag_limit){N=F.output.get("too_many_tags",global_tag_limit);}}if(N!=""){N="<b>"+F.output.get("cant_save")+"</b> "+N;this.pop_start_comming(N,1,1);return ;}this.rsp_errs=[];this.pop_changed_dates=w.dates;if(w.dates){exp_rsps++;}if(w.meta){exp_rsps++;}if(w.tags){exp_rsps++;}if(w.perms){exp_rsps++;}if(w.geo){exp_rsps++;}if(w.geoperms){exp_rsps++;}if(w.license){exp_rsps++;}if(w.content_type){exp_rsps++;}if(w.safety_level){exp_rsps++;}if(!exp_rsps){writeDebug(F.output.get("one_photo_edit_nothing_saved"));this.pop_done_saving();return ;}this.pop_start_comming(F.output.get("one_photo_edit_saving"));var e={exp_rsps:exp_rsps,rec_rsps:0,tabl:this};e.flickr_photos_setMeta_onLoad=e.flickr_photos_geo_setPerms_onLoad=e.flickr_photos_licenses_setLicense_onLoad=e.flickr_photos_setContentType_onLoad=e.flickr_photos_setSafetyLevel_onLoad=e.flickr_photos_setDates_onLoad=function(g,s,U){this.rec_rsps++;if(this.rec_rsps==this.exp_rsps){this.tabl.pop_done_saving(1);}};e.flickr_photos_setTags_onLoad=function(i,g,s){this.rec_rsps++;if(!i){var U=g.documentElement.getElementsByTagName("err")[0];if(U&&U.getAttribute("code")=="2"){_ge("one_photo_edit_pop").rsp_errs.push(F.output.get("tags_not_saved",global_tag_limit));}}if(this.rec_rsps==this.exp_rsps){this.tabl.pop_done_saving(1);}};e.flickr_photos_setPerms_onLoad=function(h,i,U,g){this.rec_rsps++;if(h){var s=global_photos[g.photo_id];if(!s){return ;}s.is_public=g.is_public;s.is_friend=g.is_friend;s.is_family=g.is_family;s.perm_comment=g.perm_comment;s.perm_addmeta=g.perm_addmeta;F.handle_changed_secret(i);}if(this.rec_rsps==this.exp_rsps){this.tabl.pop_done_saving(1);}};e.flickr_photos_geo_setLocation_onLoad=function(h,i,U,g){this.rec_rsps++;if(h){var s=global_photos[g.photo_id];if(!s){return ;}s.latitude=g.lat;s.longitude=g.lon;s.accuracy=g.accuracy;if(_ge("map_controller")){_ge("map_controller").search_and_open_this_photo(g.photo_id);}}if(this.rec_rsps==this.exp_rsps){this.tabl.pop_done_saving(1);}};e.flickr_photos_geo_removeLocation_onLoad=function(h,i,U,g){this.rec_rsps++;if(h){var s=global_photos[g.photo_id];if(!s){return ;}s.latitude="0";s.longitude="0";s.accuracy="0";if(_ge("map_controller")){_ge("map_controller").search_and_open_this_photo(g.photo_id);}}if(this.rec_rsps==this.exp_rsps){this.tabl.pop_done_saving(1);}};if(w.tags){F.API.callMethod("flickr.photos.setTags",{photo_id:this.pop_photo.id,tags:c.tags},e);}if(w.meta){F.API.callMethod("flickr.photos.setMeta",{photo_id:this.pop_photo.id,title:c.title,description:c.description},e);}if(w.content_type&&global_eighteen){F.API.callMethod("flickr.photos.setContentType",{photo_id:this.pop_photo.id,content_type:c.content_type+1},e);}if(w.safety_level&&global_eighteen){F.API.callMethod("flickr.photos.setSafetyLevel",{photo_id:this.pop_photo.id,safety_level:c.safety_level+1},e);}if(w.dates){F.API.callMethod("flickr.photos.setDates",{photo_id:this.pop_photo.id,date_posted:c.dates.date_posted,date_taken:c.dates.date_taken,date_taken_granularity:c.dates.date_taken_granularity},e);}if(w.geo){if(!c.lat&&!c.lon){F.API.callMethod("flickr.photos.geo.removeLocation",{photo_id:this.pop_photo.id},e);}else{F.API.callMethod("flickr.photos.geo.setLocation",{photo_id:this.pop_photo.id,lat:c.lat.truncate_geo_value(),lon:c.lon.truncate_geo_value(),accuracy:16},e);}}if(w.geoperms){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:this.pop_photo.id,is_public:c.geo_is_public,is_friend:c.geo_is_friend,is_family:c.geo_is_family,is_contact:c.geo_is_contact},e);}if(w.license){F.API.callMethod("flickr.photos.licenses.setLicense",{photo_id:this.pop_photo.id,license_id:c.license_id},e);}if(w.perms){var T={photo_id:this.pop_photo.id,is_public:c.is_public,is_friend:c.is_friend,is_family:c.is_family,perm_comment:c.perm_comment,perm_addmeta:c.perm_addmeta};F.API.callMethod("flickr.photos.setPerms",T,e);}};F._one_photo_edit_pop.pop_done_saving=function(K){if(!this.pop_were_changes_when_opened){F.changes_were_saved();}this.pop_stop_comming();if(K){this.eb_broadcast("one_photo_on_save",this.pop_photo.id,this.pop_changed_dates);}if(this.rsp_errs.length>0){var e="<b>"+F.output.get("not_all_saved")+"</b>";for(var c=0;c<this.rsp_errs.length;c++){e+="<br><br>"+this.rsp_errs[c];}this.pop_start_comming(e,1,1);return ;}if(_ge("one_photo_goto_next").checked&&this.pop_is_there_a_next){this.pop_go_to_next();}else{this.pop_hide();}};F._one_photo_edit_pop.pop_cancel=function(K){if(this.pop_has_changes()&&!K){var c=function(){_ge("one_photo_edit_pop").pop_cancel(1);};_ge("tabl").tabl_start_comming(F.output.get("unsaved_msg"),1,1,F.output.get("ok"),c,1,F.output.get("cancel"));return ;}if(!this.pop_were_changes_when_opened){F.changes_were_saved();}this.pop_hide();};F._one_photo_edit_pop.pop_revert=function(){this.pop_fill_form();if(!this.pop_were_changes_when_opened){F.changes_were_saved();}};F._one_photo_edit_pop.pop_has_changes=function(){if(this.pop_loading){return 0;}var K=this.pop_what_changed();if(K.dates){return 1;}if(K.meta){return 1;}if(K.tags){return 1;}if(K.perms){return 1;}if(K.geo){return 1;}if(K.geoperms){return 1;}if(K.license){return 1;}if(K.content_type){return 1;}if(K.safety_level){return 1;}return 0;};F._one_photo_edit_pop.pop_what_changed=function(){var K={};K.dates=0;K.meta=0;K.tags=0;K.perms=0;K.geo=0;K.geoperms=0;K.license_id=0;K.content_type=0;K.safety_level=0;var e=this.pop_form_data_saved;var c=this.pop_get_data_from_form();K.now=c;if(c.title!=e.title){K.meta=1;}else{if(c.description!=e.description){K.meta=1;}}if(c.content_type!=e.content_type){K.content_type=1;}if(c.safety_level!=e.safety_level){K.safety_level=1;}if(c.tags!=e.tags){K.tags=1;}if(c.dates.date_posted!=e.dates.date_posted){K.dates=1;}else{if(c.dates.date_taken!=e.dates.date_taken){K.dates=1;}else{if(c.dates.date_taken_granularity!=e.dates.date_taken_granularity){K.dates=1;}}}if(!disable_geo){if(c.lat!=e.lat){K.geo=1;}else{if(c.lon!=e.lon){K.geo=1;}}if(c.geo_is_public!=e.geo_is_public){K.geoperms=1;}else{if(c.geo_is_friend!=e.geo_is_friend){K.geoperms=1;}else{if(c.geo_is_family!=e.geo_is_family){K.geoperms=1;}else{if(c.geo_is_contact!=e.geo_is_contact){K.geoperms=1;}}}}}if(c.license_id!=e.license_id){K.license=1;}if(c.is_private!=e.is_private){K.perms=1;}else{if(c.is_friend!=e.is_friend){K.perms=1;}else{if(c.is_family!=e.is_family){K.perms=1;}else{if(c.perm_comment!=e.perm_comment){K.perms=1;}else{if(c.perm_addmeta!=e.perm_addmeta){K.perms=1;}}}}}return K;};