var snaggit=3;var undefined;var YMAPPID="flickrMappr";if(!Function.prototype.call){Function.prototype.call=function(U,R){U.base=this;U.base(R);};}if(!Function.prototype.apply){Function.prototype.apply=function(oScope,args){var sarg=[];var rtrn,call;if(!oScope){oScope=window;}if(!args){args=[];}for(var i=0;i<args.length;i++){sarg[i]="args["+i+"]";}call="oScope.__applyTemp__("+sarg.join(",")+");";oScope.__applyTemp__=this;rtrn=eval(call);oScope.__applyTemp__=null;return rtrn;};}Date.prototype.customFormat=function(E){var t=((YYYY=this.getFullYear())+"").substr(2,2);var A=this.getMonth()+1;var C=(A)<10?"0"+A:A;var y=F.output.date_strs.monthsA[A-1];var c=F.output.date_strs.months_abbA[A-1];var x=this.getDate();var j=x<10?"0"+x:x;var L=F.output.date_strs.days_abbA[A-1];var S=F.output.date_strs.daysA[A-1];var R=x%10;var q="";if(global_intl_lang=="en-us"){q=(x>=10&&x<=20)?"th":(R==1)?"st":(R==2)?"nd":(R==3)?"rd":"th";}if(global_intl_lang=="fr-fr"){if(x==1){q="er";}}if(global_intl_lang=="pt-br"){if(x==1){q="&#186;";}}if(global_intl_lang=="de-de"){if(x==1){q=".";}}E=E.replace("#YYYY#",YYYY);E=E.replace("#YY#",t);E=E.replace("#MMMM#",y);E=E.replace("#MMM#",c);E=E.replace("#MM#",C);E=E.replace("#M#",A);E=E.replace("#DDDD#",S);E=E.replace("#DDD#",L);E=E.replace("#DD#",j);E=E.replace("#D#",x);E=E.replace("#th#",q);var J=decodeURIComponent("%EB%85%84");var r=decodeURIComponent("%EC%9B%94");var U=decodeURIComponent("%EC%9D%BC");E=E.replace("#KY#",J);E=E.replace("#KM#",r);E=E.replace("#KD#",U);var g=decodeURIComponent("%E5%B9%B4");var u=decodeURIComponent("%E6%9C%88");var l=decodeURIComponent("%E6%97%A5");E=E.replace("#CY#",g);E=E.replace("#CM#",u);E=E.replace("#CD#",l);var W=this.getHours();var b=W;if(b==0){b=24;}if(b>12){b-=12;}var e=(b<10)?"0"+b:b;var X=(W<12)?"am":"pm";var B=this.getMinutes();var K=(B<10)?"0"+B:B;var P=this.getSeconds();var k=(P<10)?"0"+P:P;E=E.replace("#hhh#",W);E=E.replace("#hh#",e);E=E.replace("#h#",b);E=E.replace("#mm#",K);E=E.replace("#m#",B);E=E.replace("#ss#",k);E=E.replace("#s#",P);E=E.replace("#ampm#",X);return E;};Date.prototype.flickr_date=function(){var U="#D##th# #MMMM#, #YYYY#";if(global_intl_lang=="ko-kr"){U="#YYYY##KY# #MMMM##KM# #D##KD#";}if(global_intl_lang=="zh-hk"){U="#YYYY##CY##M##CM##D##CD#";}return this.customFormat(U);};Date.prototype.flickr_minidate=function(){var U="#D# #MMM# #YY#";if(global_intl_lang=="ko-kr"){U="#YY##KY# #M##KM# #D##KD#";}if(global_intl_lang=="zh-hk"){U="#YY##CY##M##CM##D##CD#";}return this.customFormat(U);};var global_today=new Date();var global_tm=global_today.getMonth()+1;var global_td=global_today.getDate();var global_ty=global_today.getFullYear();var global_days_in_months=[31,0,31,30,31,30,31,31,30,31,30,31];if(!Array.prototype.push){Array.prototype.push=function(){var c=0,U=this.length,R=arguments;for(c;c<R.length;c++){this[U+c]=R[c];}return this.length;};}if(!Array.prototype.pop){Array.prototype.pop=function(){var U=this[this.length-1];this.length--;return U;};}if(!Array.prototype.shift){Array.prototype.shift=function(){var R=this[0];for(var U=0;U<this.length-1;U++){this[U]=this[U+1];}this.length--;return R;};}if(!Array.prototype.unshift){Array.prototype.unshift=function(){this.reverse();for(var U=arguments.length-1;U>=0;U--){this[this.length]=arguments[U];}this.reverse();return this.length;};}if(!Array.prototype.splice){function array_splice(c,R){if(arguments.length==0){return c;}if(typeof c!="number"){c=0;}if(c<0){c=Math.max(0,this.length+c);}if(c>this.length){if(arguments.length>2){c=this.length;}else{return [];}}if(arguments.length<2){R=this.length-c;}R=(typeof R=="number")?Math.max(0,R):0;removeArray=this.slice(c,c+R);endArray=this.slice(c+R);this.length=c;for(var U=2;U<arguments.length;U++){this[this.length]=arguments[U];}for(var U=0;U<endArray.length;U++){this[this.length]=endArray[U];}return removeArray;}Array.prototype.splice=array_splice;}var _numeric_sort_func=function(R,U){return (R-U);};var _alpha_sort_func=function(c,R){var U=String(c).toLowerCase();var u=String(R).toLowerCase();return (U>u)?1:((U<u)?-1:0);};Number.prototype.addZeros=function(U){if(this.toString().length>=U){return this;}return (new Array(U).join("0")+this).substr((new Array(U).join("0")+this).length-U);};Number.prototype.pretty_num=function(){var L=F.output.dec_sep;var R=F.output.thou_sep;var q=this.toString();var E=q.split(".");var e=E[0];var c=(E[1])?L+E[1]:"";if(e.length<4){return q;}var U="";for(var u=e.length-1;u>-1;u--){if(u<e.length-1&&(e.length-1-u)%3==0){U=R+U;}U=e.charAt(u)+U;}return U+c;};Number.prototype.truncate_geo_value=function(){var U=this.toString();sA=U.split(".");if(sA.length<2){return this;}d=sA[1];if(d.length<7){return this;}d=d.substring(0,6);return (sA[0]+"."+d)*1;};String.prototype.truncate_geo_value=function(){return _pf(this).truncate_geo_value();};String.prototype.pretty_num=function(){return _pf(this).pretty_num();};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};String.prototype.nl2br=function(){return this.split("\n").join("<br>\n");};String.prototype.replace_regx=String.prototype.replace;String.prototype.replace=function(R,U){return this.split(R).join(U);};String.prototype.escape_for_xml=function(){return this.replace("&","&amp;").replace("\"","&quot;").replace("<","&lt;").replace(">","&gt;");};String.prototype.unescape_from_xml=function(){return this.replace("&quot;","\"").replace("&lt;","<").replace("&gt;",">").replace("&amp;","&");};String.prototype.escape_for_display=function(){return this.replace("<","&lt;");};String.prototype.escape_for_display_and_wrap=function(){return this.replace("<","<wbr>&lt;");};String.prototype.truncate_with_ellipses=function(R){var U=this;if(U.length>R-3){U=U.substr(0,R-3).trim()+"&hellip;";}return U;};String.prototype.truncate=function(R){var U=this;if(U.length>R){U=U.substr(0,R);}return U;};var global_photos={};var global_sets={};var global_collections={};var global_groups={};var global_wallies=global_sets;var global_users={};if(global_nsid){global_users[global_nsid]={id:global_nsid,name:global_name,icon_url:global_icon_url,expire:global_expire,dbid:global_dbid};}var _get_collection_src=function(l,u,L){var E="";if(!l){return E;}if(!l.server||!l.secret){E="/images/collection_default_l.gif";}else{var e=Math.ceil(l.server/1000);var L=(L)?L:_photo_root;var U=l.id.split("-");var q=l.server+"/cols/"+U[1]+"_"+l.secret+"_l.jpg";var R=L.replace("http://farm","http://farm"+e);E=R+q;if(p.src_cb){E+="?"+p.src_cb;}}if(u=="s"){E=E.replace("_l.jpg","_s.jpg");}return E;};var _get_photo_src=function(c,R,q){var e="";if(!c||!c.src){return e;}if(!R){R="s";}var u=c.src;if(R!="s"){u=u.replace("_s","_"+R);}u=u.replace("_500.jpg",".jpg");var q=(q)?q:_photo_root;var U=q.replace("http://farm","http://farm"+c.farm);e=U+u;if(c.src_cb){e+="?"+c.src_cb;}return e;};var _construct_user_icon_url=function(e,R){if(e&&e!="0"){var u=Math.ceil(e/1000);var U=_photo_root.replace("http://farm","http://farm"+u);var c=U+e+"/buddyicons/"+R+".jpg";}else{var c=_images_root+"/buddyicon.jpg";}writeDebug(c);return c;};var _upsert_user=function(E){var R=E.getAttribute("nsid");var U=E.getAttribute("username");var S=E.getAttribute("realname");var c=E.getAttribute("iconserver");var e=E.getAttribute("expire");var L=E.getAttribute("dbid");var t=E.getAttribute("email");var P=E.getAttribute("hide_email");var l=E.getElementsByTagName("username");if(l&&l[0]){var q=l[0];var U=(q.firstChild)?q.firstChild.nodeValue:"";}var A=_construct_user_icon_url(c,R);var X=global_users[R];if(!X){X=global_users[R]={id:R,name:U,realname:S,email:t,icon_url:A,hide_email:P};}else{X.id=R;X.name=U;X.realname=S;X.email=t;X.icon_url=A;X.hide_email=X.hide_email;}if(e){X.expire=e;}if(L){X.dbid=L;}return X;};var _get_group_throttle_txt=function(U){var R="";if(U){if(U.throttle_mode=="disabled"){R=F.output.get("pool_uploads_disabled");}else{if(U.throttle_count){R=F.output.get("pool_uploads_throttled_"+U.throttle_mode,U.throttle_count.pretty_num());}else{R="";}}}return R;};var _upsert_group=function(e){var L=e.getAttribute("nsid");if(!L){L=e.getAttribute("id");}var c=e.getAttribute("name");if(!c){c=e.getAttribute("title");}var E=e.getAttribute("iconserver");if(E&&E!="0"){var q=Math.ceil(E/1000);var U=_photo_root.replace("http://farm","http://farm"+q);var R=U+E+"/buddyicons/"+L+".jpg";}else{var R=_images_root+"/buddyicon.jpg";}var u=global_groups[L];if(!u){u=global_groups[L]={id:L,name:c,icon_url:R};}else{u.id=L;u.name=c;u.icon_url=R;}return u;};var _upsert_photo_new=function(e){if(!e){return ;}var c={};if(typeof e.getElementsByTagName!="function"){c.id=e.id;c.server=e.server;c.secret=e.secret;c.title=e.title;c.date_taken=e.datetaken;c.date_taken_granularity=e.datetakengranularity;c.date_upload=e.dateupload;c.latitude=e.latitude;c.longitude=e.longitude;c.accuracy=e.accuracy;c.owner_nsid=e.owner;c.owner_name=e.ownername;c.owner_iconserver=e.iconserver;c.is_public=e.ispublic;c.is_friend=e.isfriend;c.is_family=e.isfamily;c.geo_is_public=e.geoperms.ispublic;}else{c.id=e.getAttribute("id");c.server=e.getAttribute("server");c.secret=e.getAttribute("secret");var S=e.getElementsByTagName("title");if(S&&S[0]){var C=S[0];c.title=(C.firstChild)?C.firstChild.nodeValue:"";var A=e.getElementsByTagName("description")[0];c.description=(A.firstChild)?A.firstChild.nodeValue:"";c.license_id=e.getAttribute("license");c.is_favorite=e.getAttribute("isfavorite");var E=e.getElementsByTagName("visibility")[0];c.is_public=E.getAttribute("ispublic");c.is_friend=E.getAttribute("isfriend");c.is_family=E.getAttribute("isfamily");c.safety_level=E.getAttribute("safety_level");c.content_type=E.getAttribute("content_type");c.is_hidden=E.getAttribute("hidden");c.moderation_mode=E.getAttribute("moderation_mode");var q=e.getElementsByTagName("dates")[0];c.date_taken=q.getAttribute("taken");c.date_taken_granularity=q.getAttribute("takengranularity");c.date_upload=q.getAttribute("posted");c.date_update=q.getAttribute("lastupdate");var u=e.getElementsByTagName("owner")[0];c.owner_nsid=u.getAttribute("nsid");c.owner_name=u.getAttribute("username");c.owner_iconserver=null;var x=e.getElementsByTagName("geoperms");if(x&&x[0]){c.geo_is_public=x[0].getAttribute("ispublic");c.geo_is_friend=x[0].getAttribute("isfriend");c.geo_is_family=x[0].getAttribute("isfamily");c.geo_is_contact=x[0].getAttribute("iscontact");}var l=e.getElementsByTagName("location");if(l&&l[0]){c.latitude=l[0].getAttribute("latitude");c.longitude=l[0].getAttribute("longitude");c.accuracy=l[0].getAttribute("accuracy");}var y=e.getElementsByTagName("permissions");if(y&&y[0]){c.perm_comment=y[0].getAttribute("permcomment");c.perm_addmeta=y[0].getAttribute("permaddmeta");}var y=e.getElementsByTagName("permissions");if(y&&y[0]){c.perm_comment=y[0].getAttribute("permcomment");c.perm_addmeta=y[0].getAttribute("permaddmeta");}var P=e.getElementsByTagName("tag");if(P){_rebuild_tags(c,P);}var t=e.getElementsByTagName("set");if(t&&t.length){c.sets=[];for(var L=0;L<t.length;L++){c.sets.push(t[L].getAttribute("id"));}}var X=e.getElementsByTagName("pool");if(X&&X.length){c.pools=[];for(var L=0;L<X.length;L++){c.pools.push(X[L].getAttribute("id"));if(!global_groups[X[L].getAttribute("id")]){_upsert_group(X[L]);}}}}else{c.title=e.getAttribute("title");c.date_taken=e.getAttribute("datetaken");c.date_taken_granularity=e.getAttribute("datetakengranularity");c.date_upload=e.getAttribute("dateupload");c.latitude=e.getAttribute("latitude");c.longitude=e.getAttribute("longitude");c.accuracy=e.getAttribute("accuracy");c.owner_nsid=e.getAttribute("owner");c.owner_name=e.getAttribute("ownername");c.owner_iconserver=e.getAttribute("iconserver");c.is_public=e.getAttribute("ispublic");c.is_friend=e.getAttribute("isfriend");c.is_family=e.getAttribute("isfamily");}}var R=global_photos[c.id];if(!R){R=global_photos[c.id]={};}c.farm=Math.ceil(c.server/1000);c.src=c.server+"/"+c.id+"_"+c.secret+"_s.jpg";delete c.secret;for(var U in c){if(U=="description"){R[U]=c[U];continue;}if(c[U]!=""&&c[U]!=undefined){R[U]=c[U];}}R.toString=function(){return _uber_toString(this,null,null,"g_p["+this.id+"].");};return R;};var _upsert_photo=function(r){var v=r.getAttribute("id");var uG=r.getAttribute("secret");var Z=r.getAttribute("server");var y=Math.ceil(Z/1000);var M=Z+"/"+v+"_"+uG+"_s.jpg";var h=r.getAttribute("media");var B=r.getElementsByTagName("title");if(B&&B[0]){var Jw=B[0];var Q=(Jw.firstChild)?Jw.firstChild.nodeValue:"";var vh=r.getElementsByTagName("description")[0];var J=(vh.firstChild)?vh.firstChild.nodeValue:"";var g=r.getAttribute("license");var G=r.getAttribute("isfavorite");var l=r.getElementsByTagName("visibility")[0];var S=l.getAttribute("ispublic");var f=l.getAttribute("isfriend");var A=l.getAttribute("isfamily");var q=l.getAttribute("safety_level");var L=l.getAttribute("content_type");var x=l.getAttribute("hidden");var I8=l.getAttribute("moderation_mode");var O=r.getElementsByTagName("geoperms");if(O&&O[0]){var Xx=O[0].getAttribute("ispublic");var H=O[0].getAttribute("isfriend");var Yc=O[0].getAttribute("isfamily");var I=O[0].getAttribute("iscontact");}var k=r.getElementsByTagName("dates")[0];var R=k.getAttribute("taken");var W=k.getAttribute("takengranularity");var m=k.getAttribute("posted");var U=k.getAttribute("lastupdate");var e=r.getElementsByTagName("owner")[0];var Fe=e.getAttribute("nsid");var o=e.getAttribute("username");var c=null;var z=r.getElementsByTagName("location");if(z&&z[0]){var X=z[0].getAttribute("latitude");var w=z[0].getAttribute("longitude");var XA=z[0].getAttribute("accuracy");}var E=r.getElementsByTagName("permissions");if(E&&E[0]){var N=E[0].getAttribute("permcomment");var n=E[0].getAttribute("permaddmeta");}var E=r.getElementsByTagName("permissions");if(E&&E[0]){var N=E[0].getAttribute("permcomment");var n=E[0].getAttribute("permaddmeta");}var K=r.getElementsByTagName("tag");var j=r.getElementsByTagName("set");var b=r.getElementsByTagName("pool");var V=r.getElementsByTagName("video");if(V&&V[0]){var D=V[0].getAttribute("failed");var C=V[0].getAttribute("ready");var s=V[0].getAttribute("duration");var t=V[0].getAttribute("width");var P=V[0].getAttribute("height");}}else{var Q=r.getAttribute("title");var R=r.getAttribute("datetaken");var W=r.getAttribute("datetakengranularity");var m=r.getAttribute("dateupload");var X=r.getAttribute("latitude");var w=r.getAttribute("longitude");var XA=r.getAttribute("accuracy");var Fe=r.getAttribute("owner");var o=r.getAttribute("ownername");var c=r.getAttribute("iconserver");var S=r.getAttribute("ispublic");var f=r.getAttribute("isfriend");var A=r.getAttribute("isfamily");var y3=r.getAttribute("o_width");var u=r.getAttribute("o_height");var h=r.getAttribute("media");}var a=global_photos[v];if(!a){a=global_photos[v]={id:v,title:Q,src:M};}else{a.id=v;a.title=Q;a.src=M;}a.secret=uG;a.server=Z;a.farm=y;a.toString=function(ra,d2){var ra=(ra)?ra:this;var d2=(d2)?d2:1;var nI="";var sy="";for(var UT=0;UT<d2;UT++){sy+="\t";}if(d2==1){nI+="global_photos["+a.id+"] = {\n";}for(pr in ra){if(typeof ra[pr]=="function"){continue;}nI+=sy+pr;if(typeof ra[pr]=="object"){if(ra[pr].length!=undefined){nI+=" = [\n";nI+=a.toString(ra[pr],d2+1);nI+=sy+"]\n";}else{nI+=" = {\n";nI+=a.toString(ra[pr],d2+1);nI+=sy+"}\n";}}else{if(typeof ra[pr]=="function"){nI+=": function\n";}else{if(typeof ra[pr]=="string"){nI+=": \""+ra[pr]+"\"\n";}else{nI+=": "+ra[pr]+"\n";}}}}if(d2==1){nI+="}\n";}return nI;};if(K){_rebuild_tags_for_photos(v,K);}if(g&&g!=""){a.license_id=g;}if(g&&g!=""){a.is_favorite=G;}if(R&&R!=""){a.date_taken=R;}if(W!=undefined&&W!=""){a.date_taken_granularity=W;}if(m&&m!=""){a.date_upload=m;}if(U&&U!=""){a.date_update=U;}if(X!=undefined&&X!=""){a.latitude=X;}if(w!=undefined&&w!=""){a.longitude=w;}if(XA!=undefined&&XA!=""){a.accuracy=XA;}if(J!=undefined){a.description=J;}if(S!=undefined){a.is_public=S;}if(f!=undefined){a.is_friend=f;}if(A!=undefined){a.is_family=A;}if(u!=undefined&&!isNaN(u)){a.o_h=u*1;}if(y3!=undefined&&!isNaN(y3)){a.o_w=y3*1;}if(h&&h!=""){a.media=h;}if(D!=undefined){a.video_failed=(D==1)?1:0;}if(C!=undefined){a.video_ready=(C==1)?1:0;}if(s!=undefined){a.video_duration=s;}if(t!=undefined){a.video_width=t;}if(P!=undefined){a.video_height=P;}if(q!=undefined){a.safety_level=q;}if(L!=undefined){a.content_type=L;}if(x!=undefined){a.is_hidden=x;}if(I8!=undefined){a.moderation_mode=I8;}if(Xx!=undefined){a.geo_is_public=Xx;}if(H!=undefined){a.geo_is_friend=H;}if(Yc!=undefined){a.geo_is_family=Yc;}if(I!=undefined){a.geo_is_contact=I;}if(N!=undefined){a.perm_comment=N;}if(n!=undefined){a.perm_addmeta=n;}if(Fe!=undefined){a.owner_nsid=Fe;}if(o!=undefined){a.owner_name=o;}if(c!=undefined){a.owner_iconserver=c;}if(j&&j.length){a.sets=[];for(var T=0;T<j.length;T++){a.sets.push(j[T].getAttribute("id"));}}if(b&&b.length){a.pools=[];for(var T=0;T<b.length;T++){a.pools.push(b[T].getAttribute("id"));if(!global_groups[b[T].getAttribute("id")]){_upsert_group(b[T]);}}}return a;};var _upsert_set=function(e){var c=e.getAttribute("id");var q=e.getAttribute("primary");var L=e.getAttribute("server");var U=Math.ceil(L/1000);var E=e.getAttribute("secret");var u=e.getAttribute("id");var t=e.getAttribute("photos");var A=e.getElementsByTagName("photo");if(q&&q!=""){var R=global_photos[q];if(!R){R=global_photos[q]={};R.id=q;}if(L&&L!=""&&E&&E!=""){R.src=L+"/"+R.id+"_"+E+"_s.jpg";R.farm=U;}}var S=e.getElementsByTagName("title");if(S&&S[0]&&S[0].firstChild){var X=S[0].firstChild.nodeValue;}else{var X=e.getAttribute("title");}var P=e.getElementsByTagName("description");if(P&&P[0]){if(P[0].firstChild){var x=P[0].firstChild.nodeValue;}else{var x="";}}var C=global_sets[c];if(!C){C=global_sets[c]={id:c,primary_photo_id:q,photo_idsA:[]};}else{C.id=c;C.primary_photo_id=q;}if(u&&u!=""){C.owner=u;}if(X&&X!=""){C.title=X;}if(x!=undefined){C.description=x;}var A=e.getElementsByTagName("photo");if(A&&A.length){C.count=A.length;if(!e.getAttribute("page")||e.getAttribute("page")==1){C.photo_idsA=[];}for(var l=0;l<A.length;l++){var R=_upsert_photo(A[l]);C.photo_idsA.push(R.id);}}else{if(t!=""){C.count=t;}}return C;};var _upsert_wallie=function(e){var c=e.getAttribute("id");var q=e.getAttribute("primary");var L=e.getAttribute("server");var U=Math.ceil(L/1000);var E=e.getAttribute("secret");var u=e.getAttribute("id");var t=e.getAttribute("photos");var A=e.getElementsByTagName("photo");if(q&&q!=""){var R=global_photos[q];if(!R){R=global_photos[q]={};R.id=q;}if(L&&L!=""&&E&&E!=""){R.src=L+"/"+R.id+"_"+E+"_s.jpg";R.farm=U;}}var S=e.getElementsByTagName("title");if(S&&S[0]&&S[0].firstChild){var X=S[0].firstChild.nodeValue;}else{var X=e.getAttribute("title");}var P=e.getElementsByTagName("description");if(P&&P[0]){if(P[0].firstChild){var C=P[0].firstChild.nodeValue;}else{var C="";}}var x=global_wallies[c];if(!x){x=global_wallies[c]={id:c,primary_photo_id:q,photo_idsA:[]};}else{x.id=c;x.primary_photo_id=q;}if(u&&u!=""){x.owner=u;}if(X&&X!=""){x.title=X;}if(C!=undefined){x.description=C;}var A=e.getElementsByTagName("photo");if(A&&A.length){x.count=A.length;if(!e.getAttribute("page")||e.getAttribute("page")==1){x.photo_idsA=[];}for(var l=0;l<A.length;l++){var R=_upsert_photo(A[l]);x.photo_idsA.push(R.id);}}else{if(t!=""){x.count=t;}}return x;};var global_reg_photo_print_ids=[1,2,3];var global_dig_photo_print_ids=[29,30,31];var global_huge_photo_print_ids=[18];var global_square_photo_print_ids=[23];var global_wallet_photo_print_ids=[32];var writeDebug=function(){};var writeAPIDebug=function(){};var writeTimerDebug=function(){};var writeFormDebug=function(){};var writeCometDebug=function(){};var writeObjectDebug=function(){};var timer=function(){};timer.prototype.add=function(){};timer.prototype.add_child=function(){};timer.prototype.clear=function(){};timer.prototype.get_text=function(){};timer.prototype.dump=function(){};var _page_timer=new timer("page","start");var _ge=function(U){return document.getElementById(U);};var _pi=function(U){return parseInt(U,10);};var _pf=function(U){return parseFloat(U);};var F={id:"F",is_windows:(navigator.appVersion.toLowerCase().indexOf("mac")==-1&&navigator.appVersion.toLowerCase().indexOf("nix")==-1&&navigator.appVersion.toLowerCase().indexOf("nux")==-1),changes_count:0,_ebA:[],_decoratedO:{},is_safari:(navigator.userAgent.indexOf("Safari")>-1)?1:0,is_ie:(document.all&&!window.opera)?1:0,is_ff3:(navigator.userAgent.indexOf("Firefox/3")>-1)?1:0,output:{format_strs:{}}};F.handle_changed_secret=function(e){var c=e.documentElement.getElementsByTagName("photoid");for(var R=0;R<c.length;R++){var q=c[R].firstChild.nodeValue;var u=global_photos[q];if(!u){continue;}var U=c[R].getAttribute("secret");u.secret=U;u.src=u.server+"/"+u.id+"_"+U+"_s.jpg";}};F.preload_images=function(){if(!F.preloaded){F.preloaded=[];}for(var U=0;U<arguments.length;U++){F.preloaded[U]=document.createElement("img");F.preloaded[U].src=arguments[U];}};F.get_month_index=function(R){var U=R.substr(0,3).toUpperCase();for(var c=0;c<F.output.date_strs.months_abbA.length;c++){if(U==F.output.date_strs.months_abbA[c]){return c;}}return -1;};F.make_unix_time_stamp=function(E,q,R,U,u,e){var c=new Date(E,q-1,R,U,u,e);return c.getTime()/1000;};F.convert_unix_time_stamp=function(U){return new Date(U*1000);};F.convert_unix_time_stamp_into_MYSQLDateTime=function(U){var R=new Date((U*1000));return this.make_MYSQLDateTime_stamp(R.getFullYear(),(R.getMonth()+1).addZeros(2),R.getDate().addZeros(2),R.getHours().addZeros(2),R.getMinutes().addZeros(2),R.getSeconds().addZeros(2));};F.convert_date_into_unix_time_stamp=function(U){return Math.floor(U.getTime()/1000);};F.convert_date_into_MYSQLDateTime=function(U){var R=U;return this.make_MYSQLDateTime_stamp(R.getFullYear(),(R.getMonth()+1).addZeros(2),R.getDate().addZeros(2),R.getHours().addZeros(2),R.getMinutes().addZeros(2),R.getSeconds().addZeros(2));};F.make_MYSQLDateTime_stamp=function(E,q,c,R,u,e){var U="";if(E!=undefined){U+=E;}else{return U;}if(q!=undefined){U+="-"+q;}else{return U;}if(c!=undefined){U+="-"+c;}else{return U;}if(R!=undefined){U+=" "+R;}else{return U;}if(u!=undefined){U+=":"+u;}else{return U;}if(e!=undefined){U+=":"+e;}else{return U;}return U;};F.convert_MYSQLDateTime_into_unix_time_stamp=function(R){var U=this.convert_MYSQLDateTime(R);return Math.floor(U.getTime()/1000);};F.convert_MYSQLDateTime=function(U){var R=U.split(" ");var c=R[0].split("-");var u=R[1].split(":");if(!u[0]||isNaN(u[0])){u[0]="00";}if(!u[1]||isNaN(u[1])){u[1]="00";}if(!u[2]||isNaN(u[2])){u[2]="00";}return new Date(c[0],(c[1]*1)-1,c[2],u[0],u[1],u[2]);};F.set_hash=function(c){var U=document.location.href.split("#");var R=U[0];var u=F.get_hash();if(c){document.location=R+"#"+c;}else{if(u){document.location=R+"#";}else{}}};F.get_hash=function(){var U=document.location.href.split("#");return U[1]||"";};F.scroll_this_el_into_view=function(R,U,S,e,u){var c=_ge(R);if(!c){return ;}if(!U){U=document.body;}if(U==document.body){U=document.body;var E=_find_screen_height();var t=Y.U.Dom.getY(c);}else{var E=U.offsetHeight;var t=Y.U.Dom.getY(c)-Y.U.Dom.getY(U)+U.scrollTop;}var q=t+c.offsetHeight+5+(u?u:0);var A=E+U.scrollTop;var l=q-A;var L=Math.min(U.scrollTop+l,t);if(l>0&&L!=U.scrollTop){anim_do_scroll_to_scrollTop(U,10,35,L,"easeInOutQuad",S,e);return 1;}if(S&&e){S.apply(null,e);}return 0;};F.stop_event_propagation=function(U){if(!U){U=window.event;}Y.U.Event.stopPropagation(U);};F.fit_text_in_block=function(C,E,P,L,q){writeDebug("fit_text_in_block start");var A=new Date();L=(L)?L:"";q=(q)?q:"";var y=C;var R=E.style.display;var J=E.style.visibility;E.style.visibility="hidden";E.style.display="block";E.innerHTML=L+y+q;writeDebug("BEFORE: h:"+E.offsetHeight+" max:"+P+" "+y);var S=0;if(E.offsetHeight>P&&y.length>1){S++;E.innerHTML=L+"m"+q;var x=E.offsetHeight;E.innerHTML=L+y+q;var u=(E.offsetHeight/x);var e=Math.floor(P/x);writeDebug("lh "+x+" lc "+u+" alc "+e);var X=E.offsetHeight-P;var U=Math.max(1,u-3)/e;writeDebug("DURING: diff:"+X+" times:"+U);y=y.truncate_with_ellipses(_pi(y.length/(U)));E.innerHTML=L+y+q;writeDebug("lop a bunch: h:"+E.offsetHeight+" max:"+P+" "+y);}if(E.offsetHeight>P&&y.length>1){do{S++;y=y.truncate_with_ellipses(y.length-2);E.innerHTML=L+y+q;}while(E.offsetHeight>P&&y.length>1);}writeAPIDebug("AFTER: c:"+S+" h:"+E.offsetHeight+" max:"+P+" "+y);E.style.visibility=J;E.style.display=R;var l=new Date();writeDebug("fit_text_in_block Step 1 = "+(l-A)+"ms");};F.get_tags_from_input_str=function(L){L=L.trim();if(L==""){return [];}var q=[];if(L.indexOf(",")!=-1){var u=L.split(",");for(var e=0;e<u.length;e++){var U=u[e].trim();U=U.replace("\"","");if(U!==""){q.push(U);}}}else{var u=L.split("\"");for(var e=0;e<u.length;e++){var E=u[e].trim();if(e%2==0){var c=E.split(" ");for(var R=0;R<c.length;R++){if(c[R]!=""){q.push(c[R]);}}}else{if(E!=""){q.push(E);}}}}return q;};F.array_copy=function(U){var u=[];for(var R=0;R<U.length;R++){u[R]=U[R];}return u;};F.array_copy_except=function(U,u){var e=[];for(var R=0;R<U.length;R++){if(u==undefined||U[R]!=u){e.push(U[R]);}}return e;};F.array_index_of=function(U,c){if(!U){if(F.array_index_of.caller==null){alert("F.array_index_of was called from the top!");}else{alert("F.array_index_of caller was "+F.array_index_of.caller);}}for(var R=0;R<U.length;R++){if(U[R]==c){return R;}}return -1;};F.get_dates_from_form=function(t,L){var S;var R;var e;var E=_ge(t+"date_posted_exact");var A=_ge(t+"time_posted_exact");if(E){var u=E.value.split("/");S=F.convert_MYSQLDateTime_into_unix_time_stamp(u[2]+"-"+u[0]+"-"+u[1]+" "+A.value);if(L>0){S=S+L;}}if(_ge(t+"date_taken_exact_div").style.display=="none"){var X=_ge(t+"date_taken_approx_month");var P=_ge(t+"date_taken_approx_year");R=P.options[P.selectedIndex].value;if(X.options[X.selectedIndex].value!=0){e="4";R+="-"+X.options[X.selectedIndex].value+"-01";}else{e="6";R+="-01-01";}R+=" 00:00:00";}else{var U=_ge(t+"date_taken_exact");var c=_ge(t+"time_taken_exact");var l=U.value.split("/");e="0";R=l[2]+"-"+l[0]+"-"+l[1]+" "+c.value;if(L>0){var q=F.convert_MYSQLDateTime_into_unix_time_stamp(R);q=q+L;R=F.convert_unix_time_stamp_into_MYSQLDateTime(q);}}return {date_posted:S,date_taken:R,date_taken_granularity:e};};F.remove_el=function(R,c,u){if(!R){if(F.remove_el.caller==null){alert("F.remove_el was called from the top!");}else{alert("F.remove_el caller was "+F.remove_el.caller);}}if(!R){return ;}if(u){F.drag_unreg(R);}for(var U=F._ebA.length-1;U>=0;U--){F._ebA[U].eb_remove(R);}c=(c)?c:R.parentNode;c.removeChild(R);};F.drag_unreg=function(c){if(c.fumb_target){c.fumb_target.unreg();}if(c.fumb_drag){c.fumb_drag.unreg();}if(c.tree_coll_target){c.tree_coll_target.unreg();}if(c.tree_coll_drag){c.tree_coll_drag.unreg();}if(c.tree_set_target){c.tree_set_target.unreg();}if(c.tree_set_drag){c.tree_set_drag.unreg();}if(c.wallie_photo_drag){c.wallie_photo_drag.unreg();}if(c.wallie_photo_target){c.wallie_photo_target.unreg();}if(c.wallie_text_drag){c.wallie_text_drag.unreg();}if(c.wallie_text_target){c.wallie_text_target.unreg();}if(c.set_photo_drag){c.set_photo_drag.unreg();}if(c.set_photo_target){c.set_photo_target.unreg();}if(c.set_div_drag){c.set_div_drag.unreg();}if(c.set_div_target){c.set_div_target.unreg();}if(c.dot_drag){c.dot_drag.unreg();}if(c.dot_target){c.dot_target.unreg();}if(c.pinwin_thumb_drag){c.pinwin_thumb_drag.unreg();}if(c.pinwin_thumb_target){c.pinwin_thumb_target.unreg();}if(c.batch_photo_drag){c.batch_photo_drag.unreg();}if(c.batch_photo_target){c.batch_photo_target.unreg();}if(c.group_photo_drag){c.group_photo_drag.unreg();}if(c.group_photo_target){c.group_photo_target.unreg();}for(var U=c.childNodes.length-1;U>=0;U--){var R=c.childNodes[U];F.drag_unreg(R);}};F.decorate=function(c,e,U,R){if(!e){return ;}if(!c){return ;}if(!c.id&&!U){writeDebug("decorated els must have ids!");return ;}if(R){writeAPIDebug("F.decorate called, passed obj:");writeAPIDebug(_uber_toString(e));}if(typeof e._decotype=="object"){F.decorate(c,e._decotype);}for(p in e){if(p=="_decotype"){continue;}try{c[p]=e[p];}catch(u){break;}}if(c.id){if(this._decoratedO[c.id]){}else{this._decoratedO[c.id]=[];}this._decoratedO[c.id].push(c);}return c;};F.changes_were_made=function(){this.changes_count=1;};F.changes_were_saved=function(){this.changes_count=0;};F.make_one_photo_edit_pop=function(){var U=document.createElement("div");U.id="one_photo_edit_pop";document.body.appendChild(U);F.decorate(U,F._one_photo_edit_pop).pop_go_go_go();return U;};F.make_batch_edit_pop=function(R,U){var c=document.createElement("div");c.id="batch_edit_pop";document.body.appendChild(c);F.decorate(c,F._batch_edit_pop).pop_go_go_go(R,U);return c;};F.make_shadow=function(c,q,u,R){var U=(u)?u:document.body;var e=document.createElement("div");e.id=c+"_shadow";if(R&&R.parentNode==u){U.insertBefore(e,R);}else{U.appendChild(e);}F.decorate(e,F._shadow).shadow_go_go_go(c,q,U);return e;};_uber_toString=function(U,E,t,R){var U=(U)?U:window;var E=(E)?E:1;var t=(t)?t:20;var R=(R)?R:(U.id)?U.id+".":(U.api_key)?"params.":"root.";var A=[];var l="";for(var u=0;u<E;u++){l+="\t";}if(E==1){_uber_toString._handled_Os_and_As=[U];A.push("{\n");}for(pr in U){try{var L=typeof U[pr];if(typeof U[pr]=="object"){L="object";if(U[pr]==null){L="null";}else{if(U[pr].length!=undefined){L="array ("+U[pr].length+")";}}}if(U[pr]==_uber_toString){continue;}if(typeof U=="object"&&U!=null&&U.length!=undefined&&typeof U[pr]=="function"){continue;}A.push(l+R+pr+":"+L);if(L=="null"){A.push(": null\n");}else{if(typeof U[pr]=="object"){if(U[pr].length!=undefined){A.push(" : [");var c="]\n";}else{A.push(" : {");var c="}\n";}if(F.array_index_of(_uber_toString._handled_Os_and_As,U[pr])>-1){A.push("already been iterated over");}else{if(E>t){A.push(E+" is too deep ("+t+" is max)");}else{if(pr=="F"){A.push("F (Flickr) is not iterated over");}else{if(pr=="_decoratedO"){A.push("_decoratedO is not iterated over");}else{if(pr=="_ebA"){A.push("_ebA is not iterated over");}else{if(pr=="_eb_listeners"){A.push("_eb_listeners is not iterated over");}else{if(pr=="childNodes"){A.push("childNodes is not iterated over");}else{if(pr=="previousSibling"){A.push("previousSibling is not iterated over");}else{if(pr=="nextSibling"){A.push("nextSibling is not iterated over");}else{if(pr=="firstChild"){A.push("firstChild is not iterated over");}else{if(pr=="lastChild"){A.push("lastChild is not iterated over");}else{if(pr=="parentNode"){A.push("parentNode is not iterated over");}else{if(pr=="offsetParent"){A.push("offsetParent is not iterated over");}else{if(pr=="stvyle"){A.push("style is not iterated over");}else{if(pr=="attributes"){A.push("attributes is not iterated over");}else{if(pr=="ownerDocument"){A.push("ownerDocument is not iterated over");}else{_uber_toString._handled_Os_and_As.push(U[pr]);A.push("\n"+_uber_toString(U[pr],E+1,t,R+pr+".")+l);}}}}}}}}}}}}}}}}A.push(c);}else{if(typeof U[pr]=="function"){A.push(" "+U[pr].toString().split("\n")[0].replace("function ","").replace(" {","")+"\n");}else{if(typeof U[pr]=="string"){if(pr=="innerHTML"){A.push(": \""+pr+"\"\n");}else{if(pr=="textContent"){A.push(": \""+pr+"\"\n");}else{A.push(": \""+U[pr].replace("\"","\\\"")+"\"\n");}}}else{A.push(": "+U[pr]+"\n");}}}}}catch(q){writeDebug("OI! "+q.message);A.push(l+R+pr+": BARF OUT "+q.message+"\n");continue;}}if(E==1){A.push("}\n");}return A.join("");};var _ok_for_swf=function(){if(actualVersion<6){return false;}return true;var U=navigator.userAgent;if(navigator.appVersion.toLowerCase().indexOf("mac")>0){if(U.indexOf("Gecko")==-1){return false;}}else{if(U.indexOf("MSIE 5.6")>0||U.indexOf("MSIE 5.5")>0||U.indexOf("MSIE 6")>0||U.indexOf("MSIE 7")>0){}else{if(U.indexOf("Gecko")==-1){return false;}}}return true;};var _ok_for_scrumjax_xml=function(){if(global_fakeOperaXMLHttpRequestSupport){return false;}return _ok_for_scrumjax();};var _ok_for_scrumjax=function(){if(!window.XMLHttpRequest){return false;}if(navigator.appVersion.toLowerCase().indexOf("mac")>0&&navigator.userAgent.indexOf("MSIE")>0&&navigator.userAgent.indexOf("Opera")==-1){return false;}return true;};var _disable_select=function(){document.onselectstart=new Function("return false");};var _enable_select=function(){document.onselectstart=new Function("return true");};var _limit_textarea=function(R,U){if(R.value.length>U){R.value=R.value.substring(0,U);}};var _el_is_in_a_link=function(U){var R=U;while(R){if(R.href){return 1;}R=R.parentNode;}return 0;};var _get_event_src=function(U){if(U&&U.target){return U.target;}if(U&&U.srcElement){return U.srcElement;}if(window.event){return window.event.srcElement;}return null;};var _get_event_keycode=function(U){if(U){return U.keyCode;}if(window.event){return window.event.keyCode;}return null;};var _keys={TAB:9,ENTER:13,RIGHTARROW:39,DOWNARROW:40,UPARROW:38,BACKSPACE:8,CTRL:17,ESCAPE:27};var _hitch=function(R,U){return function(){return R[U].apply(R,arguments);};};myPos={getPos:function(U){return [this.getX(U),this.getY(U)];},getY:function(U){return Y.U.Dom.getY(U);},getX:function(U){return Y.U.Dom.getX(U);}};var _find_screen_height=function(){if(window.innerHeight){return window.innerHeight;}else{if(document.documentElement.clientHeight){return document.documentElement.clientHeight;}else{if(document.body.clientHeight){return document.body.clientHeight;}}}};var _find_screen_width=function(){if(window.innerWidth){return window.innerWidth;}else{if(document.documentElement.clientWidth){return document.documentElement.clientWidth;}else{if(document.body.clientWidth){return document.body.clientWidth;}}}};var _hyperlink=function(c,S,U,l){if(!U){U=" ";}if(l==undefined){l="<br />";}if(!S){S="";}S=S.replace(" ",U);if(c.indexOf("http://")>-1){var e=c.split("\n");for(var E=0;E<e.length;E++){var u=e[E].split(" ");for(var A=0;A<u.length;A++){var P="";if(u[A].substr(0,1)=="("){u[A]=u[A].replace("(","");P="(";}if(u[A].substr(0,7)=="http://"){var R=u[A];var L="";if(R.substr(R.length-1,1)==")"){R=R.substr(0,R.length-1);L=")";}var q="";if(R.substr(R.length-1,1)=="."){R=R.substr(0,R.length-1);q=".";}u[A]=("<a href=\""+R+"\" onclick=\""+S+"\">"+R+"</a>"+L+q).replace(" ",U);}u[A]=P+u[A];}e[E]=u.join(" ");}c=e.join(l+"\n");}return c;};var global_js_tip_count=0;F.get_tip_html=function(u,e,U,c){if(u.length==0){return "";}U=(U==undefined)?"Tip":U;var R="<span style=\"display: none;\" id=\""+e+"\">"+u+"</span>";if(!c){R+="<span class=\""+U+"\">[<a href=\"#\" onclick=\"this.blur(); show_tooltip(this, '"+e+"', "+u.length+"); return false;\">?</a>]</span>";}return R;};F.handle_mouse_tip_mouseover=function(U){this.tip_mouse_is_over=1;show_tooltip(this,this.tip_id,0,"","ToolTipSmall");};F.handle_mouse_tip_mouseout=function(U){this.tip_mouse_is_over=0;hide_tooltip();};F.change_mouse_tip_txt=function(U,u){var c="mouse_tip_div_"+U.id;var e=_ge(c);if(e&&u){var R=F.get_tip_html(u,U.tip_id,"tip_mouse",1);e.innerHTML=R;if(U.tip_mouse_is_over){hide_tooltip();show_tooltip(U,U.tip_id,0,"","ToolTipSmall");}}};F.make_new_mouse_tip=function(U,u){var e=U.title;if(!e){e="no title found on el";return ;}U.title="";U.alt="";var c="mouse_tip_div_"+U.id;var q=_ge(c);if(!q){global_js_tip_count++;U.tip_id="js_tooltip_"+global_js_tip_count;U.tip_placement=u;var R=F.get_tip_html(e,U.tip_id,"tip_mouse",1);var q=document.createElement("DIV");q.id=c;q.innerHTML=R;document.body.insertBefore(q,document.body.childNodes[0]);q.tip_id=U.tip_id;}Y.U.Event.addListener(U,"mouseover",F.handle_mouse_tip_mouseover);Y.U.Event.addListener(U,"mouseout",F.handle_mouse_tip_mouseout);};var _set_cookie=function(c,e,E,u){var U="";if(E){var R=new Date();R.setTime(R.getTime()+(E*24*60*60*1000));U="; expires="+R.toUTCString();}u=u||".flickr.com";var q=c+"="+escape(e)+U+"; path=/; domain="+u;document.cookie=q;writeDebug("cookie set: "+q);};var _get_cookie=function(R){var e=R+"=";var U=document.cookie.split(";");for(var u=0;u<U.length;u++){var q=U[u];while(q.charAt(0)==" "){q=q.substring(1,q.length);}if(q.indexOf(e)==0){if(R!="js_dbg"){writeDebug(q);}return unescape(q.substring(e.length,q.length));}}return null;};var _delete_cookie=function(U){_set_cookie(U,"",-1);};var _rebuild_tags_for_photos=function(R,L){if(global_photos[R]==undefined){return ;}global_photos[R].tagsA=[];global_photos[R].tags_rawA=[];global_photos[R].tags_idA=[];global_photos[R].tags_canDeleteA=[];for(var E=0;E<L.length;E++){var c=L[E];var l=c.firstChild.nodeValue;var q=c.getAttribute("raw");var u=c.getAttribute("id");var e=c.getAttribute("author");var U=(global_photos[R].isOwner||global_nsid==e)?true:false;global_photos[R].tagsA.push(l);global_photos[R].tags_rawA.push(q);global_photos[R].tags_idA.push(u);global_photos[R].tags_canDeleteA.push(U);}};var global_single_shadow_div;var _make_single_shadow=function(q,R,c,U,e){if(q==undefined){q=document.createElement("div");q.style.position="absolute";q.style.top="0px";q.style.left="0px";document.body.appendChild(q);}window.global_single_shadow_height_plus=(R==undefined)?(12-24):R;window.global_single_shadow_width_plus=(c==undefined)?(12-24):c;window.global_single_shadow_x_plus=(U==undefined)?(-3):U;window.global_single_shadow_y_plus=(e==undefined)?(-3):e;var u="";u+="<table class=\"shadow_table\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"padding:0px;\">";u+="<tr><td width=\"11\"><img class=\"trans_png\" width=\"11\" height=\"11\" src=\""+_images_root+"/tc_white_shadow_tl.png\"></td><td id=\"shadow_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>";u+="<tr><td height=\"30\" id=\"shadow_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>";u+="<tr><td><img class=\"trans_png\" width=\"11\" height=\"11\" src=\""+_images_root+"/tc_white_shadow_bl.png\"></td><td><img id=\"shadow_width_controller2\" 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>";q.innerHTML=u;q.style.zIndex="999";q.style.display="none";q.id="shadow_div";window._set_single_shadow_x=function(E){q.style.marginLeft=(E+global_single_shadow_x_plus)+"px";};window._set_single_shadow_y=function(E){q.style.marginTop=(E+global_single_shadow_y_plus)+"px";};window._set_single_shadow_height=function(L){var E=_ge("shadow_height_controller");if(!E){return ;}var l=((L.offsetHeight)+global_single_shadow_height_plus);if(l<0){l=0;}E.style.height=l+"px";};window._set_single_shadow_width=function(l){var L=_ge("shadow_width_controller");var E=_ge("shadow_width_controller2");if(!L){return ;}var A=((l.offsetWidth)+global_single_shadow_width_plus);if(A<0){A=0;}L.style.width=E.style.width=A+"px";};window.global_single_shadow_div=q;};F.modal_blocker={show:function(){var U=_ge("global_modal_blocker");if(!U){U=document.createElement("DIV");U.id="global_modal_blocker";U.style.zIndex=10009;U.style.position="absolute";U.style.backgroundColor="#999";U.style.opacity=".7";U.style.filter="alpha(opacity=70)";U.style.width="100%";U.style.height="100%";document.body.appendChild(U);}this.place();Y.U.Event.addListener(window,"resize",F.modal_blocker.place,this,true);Y.U.Event.addListener(window,"scroll",F.modal_blocker.place_after_scroll,this,true);U.style.display="block";},place_after_scroll:function(){if(this.place_tim){clearTimeout(this.place_tim);}var U=this;this.place_tim=setTimeout(function(){U.place();},100);},place:function(){var c=_ge("global_modal_blocker");if(!c){return ;}if(window.innerWidth){var U=window.pageXOffset;var R=window.pageYOffset;}else{var U=document.body.scrollLeft;var R=document.body.scrollTop;}c.style.top=R+"px";c.style.left=U+"px";},hide:function(){Y.U.Event.removeListener(window,"resize",F.modal_blocker.place);Y.U.Event.removeListener(window,"scroll",F.modal_blocker.place_after_scroll);var U=_ge("global_modal_blocker");if(!U){return ;}U.style.display="none";}};var global_comm_div;var _make_comm_div=function(c){var R=_ge("comm_div");if(!R){R=document.createElement("DIV");R.id="comm_div";R.style.left=0;R.style.top=0;document.body.appendChild(R);R.modal_blocker=document.createElement("DIV");R.modal_blocker.id="modal_blocker";R.modal_blocker.style.position="absolute";R.modal_blocker.style.top=0;R.modal_blocker.default_style={};R.modal_blocker.style.backgroundColor=R.modal_blocker.default_style.backgroundColor="#999";R.modal_blocker.style.opacity=R.modal_blocker.default_style.opacity=".5";R.modal_blocker.style.filter=R.modal_blocker.default_style.filter="alpha(opacity=50)";document.body.appendChild(R.modal_blocker);}var U=""+"<table id=\"comm_table\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:200px; padding:0px;\">"+"<tr>"+"<td width=\"3\"><img width=\"3\" height=\"3\" src=\""+_images_root+"/tc_white_tl.gif\"></td>"+"<td class=\"td_white\"></td>"+"<td class=\"td_white\"></td>"+"<td width=\"3\"><img width=\"3\" height=\"3\" src=\""+_images_root+"/tc_white_tr.gif\"></td>"+"</tr>"+"<tr>"+"<td class=\"td_white\"></td>"+"<td class=\"td_white\" style=\"padding:3px 0px 0px 0px\" width=\"1\" valign=\"top\"><img id=\"comm_pulser_img\" src=\""+_images_root+"/pulser2.gif\" width=\"32\" height=\"15\" border=\"0\"></td>"+"<td class=\"td_white\" style=\"padding:3px; font-size:12px;\" id=\"comm_td\">"+"<div id=\"comm_msg_div\"></div>"+"<div id=\"comm_form_div\" style=\"display:none;\"></div>"+"<div id=\"comm_progress_bar_div_wrapper\" style=\"display:none; border:1px solid black; margin-top:10px;\">"+"<div id=\"comm_progress_bar_div_inner\" style=\"width:300px; height:15px\">"+"<div id=\"comm_progress_bar_div\" style=\"height:100%; width:0%; background-color:#FF0084\"></div>"+"</div>"+"</div>"+"</td>"+"<td class=\"td_white\"></td>"+"</tr>"+"<tr id=\"comm_button_tr\">"+"<td class=\"td_white\"></td>"+"<td class=\"td_white\"></td>"+"<td class=\"td_white\" style=\"padding:3px\">"+"<form>"+"<nobr><input id=\"comm_button_ok\" type=\"button\" class=\"Butt\" value=\"OK\" onclick=\"this.onclick_func();\" style=\"margin:5px 5px 0 0;\">"+"<input id=\"comm_button_cancel\" type=\"button\" class=\"CancelButt\" value=\""+F.output.get("cancel")+"\" onclick=\"this.onclick_func();\" style=\"margin:5px 5px 0 0;\"></nobr>"+"</form>"+"</td>"+"<td class=\"td_white\"></td>"+"</tr>"+"<tr>"+"<td><img width=\"3\" height=\"3\" src=\""+_images_root+"/tc_white_bl.gif\"></td>"+"<td class=\"td_white\"></td>"+"<td class=\"td_white\"></td>"+"<td><img width=\"3\" height=\"3\" src=\""+_images_root+"/tc_white_br.gif\"></td>"+"</tr>"+"</table>";R.innerHTML=U;R.button_tr=_ge("comm_button_tr");R.pulser_img=_ge("comm_pulser_img");R.button_ok=_ge("comm_button_ok");R.button_cancel=_ge("comm_button_cancel");R.button_ok.onclick_func=function(){R.stop_comming();this.blur();if(typeof this.onclick_plus=="function"){this.onclick_plus();}if(typeof this.onclick_do=="function"){this.onclick_do();}};R.button_cancel.onclick_func=function(){R.stop_comming();this.blur();if(typeof this.onclick_plus=="function"){this.onclick_plus();}if(typeof this.onclick_do=="function"){this.onclick_do();}};R.table=_ge("comm_table");R.comm_msg_div=_ge("comm_msg_div");R.comm_form_div=_ge("comm_form_div");R.comm_progress_bar_div_wrapper=_ge("comm_progress_bar_div_wrapper");R.style.zIndex=c;R.style.display="none";if(R.modal_blocker){R.modal_blocker.style.zIndex=998;R.modal_blocker.style.display="none";}R.stop_comming=function(){if(this.modal_blocker){R.modal_blocker.style.zIndex=998;this.modal_blocker.style.display="none";}this.style.display="none";global_single_shadow_div.style.display="none";R.comm_form_div.style.display="none";R.comm_progress_bar_div_wrapper.style.display="none";_ge("comm_progress_bar_div").style.width=0;this.comming=0;};R.change_comming_msg=function(L,q,u,E){if(!L){return ;}this.comm_msg_div.innerHTML=L;var e=Math.ceil(q*_ge("comm_progress_bar_div_inner").offsetWidth);anim_do_width_to(_ge("comm_progress_bar_div"),8,30,e,"linearTween",u,E);_set_single_shadow_height(this.table);_set_single_shadow_width(this.table);};R.get_rid_of_form=function(){if(!R.comm_form_div.childNodes[0]){return ;}var u=R.comm_form_div.childNodes[0];u.style.display="none";if(u.old_parentNode){u.old_parentNode.appendChild(F.prepare_for_insertion(u));}else{F.remove_el(u,R.comm_form_div);}R.comm_form_div.style.display="none";};R.start_comming=function(E,A,g,M,u,l,b,P,X,j,e,r,q){var W=(E!="NOTHING AT ALL");var B=(!E)?F.output.get("global_working"):E;this.comm_msg_div.innerHTML=B;R.comm_form_div.style.display="none";if(e){R.get_rid_of_form();R.comm_form_div.style.display="block";e.style.display="block";if(e.old_parentNode!=R.comm_form_div){e.old_parentNode=e.parentNode;}R.comm_form_div.appendChild(F.prepare_for_insertion(e));}R.comm_progress_bar_div_wrapper.style.display="none";if(q){R.comm_progress_bar_div_wrapper.style.display="block";}this.pulser_img.style.display=(M)?"none":"inline";if(u||P){this.button_tr.style.display=(F.is_ie)?"block":"table-row";this.button_ok.value=(l)?l.toUpperCase():F.output.get("ok");this.button_tr.style.display=(F.is_ie)?"block":"table-row";this.button_ok.onclick_do=(typeof b=="function")?b:null;this.button_ok.style.visibility=(u)?"visible":"hidden";this.button_ok.style.display=(u)?"inline":"none";this.button_cancel.value=(X)?X.toUpperCase():F.output.get("cancel");this.button_cancel.onclick_do=(typeof j=="function")?j:null;this.button_cancel.style.visibility=(P)?"visible":"hidden";this.button_tr.style.display=(F.is_ie)?"block":"table-row";_ge("comm_table").style.width="312px";}else{this.button_tr.style.display="none";_ge("comm_table").style.width="200px";}if(W){this.style.visibility="visible";global_single_shadow_div.style.visibility="visible";}else{this.style.visibility="hidden";global_single_shadow_div.style.visibility="hidden";}this.style.display="block";if(r&&this.modal_blocker){this.modal_blocker.style.display="block";this.modal_blocker.style.backgroundColor=(r.backgroundColor)?r.backgroundColor:R.modal_blocker.default_style.backgroundColor;this.modal_blocker.style.opacity=(r.opacity)?r.opacity:R.modal_blocker.default_style.opacity;this.modal_blocker.style.filter=(r.filter)?r.filter:R.modal_blocker.default_style.filter;}if(window.innerWidth){var Q=window.innerWidth;var L=window.innerHeight;var S=window.pageXOffset;var t=window.pageYOffset;}else{var Q=document.body.clientWidth;var L=document.body.clientHeight;var S=document.body.scrollLeft;var t=document.body.scrollTop;}var k=function(){var y=S+_pi((Q-_pi(global_comm_div.table.offsetWidth))/2);return y;};var K=function(){var x=t+_pi((L-global_comm_div.table.offsetHeight)/2);return x;};var J=(typeof A=="function")?A():(typeof A=="number")?A:k();var C=(typeof g=="function")?g():(typeof g=="number")?g:K();this.style.marginLeft=J+"px";this.style.marginTop=C+"px";if(r&&this.modal_blocker){if(r.loc_style){this.modal_blocker.style.top=r.loc_style.top+"px";this.modal_blocker.style.left=r.loc_style.left+"px";this.modal_blocker.style.width=r.loc_style.width+"px";this.modal_blocker.style.height=r.loc_style.height+"px";}else{this.modal_blocker.style.top=t+"px";this.modal_blocker.style.left=S+"px";this.modal_blocker.style.width=Q+"px";this.modal_blocker.style.height=L+"px";}}_set_single_shadow_x(J);_set_single_shadow_y(C);_set_single_shadow_height(this.table);_set_single_shadow_width(this.table);global_single_shadow_div.style.display="block";if(W&&u&&navigator.userAgent.indexOf("KHTML")==-1){this.button_ok.focus();}this.comming=1;};window.global_comm_div=R;if(!global_single_shadow_div){_make_single_shadow(_ge("shadow_div"));}return global_comm_div;};F._window_onload_dom=function(){if(F.onload_dom_timer){clearInterval(F.onload_dom_timer);}F._window_onload_dom=function(){};F.eb_broadcast("window_onload_dom");};F._window_onload=function(U){if(F._window_onload_dom){F._window_onload_dom();}F.eb_broadcast("window_onload",U);};F._window_onresize=function(){F.eb_broadcast("window_onresize");};window.onbeforeunload=function(){F.eb_broadcast("window_onbeforeunload",F.changes_count);var U=(window.page_onbeforeunload_msg)?window.page_onbeforeunload_msg:F.output.get("global_unsaved");if(F.changes_count){return U;}};F._window_onblur=function(){window.blurred=1;};F._window_onfocus=function(){window.blurred=0;};F._window_onunload=function(){F.eb_broadcast("window_unload");for(var R=F._ebA.length-1;R>=0;R--){var U=F._ebA[R];U.eb_remove_all();}F._ebA=[];F._decoratedO={};};function _change_privacy(R){var U=_ge("is_private_"+R).checked;_ge("is_friend_"+R).disabled=!U;_ge("is_family_"+R).disabled=!U;}function _get_qs_args(){var R={};var e=location.search.substring(1).split("&");for(var c=0;c<e.length;c++){var q=e[c].indexOf("=");if(q!=-1){var U=e[c].substring(0,q);var u=e[c].substring(q+1);R[U]=unescape(u);}}return R;}var _qs_args=_get_qs_args();var promos_show=function(R){var e=_ge(R);var c=_ge(R+"_promo_div");var U=_ge(R+"_removed_div");if(!c){return ;}var u=R.replace("promo_","promos_hide_");var q={};q[u]=0;c.flickr_prefs_setPrefs_onLoad=function(){};F.API.callMethod("flickr.prefs.setPrefs",q,c);c.style.visibility="visible";U.style.display="none";};var promos_remove=function(R){var e=_ge(R);var c=_ge(R+"_promo_div");var U=_ge(R+"_removed_div");if(!c){return ;}var u=R.replace("promo_","promos_hide_");var q={};q[u]=1;c.flickr_prefs_setPrefs_onLoad=function(){};F.API.callMethod("flickr.prefs.setPrefs",q,c);c.style.visibility="hidden";U.style.display="block";e.style.backgroundColor="#FFFFFF";setTimeout("anim_do_pink_fade(_ge(\""+e.id+"\"))",300);};function _privacy_specific_change(u,q){u=(u)?u:"";var c=_ge(u+"is_private").checked;var R=_ge(u+"is_friend").checked;var U=_ge(u+"is_family").checked;var e=!c;_ge(u+"is_friend").disabled=!c;_ge(u+"is_family").disabled=!c;_ge(u+"is_friend_label").style.color=c?"black":"silver";_ge(u+"is_family_label").style.color=c?"black":"silver";if(c){if(R||U){_privacy_check_boxes(u+"perm_comment",false,false,true,true);_privacy_check_boxes(u+"perm_addmeta",false,false,true,true);}else{_privacy_check_boxes(u+"perm_comment",false,true,true,true);_privacy_check_boxes(u+"perm_addmeta",false,true,true,true);}}else{_privacy_check_boxes(u+"perm_comment",false,false,false,false);_privacy_check_boxes(u+"perm_addmeta",false,false,false,false);}if(!q&&(previous_public!=e||previous_friend!=R||previous_family!=U)){_privacy_try_and_check(u+"perm_comment",1);_privacy_try_and_check(u+"perm_addmeta",2);previous_public=e;previous_friend=R;previous_family=U;}}function _privacy_default_change(){var c=_ge("is_private").checked;var R=_ge("is_friend").checked;var U=_ge("is_family").checked;var u=!c;_ge("is_friend").disabled=!c;_ge("is_family").disabled=!c;_ge("is_friend_label").style.color=c?"black":"silver";_ge("is_family_label").style.color=c?"black":"silver";_ge("perm_addmeta_disclaim").style.display=c?"block":"none";_ge("perm_comment_disclaim").style.display=c?"block":"none";if(c){if(R||U){_privacy_check_boxes("perm_comment",false,false,false,false);_privacy_check_boxes("perm_addmeta",false,false,false,false);}else{_privacy_check_boxes("perm_comment",false,false,false,false);_privacy_check_boxes("perm_addmeta",false,false,false,false);}}else{_privacy_check_boxes("perm_comment",false,false,false,false);_privacy_check_boxes("perm_addmeta",false,false,false,false);}}function _privacy_check_boxes(e,u,R,L,E){_ge(e+"_4").disabled=u;_ge(e+"_3").disabled=R;_ge(e+"_2").disabled=L;_ge(e+"_1").disabled=E;_ge(e+"_4_label").style.color=u?"silver":"black";_ge(e+"_3_label").style.color=R?"silver":"black";_ge(e+"_2_label").style.color=L?"silver":"black";_ge(e+"_1_label").style.color=E?"silver":"black";var U=false;for(var q=4;q>=1;q--){if(_ge(e+"_"+q).checked&&!_ge(e+"_"+q).disabled){return ;}}for(var q=1;q<=4;q++){if(!_ge(e+"_"+q).disabled){_ge(e+"_"+q).checked=true;return ;}}}function _privacy_try_and_check(U,c){for(var R=c;R<=4;R++){if(!_ge(U+"_"+R).disabled){_ge(U+"_"+R).checked=true;return ;}}}function _privacy_show_more(){_ge("morerow").style.display="none";_ge("lessrow").style.display=(F.is_ie)?"block":"table-row";_ge("detailrow").style.display=(F.is_ie)?"block":"table-row";}function _privacy_show_less(){_ge("morerow").style.display=(F.is_ie)?"block":"table-row";_ge("lessrow").style.display="none";_ge("detailrow").style.display="none";}F.one_photo_edit_start=function(R){var U=_ge("one_photo_edit_pop");if(!U){U=F.make_one_photo_edit_pop();}U.pop_show_start(R);};F.hide_featured_model=function(){var R=_ge("cfad");var U=0;anim_do_height_to(R,15,30,U,"easeOutQuad",function(){_ge("cfad_hide_link_p").style.display="none";_ge("cfad_show_link_p").style.display="block";R.style.display="none";F.API.callMethod("flickr.prefs.setPrefs",{promos_hide_featured_model:1},{flickr_prefs_setPrefs_onLoad:function(){}});},[]);};F.show_featured_model=function(){var R=_ge("cfad_iframe");var c=_ge("cfad");if(F.is_ie||F.is_safari){c.style.height="1px";c.style.display="block";_ge("cfad_hide_link_p").style.display="block";_ge("cfad_show_link_p").style.display="none";}else{c.style.height="0px";c.style.display="block";}if(R.src=="javascript:void(0)"&&R.getAttribute("use_src")&&R.getAttribute("use_src")!=""){if(!F.is_ie&&!F.is_safari){_ge("cfad_hide_link_p").style.display="block";_ge("cfad_show_link_p").style.display="none";R.onload=function(){F.show_featured_model();};}R.src=R.getAttribute("use_src");if(!F.is_ie&&!F.is_safari){return ;}}var U=R.height;anim_do_height_to(c,15,30,U,"easeOutQuad",function(){F.API.callMethod("flickr.prefs.setPrefs",{promos_hide_featured_model:0},{flickr_prefs_setPrefs_onLoad:function(){}});},[]);};F._photo_vanisher={remove_photo:function(R,U,c){if(this.already_removing==undefined){this.already_removing=false;}F.eb_broadcast("stewart_pause");if(this.already_removing){return ;}if(window.confirm(F.output.get("global_sure"))){if(_ge("sv_title_"+R)&&_ge("sv_body_"+R)){this.already_removing=true;this.vanish_photo(R);}else{location.href=U+"?delete="+R+"&"+c;this.already_removing=false;}}else{F.eb_broadcast("stewart_play_if_was_playing");}},vanish_photo:function(U){after_fade=function(){_ge("sv_title_"+U).style.display="none";_ge("sv_body_"+U).style.display="none";var R=_ge("stewart_swf"+U+"_div");if(R){R.parentNode.removeChild(R);}F.eb_broadcast("stewart_play_if_was_playing");};anim_do_opacity_to(_ge("sv_title_"+U),50,20,0,"easeOutQuad",after_fade);anim_do_opacity_to(_ge("sv_body_"+U),50,20,0,"easeOutQuad",after_fade);F._photo_vanisher.api_remove_photo(U);},api_remove_photo:function(U){var R={flickr_photos_delete_onLoad:function(E,q,u,e){if(!E){alert(F.output.get("global_sorry"));F._photo_vanisher.un_vanish_photo(e.photo_id);}}};var c=new Object();c.photo_id=U;F.API.callMethod("flickr.photos.delete",c,R,null,null,0);this.already_removing=false;},un_vanish_photo:function(U){if(_ge("sv_title_"+U)&&_ge("sv_title_"+U)){_ge("sv_title_"+U).style.display="block";_ge("sv_body_"+U).style.display="block";anim_do_opacity_to(_ge("sv_title_"+U),50,20,100,"easeInQuad");anim_do_opacity_to(_ge("sv_body_"+U),50,20,100,"easeInQuad");}this.already_removing=false;}};F.possess=function(U){if(window.global_intl_lang&&global_intl_lang!="en-us"){return U;}if(U.substr(U.length-1,1).toLowerCase()=="s"){return U+"'";}else{return U+"'s";}};var how_many_are_this_size=function(U,E){var q=0;var R=0;for(var e in print_photos){R++;var u=print_photos[e];q+=(Math.max(u.o_w,u.o_h)>=Math.max(U,E)&&Math.min(u.o_w,u.o_h)>=Math.min(U,E));}if(q==0){txt=" "+F.output.get("setprint_no_photos_large_enough");}else{if(q==R){txt=" "+F.output.get("setprint_all_photos_large_enough");}else{txt=" "+F.output.get("setprint_x_of_y_large_enough",q,R);}}return txt;};