var snaggit=3;var undefined;var YMAPPID="flickrMappr";if(!Function.prototype.call){Function.prototype.call=function(A,R){A.base=this;A.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(N){var j=((YYYY=this.getFullYear())+"").substr(2,2);var v=this.getMonth()+1;var b=(v)<10?"0"+v:v;var B=F.output.date_strs.monthsA[v-1];var T=F.output.date_strs.months_abbA[v-1];var X=this.getDate();var S=X<10?"0"+X:X;var g=F.output.date_strs.days_abbA[v-1];var c=F.output.date_strs.daysA[v-1];var R=X%10;var u="";if(global_intl_lang=="en-us"){u=(X>=10&&X<=20)?"th":(R==1)?"st":(R==2)?"nd":(R==3)?"rd":"th";}if(global_intl_lang=="fr-fr"){if(X==1){u="er";}}if(global_intl_lang=="pt-br"){if(X==1){u="&#186;";}}if(global_intl_lang=="de-de"){if(X==1){u=".";}}N=N.replace("#YYYY#",YYYY);N=N.replace("#YY#",j);N=N.replace("#MMMM#",B);N=N.replace("#MMM#",T);N=N.replace("#MM#",b);N=N.replace("#M#",v);N=N.replace("#DDDD#",c);N=N.replace("#DDD#",g);N=N.replace("#DD#",S);N=N.replace("#D#",X);N=N.replace("#th#",u);var i=decodeURIComponent("%EB%85%84");var z=decodeURIComponent("%EC%9B%94");var A=decodeURIComponent("%EC%9D%BC");N=N.replace("#KY#",i);N=N.replace("#KM#",z);N=N.replace("#KD#",A);var o=decodeURIComponent("%E5%B9%B4");var E=decodeURIComponent("%E6%9C%88");var H=decodeURIComponent("%E6%97%A5");N=N.replace("#CY#",o);N=N.replace("#CM#",E);N=N.replace("#CD#",H);var k=this.getHours();var V=k;if(V==0){V=24;}if(V>12){V-=12;}var P=(V<10)?"0"+V:V;var L=(k<12)?"am":"pm";var C=this.getMinutes();var n=(C<10)?"0"+C:C;var q=this.getSeconds();var f=(q<10)?"0"+q:q;N=N.replace("#hhh#",k);N=N.replace("#hh#",P);N=N.replace("#h#",V);N=N.replace("#mm#",n);N=N.replace("#m#",C);N=N.replace("#ss#",f);N=N.replace("#s#",q);N=N.replace("#ampm#",L);return N;};Date.prototype.flickr_date=function(){var A="#D##th# #MMMM#, #YYYY#";if(global_intl_lang=="ko-kr"){A="#YYYY##KY# #MMMM##KM# #D##KD#";}if(global_intl_lang=="zh-hk"){A="#YYYY##CY##M##CM##D##CD#";}return this.customFormat(A);};Date.prototype.flickr_minidate=function(){var A="#D# #MMM# #YY#";if(global_intl_lang=="ko-kr"){A="#YY##KY# #M##KM# #D##KD#";}if(global_intl_lang=="zh-hk"){A="#YY##CY##M##CM##D##CD#";}return this.customFormat(A);};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 T=0,A=this.length,R=arguments;for(T;T<R.length;T++){this[A+T]=R[T];}return this.length;};}if(!Array.prototype.pop){Array.prototype.pop=function(){var A=this[this.length-1];this.length--;return A;};}if(!Array.prototype.shift){Array.prototype.shift=function(){var R=this[0];for(var A=0;A<this.length-1;A++){this[A]=this[A+1];}this.length--;return R;};}if(!Array.prototype.unshift){Array.prototype.unshift=function(){this.reverse();for(var A=arguments.length-1;A>=0;A--){this[this.length]=arguments[A];}this.reverse();return this.length;};}if(!Array.prototype.splice){function array_splice(T,R){if(arguments.length==0){return T;}if(typeof T!="number"){T=0;}if(T<0){T=Math.max(0,this.length+T);}if(T>this.length){if(arguments.length>2){T=this.length;}else{return [];}}if(arguments.length<2){R=this.length-T;}R=(typeof R=="number")?Math.max(0,R):0;removeArray=this.slice(T,T+R);endArray=this.slice(T+R);this.length=T;for(var A=2;A<arguments.length;A++){this[this.length]=arguments[A];}for(var A=0;A<endArray.length;A++){this[this.length]=endArray[A];}return removeArray;}Array.prototype.splice=array_splice;}var _numeric_sort_func=function(R,A){return (R-A);};var _alpha_sort_func=function(T,R){var A=String(T).toLowerCase();var E=String(R).toLowerCase();return (A>E)?1:((A<E)?-1:0);};Number.prototype.addZeros=function(A){if(this.toString().length>=A){return this;}return (new Array(A).join("0")+this).substr((new Array(A).join("0")+this).length-A);};Number.prototype.pretty_num=function(){var g=F.output.dec_sep;var R=F.output.thou_sep;var u=this.toString();var N=u.split(".");var P=N[0];var T=(N[1])?g+N[1]:"";if(P.length<4){return u;}var A="";for(var E=P.length-1;E>-1;E--){if(E<P.length-1&&(P.length-1-E)%3==0){A=R+A;}A=P.charAt(E)+A;}return A+T;};Number.prototype.truncate_geo_value=function(){var A=this.toString();sA=A.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,A){return this.split(R).join(A);};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 A=this;if(A.length>R-3){A=A.substr(0,R-3).trim()+"&hellip;";}return A;};String.prototype.truncate=function(R){var A=this;if(A.length>R){A=A.substr(0,R);}return A;};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(g,T,N){var u="";if(!g){return u;}if(!g.server||!g.secret){u="/images/collection_default_l.gif";}else{var E=Math.ceil(g.server/1000);var N=(N)?N:_photo_root;var A=g.id.split("-");var P=g.server+"/cols/"+A[1]+"_"+g.secret+"_l.jpg";var R=N.replace("http://farm","http://farm"+E);u=R+P;if(p.src_cb){u+="?"+p.src_cb;}}if(T=="s"){u=u.replace("_l.jpg","_s.jpg");}return u;};var _get_photo_src=function(T,R,u){var P="";if(!T||!T.src){return P;}if(!R){R="s";}var E=T.src;if(R!="s"){E=E.replace("_s","_"+R);}E=E.replace("_500.jpg",".jpg");var u=(u)?u:_photo_root;var A=u.replace("http://farm","http://farm"+T.farm);P=A+E;if(T.src_cb){P+="?"+T.src_cb;}return P;};var _construct_user_icon_url=function(P,R){if(P&&P!="0"){var E=Math.ceil(P/1000);var A=_photo_root.replace("http://farm","http://farm"+E);var T=A+P+"/buddyicons/"+R+".jpg";}else{var T=_images_root+"/buddyicon.jpg";}writeDebug(T);return T;};var _upsert_user=function(N){var R=N.getAttribute("nsid");var A=N.getAttribute("username");var c=N.getAttribute("realname");var T=N.getAttribute("iconserver");var E=N.getAttribute("expire");var g=N.getAttribute("dbid");var j=N.getAttribute("email");var q=N.getAttribute("hide_email");var H=N.getElementsByTagName("username");if(H&&H[0]){var P=H[0];var A=(P.firstChild)?P.firstChild.nodeValue:"";}var v=_construct_user_icon_url(T,R);var L=global_users[R];if(!L){L=global_users[R]={id:R,name:A,realname:c,email:j,icon_url:v,hide_email:q};}else{L.id=R;L.name=A;L.realname=c;L.email=j;L.icon_url=v;L.hide_email=L.hide_email;}if(E){L.expire=E;}if(g){L.dbid=g;}return L;};var _get_group_throttle_txt=function(A){var R="";if(A){if(A.throttle_mode=="disabled"){R=F.output.get("pool_uploads_disabled");}else{if(A.throttle_count){R=F.output.get("pool_uploads_throttled_"+A.throttle_mode,A.throttle_count.pretty_num());}else{R="";}}}return R;};var _upsert_group=function(P){var H=P.getAttribute("nsid");if(!H){H=P.getAttribute("id");}var T=P.getAttribute("name");if(!T){T=P.getAttribute("title");}var N=P.getAttribute("iconserver");if(N&&N!="0"){var u=Math.ceil(N/1000);var A=_photo_root.replace("http://farm","http://farm"+u);var R=A+N+"/buddyicons/"+H+".jpg";}else{var R=_images_root+"/buddyicon.jpg";}var E=global_groups[H];if(!E){E=global_groups[H]={id:H,name:T,icon_url:R};}else{E.id=H;E.name=T;E.icon_url=R;}return E;};var _upsert_photo_new=function(P){if(!P){return ;}var T={};if(typeof P.getElementsByTagName!="function"){T.id=P.id;T.server=P.server;T.secret=P.secret;T.title=P.title;T.date_taken=P.datetaken;T.date_taken_granularity=P.datetakengranularity;T.date_upload=P.dateupload;T.latitude=P.latitude;T.longitude=P.longitude;T.accuracy=P.accuracy;T.owner_nsid=P.owner;T.owner_name=P.ownername;T.owner_iconserver=P.iconserver;T.is_public=P.ispublic;T.is_friend=P.isfriend;T.is_family=P.isfamily;T.geo_is_public=P.geoperms.ispublic;}else{T.id=P.getAttribute("id");T.server=P.getAttribute("server");T.secret=P.getAttribute("secret");var c=P.getElementsByTagName("title");if(c&&c[0]){var X=c[0];T.title=(X.firstChild)?X.firstChild.nodeValue:"";var v=P.getElementsByTagName("description")[0];T.description=(v.firstChild)?v.firstChild.nodeValue:"";T.license_id=P.getAttribute("license");T.is_favorite=P.getAttribute("isfavorite");var N=P.getElementsByTagName("visibility")[0];T.is_public=N.getAttribute("ispublic");T.is_friend=N.getAttribute("isfriend");T.is_family=N.getAttribute("isfamily");T.safety_level=N.getAttribute("safety_level");T.content_type=N.getAttribute("content_type");T.is_hidden=N.getAttribute("hidden");T.moderation_mode=N.getAttribute("moderation_mode");var u=P.getElementsByTagName("dates")[0];T.date_taken=u.getAttribute("taken");T.date_taken_granularity=u.getAttribute("takengranularity");T.date_upload=u.getAttribute("posted");T.date_update=u.getAttribute("lastupdate");var E=P.getElementsByTagName("owner")[0];T.owner_nsid=E.getAttribute("nsid");T.owner_name=E.getAttribute("username");T.owner_iconserver=null;var M=P.getElementsByTagName("geoperms");if(M&&M[0]){T.geo_is_public=M[0].getAttribute("ispublic");T.geo_is_friend=M[0].getAttribute("isfriend");T.geo_is_family=M[0].getAttribute("isfamily");T.geo_is_contact=M[0].getAttribute("iscontact");}var H=P.getElementsByTagName("location");if(H&&H[0]){T.latitude=H[0].getAttribute("latitude");T.longitude=H[0].getAttribute("longitude");T.accuracy=H[0].getAttribute("accuracy");}var b=P.getElementsByTagName("permissions");if(b&&b[0]){T.perm_comment=b[0].getAttribute("permcomment");T.perm_addmeta=b[0].getAttribute("permaddmeta");}var b=P.getElementsByTagName("permissions");if(b&&b[0]){T.perm_comment=b[0].getAttribute("permcomment");T.perm_addmeta=b[0].getAttribute("permaddmeta");}var q=P.getElementsByTagName("tag");if(q){_rebuild_tags(T,q);}var j=P.getElementsByTagName("set");if(j&&j.length){T.sets=[];for(var g=0;g<j.length;g++){T.sets.push(j[g].getAttribute("id"));}}var L=P.getElementsByTagName("pool");if(L&&L.length){T.pools=[];for(var g=0;g<L.length;g++){T.pools.push(L[g].getAttribute("id"));if(!global_groups[L[g].getAttribute("id")]){_upsert_group(L[g]);}}}}else{T.title=P.getAttribute("title");T.date_taken=P.getAttribute("datetaken");T.date_taken_granularity=P.getAttribute("datetakengranularity");T.date_upload=P.getAttribute("dateupload");T.latitude=P.getAttribute("latitude");T.longitude=P.getAttribute("longitude");T.accuracy=P.getAttribute("accuracy");T.owner_nsid=P.getAttribute("owner");T.owner_name=P.getAttribute("ownername");T.owner_iconserver=P.getAttribute("iconserver");T.is_public=P.getAttribute("ispublic");T.is_friend=P.getAttribute("isfriend");T.is_family=P.getAttribute("isfamily");}}var R=global_photos[T.id];if(!R){R=global_photos[T.id]={};}T.farm=Math.ceil(T.server/1000);T.src=T.server+"/"+T.id+"_"+T.secret+"_s.jpg";delete T.secret;for(var A in T){if(A=="description"){R[A]=T[A];continue;}if(T[A]!=""&&T[A]!=undefined){R[A]=T[A];}}R.toString=function(){return _uber_toString(this,null,null,"g_p["+this.id+"].");};return R;};var _upsert_photo=function(z){var Z=z.getAttribute("id");var Qm=z.getAttribute("secret");var D=z.getAttribute("server");var b=Math.ceil(D/1000);var f=D+"/"+Z+"_"+Qm+"_s.jpg";var w=z.getAttribute("media");var C=z.getElementsByTagName("title");if(C&&C[0]){var DN=C[0];var a=(DN.firstChild)?DN.firstChild.nodeValue:"";var y8=z.getElementsByTagName("description")[0];var B=(y8.firstChild)?y8.firstChild.nodeValue:"";var o=z.getAttribute("license");var G=z.getAttribute("isfavorite");var H=z.getElementsByTagName("visibility")[0];var c=H.getAttribute("ispublic");var r=H.getAttribute("isfriend");var v=H.getAttribute("isfamily");var u=H.getAttribute("safety_level");var g=H.getAttribute("content_type");var M=H.getAttribute("hidden");var wx=H.getAttribute("moderation_mode");var l=z.getElementsByTagName("geoperms");if(l&&l[0]){var dK=l[0].getAttribute("ispublic");var m=l[0].getAttribute("isfriend");var Jq=l[0].getAttribute("isfamily");var W=l[0].getAttribute("iscontact");}var s=z.getElementsByTagName("dates")[0];var R=s.getAttribute("taken");var k=s.getAttribute("takengranularity");var y=s.getAttribute("posted");var A=s.getAttribute("lastupdate");var P=z.getElementsByTagName("owner")[0];var hV=P.getAttribute("nsid");var U=P.getAttribute("username");var T=null;var J=z.getElementsByTagName("location");if(J&&J[0]){var L=J[0].getAttribute("latitude");var O=J[0].getAttribute("longitude");var i3=J[0].getAttribute("accuracy");}var N=z.getElementsByTagName("permissions");if(N&&N[0]){var Q=N[0].getAttribute("permcomment");var h=N[0].getAttribute("permaddmeta");}var N=z.getElementsByTagName("permissions");if(N&&N[0]){var Q=N[0].getAttribute("permcomment");var h=N[0].getAttribute("permaddmeta");}var n=z.getElementsByTagName("tag");var S=z.getElementsByTagName("set");var V=z.getElementsByTagName("pool");var x=z.getElementsByTagName("video");if(x&&x[0]){var K=x[0].getAttribute("failed");var X=x[0].getAttribute("ready");var e=x[0].getAttribute("duration");var j=x[0].getAttribute("width");var q=x[0].getAttribute("height");}}else{var a=z.getAttribute("title");var R=z.getAttribute("datetaken");var k=z.getAttribute("datetakengranularity");var y=z.getAttribute("dateupload");var L=z.getAttribute("latitude");var O=z.getAttribute("longitude");var i3=z.getAttribute("accuracy");var hV=z.getAttribute("owner");var U=z.getAttribute("ownername");var T=z.getAttribute("iconserver");var c=z.getAttribute("ispublic");var r=z.getAttribute("isfriend");var v=z.getAttribute("isfamily");var tI=z.getAttribute("o_width");var E=z.getAttribute("o_height");var w=z.getAttribute("media");}var I=global_photos[Z];if(!I){I=global_photos[Z]={id:Z,title:a,src:f};}else{I.id=Z;I.title=a;I.src=f;}I.secret=Qm;I.server=D;I.farm=b;I.toString=function(W5,CJ){var W5=(W5)?W5:this;var CJ=(CJ)?CJ:1;var iy="";var Au="";for(var Ei=0;Ei<CJ;Ei++){Au+="\t";}if(CJ==1){iy+="global_photos["+I.id+"] = {\n";}for(pr in W5){if(typeof W5[pr]=="function"){continue;}iy+=Au+pr;if(typeof W5[pr]=="object"){if(W5[pr].length!=undefined){iy+=" = [\n";iy+=I.toString(W5[pr],CJ+1);iy+=Au+"]\n";}else{iy+=" = {\n";iy+=I.toString(W5[pr],CJ+1);iy+=Au+"}\n";}}else{if(typeof W5[pr]=="function"){iy+=": function\n";}else{if(typeof W5[pr]=="string"){iy+=": \""+W5[pr]+"\"\n";}else{iy+=": "+W5[pr]+"\n";}}}}if(CJ==1){iy+="}\n";}return iy;};if(n){_rebuild_tags_for_photos(Z,n);}if(o&&o!=""){I.license_id=o;}if(o&&o!=""){I.is_favorite=G;}if(R&&R!=""){I.date_taken=R;}if(k!=undefined&&k!=""){I.date_taken_granularity=k;}if(y&&y!=""){I.date_upload=y;}if(A&&A!=""){I.date_update=A;}if(L!=undefined&&L!=""){I.latitude=L;}if(O!=undefined&&O!=""){I.longitude=O;}if(i3!=undefined&&i3!=""){I.accuracy=i3;}if(B!=undefined){I.description=B;}if(c!=undefined){I.is_public=c;}if(r!=undefined){I.is_friend=r;}if(v!=undefined){I.is_family=v;}if(E!=undefined&&!isNaN(E)){I.o_h=E*1;}if(tI!=undefined&&!isNaN(tI)){I.o_w=tI*1;}if(w&&w!=""){I.media=w;}if(K!=undefined){I.video_failed=(K==1)?1:0;}if(X!=undefined){I.video_ready=(X==1)?1:0;}if(e!=undefined){I.video_duration=e;}if(j!=undefined){I.video_width=j;}if(q!=undefined){I.video_height=q;}if(u!=undefined){I.safety_level=u;}if(g!=undefined){I.content_type=g;}if(M!=undefined){I.is_hidden=M;}if(wx!=undefined){I.moderation_mode=wx;}if(dK!=undefined){I.geo_is_public=dK;}if(m!=undefined){I.geo_is_friend=m;}if(Jq!=undefined){I.geo_is_family=Jq;}if(W!=undefined){I.geo_is_contact=W;}if(Q!=undefined){I.perm_comment=Q;}if(h!=undefined){I.perm_addmeta=h;}if(hV!=undefined){I.owner_nsid=hV;}if(U!=undefined){I.owner_name=U;}if(T!=undefined){I.owner_iconserver=T;}if(S&&S.length){I.sets=[];for(var t=0;t<S.length;t++){I.sets.push(S[t].getAttribute("id"));}}if(V&&V.length){I.pools=[];for(var t=0;t<V.length;t++){I.pools.push(V[t].getAttribute("id"));if(!global_groups[V[t].getAttribute("id")]){_upsert_group(V[t]);}}}return I;};var _upsert_set=function(P){var T=P.getAttribute("id");var u=P.getAttribute("primary");var g=P.getAttribute("server");var A=Math.ceil(g/1000);var N=P.getAttribute("secret");var E=P.getAttribute("id");var j=P.getAttribute("photos");var v=P.getElementsByTagName("photo");if(u&&u!=""){var R=global_photos[u];if(!R){R=global_photos[u]={};R.id=u;}if(g&&g!=""&&N&&N!=""){R.src=g+"/"+R.id+"_"+N+"_s.jpg";R.farm=A;}}var c=P.getElementsByTagName("title");if(c&&c[0]&&c[0].firstChild){var L=c[0].firstChild.nodeValue;}else{var L=P.getAttribute("title");}var q=P.getElementsByTagName("description");if(q&&q[0]){if(q[0].firstChild){var M=q[0].firstChild.nodeValue;}else{var M="";}}var X=global_sets[T];if(!X){X=global_sets[T]={id:T,primary_photo_id:u,photo_idsA:[]};}else{X.id=T;X.primary_photo_id=u;}if(E&&E!=""){X.owner=E;}if(L&&L!=""){X.title=L;}if(M!=undefined){X.description=M;}var v=P.getElementsByTagName("photo");if(v&&v.length){X.count=v.length;if(!P.getAttribute("page")||P.getAttribute("page")==1){X.photo_idsA=[];}for(var H=0;H<v.length;H++){var R=_upsert_photo(v[H]);X.photo_idsA.push(R.id);}}else{if(j!=""){X.count=j;}}return X;};var _upsert_wallie=function(P){var T=P.getAttribute("id");var u=P.getAttribute("primary");var g=P.getAttribute("server");var A=Math.ceil(g/1000);var N=P.getAttribute("secret");var E=P.getAttribute("id");var j=P.getAttribute("photos");var v=P.getElementsByTagName("photo");if(u&&u!=""){var R=global_photos[u];if(!R){R=global_photos[u]={};R.id=u;}if(g&&g!=""&&N&&N!=""){R.src=g+"/"+R.id+"_"+N+"_s.jpg";R.farm=A;}}var c=P.getElementsByTagName("title");if(c&&c[0]&&c[0].firstChild){var L=c[0].firstChild.nodeValue;}else{var L=P.getAttribute("title");}var q=P.getElementsByTagName("description");if(q&&q[0]){if(q[0].firstChild){var X=q[0].firstChild.nodeValue;}else{var X="";}}var M=global_wallies[T];if(!M){M=global_wallies[T]={id:T,primary_photo_id:u,photo_idsA:[]};}else{M.id=T;M.primary_photo_id=u;}if(E&&E!=""){M.owner=E;}if(L&&L!=""){M.title=L;}if(X!=undefined){M.description=X;}var v=P.getElementsByTagName("photo");if(v&&v.length){M.count=v.length;if(!P.getAttribute("page")||P.getAttribute("page")==1){M.photo_idsA=[];}for(var H=0;H<v.length;H++){var R=_upsert_photo(v[H]);M.photo_idsA.push(R.id);}}else{if(j!=""){M.count=j;}}return M;};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(A){return document.getElementById(A);};var _pi=function(A){return parseInt(A,10);};var _pf=function(A){return parseFloat(A);};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(P){var T=P.documentElement.getElementsByTagName("photoid");for(var R=0;R<T.length;R++){var u=T[R].firstChild.nodeValue;var E=global_photos[u];if(!E){continue;}var A=T[R].getAttribute("secret");E.secret=A;E.src=E.server+"/"+E.id+"_"+A+"_s.jpg";}};F.preload_images=function(){if(!F.preloaded){F.preloaded=[];}for(var A=0;A<arguments.length;A++){F.preloaded[A]=document.createElement("img");F.preloaded[A].src=arguments[A];}};F.get_month_index=function(R){var A=R.substr(0,3).toUpperCase();for(var T=0;T<F.output.date_strs.months_abbA.length;T++){if(A==F.output.date_strs.months_abbA[T]){return T;}}return -1;};F.make_unix_time_stamp=function(N,u,R,A,E,P){var T=new Date(N,u-1,R,A,E,P);return T.getTime()/1000;};F.convert_unix_time_stamp=function(A){return new Date(A*1000);};F.convert_unix_time_stamp_into_MYSQLDateTime=function(A){var R=new Date((A*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(A){return Math.floor(A.getTime()/1000);};F.convert_date_into_MYSQLDateTime=function(A){var R=A;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(N,u,T,R,E,P){var A="";if(N!=undefined){A+=N;}else{return A;}if(u!=undefined){A+="-"+u;}else{return A;}if(T!=undefined){A+="-"+T;}else{return A;}if(R!=undefined){A+=" "+R;}else{return A;}if(E!=undefined){A+=":"+E;}else{return A;}if(P!=undefined){A+=":"+P;}else{return A;}return A;};F.convert_MYSQLDateTime_into_unix_time_stamp=function(R){var A=this.convert_MYSQLDateTime(R);return Math.floor(A.getTime()/1000);};F.convert_MYSQLDateTime=function(A){var R=A.split(" ");var T=R[0].split("-");var E=R[1].split(":");if(!E[0]||isNaN(E[0])){E[0]="00";}if(!E[1]||isNaN(E[1])){E[1]="00";}if(!E[2]||isNaN(E[2])){E[2]="00";}return new Date(T[0],(T[1]*1)-1,T[2],E[0],E[1],E[2]);};F.set_hash=function(E){var R=document.location.href.split("#");var T=R[0];var P=F.get_hash();if(E){document.location=T+"#"+E;}else{if(P){document.location=T+"#";}else{}}};F.get_hash=function(){var R=document.location.href.split("#");return R[1]||"";};F.scroll_this_el_into_view=function(j,A,c,E,T){var R=(typeof j=="object")?j:_ge(j);if(!R){return ;}if(!A){A=document.body;}if(A==document.body){A=document.body;var u=_find_screen_height();var v=Y.U.Dom.getY(R);}else{var u=A.offsetHeight;var v=Y.U.Dom.getY(R)-Y.U.Dom.getY(A)+A.scrollTop;}var P=v+R.offsetHeight+5+(T?T:0);var H=u+A.scrollTop;var g=P-H;var N=Math.min(A.scrollTop+g,v);if(g>0&&N!=A.scrollTop){anim_do_scroll_to_scrollTop(A,10,35,N,"easeInOutQuad",c,E);return 1;}if(c&&E){c.apply(null,E);}return 0;};F.stop_event_propagation=function(A){if(!A){A=window.event;}Y.U.Event.stopPropagation(A);};F.fit_text_in_block=function(M,u,j,N,P){writeDebug("fit_text_in_block start");var H=new Date();N=(N)?N:"";P=(P)?P:"";var X=M;var R=u.style.display;var b=u.style.visibility;u.style.visibility="hidden";u.style.display="block";u.innerHTML=N+X+P;writeDebug("BEFORE: h:"+u.offsetHeight+" max:"+j+" "+X);var v=0;if(u.offsetHeight>j&&X.length>1){v++;u.innerHTML=N+"m"+P;var L=u.offsetHeight;u.innerHTML=N+X+P;var T=(u.offsetHeight/L);var E=Math.floor(j/L);writeDebug("lh "+L+" lc "+T+" alc "+E);var q=u.offsetHeight-j;var A=Math.max(1,T-3)/E;writeDebug("DURING: diff:"+q+" times:"+A);X=X.truncate_with_ellipses(_pi(X.length/(A)));u.innerHTML=N+X+P;writeDebug("lop a bunch: h:"+u.offsetHeight+" max:"+j+" "+X);}if(u.offsetHeight>j&&X.length>1){do{v++;X=X.truncate_with_ellipses(X.length-2);u.innerHTML=N+X+P;}while(u.offsetHeight>j&&X.length>1);}writeAPIDebug("AFTER: c:"+v+" h:"+u.offsetHeight+" max:"+j+" "+X);u.style.visibility=b;u.style.display=R;var g=new Date();writeDebug("fit_text_in_block Step 1 = "+(g-H)+"ms");};F.get_tags_from_input_str=function(g){g=g.trim();if(g==""){return [];}var u=[];if(g.indexOf(",")!=-1){var E=g.split(",");for(var P=0;P<E.length;P++){var A=E[P].trim();A=A.replace("\"","");if(A!==""){u.push(A);}}}else{var E=g.split("\"");for(var P=0;P<E.length;P++){var N=E[P].trim();if(P%2==0){var T=N.split(" ");for(var R=0;R<T.length;R++){if(T[R]!=""){u.push(T[R]);}}}else{if(N!=""){u.push(N);}}}}return u;};F.array_copy=function(R){var E=[];for(var T=0;T<R.length;T++){E[T]=R[T];}return E;};F.array_copy_except=function(R,E){var P=[];for(var T=0;T<R.length;T++){if(E==undefined||R[T]!=E){P.push(R[T]);}}return P;};F.array_index_of=function(R,E){if(!R){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 T=0;T<R.length;T++){if(R[T]==E){return T;}}return -1;};F.get_dates_from_form=function(j,g){var c;var R;var P;var N=_ge(j+"date_posted_exact");var v=_ge(j+"time_posted_exact");if(N){var E=N.value.split("/");c=F.convert_MYSQLDateTime_into_unix_time_stamp(E[2]+"-"+E[0]+"-"+E[1]+" "+v.value);if(g>0){c=c+g;}}if(_ge(j+"date_taken_exact_div").style.display=="none"){var L=_ge(j+"date_taken_approx_month");var q=_ge(j+"date_taken_approx_year");R=q.options[q.selectedIndex].value;if(L.options[L.selectedIndex].value!=0){P="4";R+="-"+L.options[L.selectedIndex].value+"-01";}else{P="6";R+="-01-01";}R+=" 00:00:00";}else{var A=_ge(j+"date_taken_exact");var T=_ge(j+"time_taken_exact");var H=A.value.split("/");P="0";R=H[2]+"-"+H[0]+"-"+H[1]+" "+T.value;if(g>0){var u=F.convert_MYSQLDateTime_into_unix_time_stamp(R);u=u+g;R=F.convert_unix_time_stamp_into_MYSQLDateTime(u);}}return {date_posted:c,date_taken:R,date_taken_granularity:P};};F.remove_el=function(R,T,E){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(E){F.drag_unreg(R);}for(var A=F._ebA.length-1;A>=0;A--){F._ebA[A].eb_remove(R);}T=(T)?T:R.parentNode;T.removeChild(R);};F.drag_unreg=function(T){if(T.fumb_target){T.fumb_target.unreg();}if(T.fumb_drag){T.fumb_drag.unreg();}if(T.tree_coll_target){T.tree_coll_target.unreg();}if(T.tree_coll_drag){T.tree_coll_drag.unreg();}if(T.tree_set_target){T.tree_set_target.unreg();}if(T.tree_set_drag){T.tree_set_drag.unreg();}if(T.wallie_photo_drag){T.wallie_photo_drag.unreg();}if(T.wallie_photo_target){T.wallie_photo_target.unreg();}if(T.wallie_text_drag){T.wallie_text_drag.unreg();}if(T.wallie_text_target){T.wallie_text_target.unreg();}if(T.set_photo_drag){T.set_photo_drag.unreg();}if(T.set_photo_target){T.set_photo_target.unreg();}if(T.set_div_drag){T.set_div_drag.unreg();}if(T.set_div_target){T.set_div_target.unreg();}if(T.dot_drag){T.dot_drag.unreg();}if(T.dot_target){T.dot_target.unreg();}if(T.pinwin_thumb_drag){T.pinwin_thumb_drag.unreg();}if(T.pinwin_thumb_target){T.pinwin_thumb_target.unreg();}if(T.batch_photo_drag){T.batch_photo_drag.unreg();}if(T.batch_photo_target){T.batch_photo_target.unreg();}if(T.group_photo_drag){T.group_photo_drag.unreg();}if(T.group_photo_target){T.group_photo_target.unreg();}for(var A=T.childNodes.length-1;A>=0;A--){var R=T.childNodes[A];F.drag_unreg(R);}};F.decorate=function(T,P,A,R){if(!P){return ;}if(!T){return ;}if(!T.id&&!A){writeDebug("decorated els must have ids!");return ;}if(R){writeAPIDebug("F.decorate called, passed obj:");writeAPIDebug(_uber_toString(P));}if(typeof P._decotype=="object"){F.decorate(T,P._decotype);}for(p in P){if(p=="_decotype"){continue;}try{T[p]=P[p];}catch(E){break;}}if(T.id){if(this._decoratedO[T.id]){}else{this._decoratedO[T.id]=[];}this._decoratedO[T.id].push(T);}return T;};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 A=document.createElement("div");A.id="one_photo_edit_pop";document.body.appendChild(A);F.decorate(A,F._one_photo_edit_pop).pop_go_go_go();return A;};F.make_batch_edit_pop=function(R,A){var T=document.createElement("div");T.id="batch_edit_pop";document.body.appendChild(T);F.decorate(T,F._batch_edit_pop).pop_go_go_go(R,A);return T;};F.make_shadow=function(T,u,E,R){var A=(E)?E:document.body;var P=document.createElement("div");P.id=T+"_shadow";if(R&&R.parentNode==E){A.insertBefore(P,R);}else{A.appendChild(P);}F.decorate(P,F._shadow).shadow_go_go_go(T,u,A);return P;};_uber_toString=function(A,u,v,R){var A=(A)?A:window;var u=(u)?u:1;var v=(v)?v:20;var R=(R)?R:(A.id)?A.id+".":(A.api_key)?"params.":"root.";var H=[];var g="";for(var E=0;E<u;E++){g+="\t";}if(u==1){_uber_toString._handled_Os_and_As=[A];H.push("{\n");}for(pr in A){try{var N=typeof A[pr];if(typeof A[pr]=="object"){N="object";if(A[pr]==null){N="null";}else{if(A[pr].length!=undefined){N="array ("+A[pr].length+")";}}}if(A[pr]==_uber_toString){continue;}if(typeof A=="object"&&A!=null&&A.length!=undefined&&typeof A[pr]=="function"){continue;}H.push(g+R+pr+":"+N);if(N=="null"){H.push(": null\n");}else{if(typeof A[pr]=="object"){if(A[pr].length!=undefined){H.push(" : [");var T="]\n";}else{H.push(" : {");var T="}\n";}if(F.array_index_of(_uber_toString._handled_Os_and_As,A[pr])>-1){H.push("already been iterated over");}else{if(u>v){H.push(u+" is too deep ("+v+" is max)");}else{if(pr=="F"){H.push("F (Flickr) is not iterated over");}else{if(pr=="_decoratedO"){H.push("_decoratedO is not iterated over");}else{if(pr=="_ebA"){H.push("_ebA is not iterated over");}else{if(pr=="_eb_listeners"){H.push("_eb_listeners is not iterated over");}else{if(pr=="childNodes"){H.push("childNodes is not iterated over");}else{if(pr=="previousSibling"){H.push("previousSibling is not iterated over");}else{if(pr=="nextSibling"){H.push("nextSibling is not iterated over");}else{if(pr=="firstChild"){H.push("firstChild is not iterated over");}else{if(pr=="lastChild"){H.push("lastChild is not iterated over");}else{if(pr=="parentNode"){H.push("parentNode is not iterated over");}else{if(pr=="offsetParent"){H.push("offsetParent is not iterated over");}else{if(pr=="stvyle"){H.push("style is not iterated over");}else{if(pr=="attributes"){H.push("attributes is not iterated over");}else{if(pr=="ownerDocument"){H.push("ownerDocument is not iterated over");}else{_uber_toString._handled_Os_and_As.push(A[pr]);H.push("\n"+_uber_toString(A[pr],u+1,v,R+pr+".")+g);}}}}}}}}}}}}}}}}H.push(T);}else{if(typeof A[pr]=="function"){H.push(" "+A[pr].toString().split("\n")[0].replace("function ","").replace(" {","")+"\n");}else{if(typeof A[pr]=="string"){if(pr=="innerHTML"){H.push(": \""+pr+"\"\n");}else{if(pr=="textContent"){H.push(": \""+pr+"\"\n");}else{H.push(": \""+A[pr].replace("\"","\\\"")+"\"\n");}}}else{H.push(": "+A[pr]+"\n");}}}}}catch(P){writeDebug("OI! "+P.message);H.push(g+R+pr+": BARF OUT "+P.message+"\n");continue;}}if(u==1){H.push("}\n");}return H.join("");};var _ok_for_swf=function(){if(actualVersion<6){return false;}return true;var A=navigator.userAgent;if(navigator.appVersion.toLowerCase().indexOf("mac")>0){if(A.indexOf("Gecko")==-1){return false;}}else{if(A.indexOf("MSIE 5.6")>0||A.indexOf("MSIE 5.5")>0||A.indexOf("MSIE 6")>0||A.indexOf("MSIE 7")>0){}else{if(A.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,A){if(R.value.length>A){R.value=R.value.substring(0,A);}};var _el_is_in_a_link=function(A){var R=A;while(R){if(R.href){return 1;}R=R.parentNode;}return 0;};var _get_event_src=function(A){if(A&&A.target){return A.target;}if(A&&A.srcElement){return A.srcElement;}if(window.event){return window.event.srcElement;}return null;};var _get_event_keycode=function(A){if(A){return A.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,A){return function(){return R[A].apply(R,arguments);};};myPos={getPos:function(A){return [this.getX(A),this.getY(A)];},getY:function(A){return Y.U.Dom.getY(A);},getX:function(A){return Y.U.Dom.getX(A);}};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(T,j,A,H){if(!A){A=" ";}if(H==undefined){H="<br />";}if(!j){j="";}j=j.replace(" ",A);if(T.indexOf("http://")>-1){var P=T.split("\n");for(var N=0;N<P.length;N++){var E=P[N].split(" ");for(var v=0;v<E.length;v++){var c="";if(E[v].substr(0,1)=="("){E[v]=E[v].replace("(","");c="(";}if(E[v].substr(0,7)=="http://"){var R=E[v];var g="";if(R.substr(R.length-1,1)==")"){R=R.substr(0,R.length-1);g=")";}var u="";if(R.substr(R.length-1,1)=="."){R=R.substr(0,R.length-1);u=".";}E[v]=("<a href=\""+R+"\" onclick=\""+j+"\">"+R+"</a>"+g+u).replace(" ",A);}E[v]=c+E[v];}P[N]=E.join(" ");}T=P.join(H+"\n");}return T;};var global_js_tip_count=0;F.get_tip_html=function(E,P,A,T){if(E.length==0){return "";}A=(A==undefined)?"Tip":A;var R="<span style=\"display: none;\" id=\""+P+"\">"+E+"</span>";if(!T){R+="<span class=\""+A+"\">[<a href=\"#\" onclick=\"this.blur(); show_tooltip(this, '"+P+"', "+E.length+"); return false;\">?</a>]</span>";}return R;};F.handle_mouse_tip_mouseover=function(A){this.tip_mouse_is_over=1;show_tooltip(this,this.tip_id,0,"","ToolTipSmall");};F.handle_mouse_tip_mouseout=function(A){this.tip_mouse_is_over=0;hide_tooltip();};F.change_mouse_tip_txt=function(A,E){var T="mouse_tip_div_"+A.id;var P=_ge(T);if(P&&E){var R=F.get_tip_html(E,A.tip_id,"tip_mouse",1);P.innerHTML=R;if(A.tip_mouse_is_over){hide_tooltip();show_tooltip(A,A.tip_id,0,"","ToolTipSmall");}}};F.make_new_mouse_tip=function(A,E){var P=A.title;if(!P){P="no title found on el";return ;}A.title="";A.alt="";var T="mouse_tip_div_"+A.id;var u=_ge(T);if(!u){global_js_tip_count++;A.tip_id="js_tooltip_"+global_js_tip_count;A.tip_placement=E;var R=F.get_tip_html(P,A.tip_id,"tip_mouse",1);var u=document.createElement("DIV");u.id=T;u.innerHTML=R;document.body.insertBefore(u,document.body.childNodes[0]);u.tip_id=A.tip_id;}Y.U.Event.addListener(A,"mouseover",F.handle_mouse_tip_mouseover);Y.U.Event.addListener(A,"mouseout",F.handle_mouse_tip_mouseout);};var _set_cookie=function(T,P,N,E){var A="";if(N){var R=new Date();R.setTime(R.getTime()+(N*24*60*60*1000));A="; expires="+R.toUTCString();}E=E||".flickr.com";var u=T+"="+escape(P)+A+"; path=/; domain="+E;document.cookie=u;writeDebug("cookie set: "+u);};var _get_cookie=function(R){var E=R+"=";var A=document.cookie.split(";");for(var T=0;T<A.length;T++){var P=A[T];while(P.charAt(0)==" "){P=P.substring(1,P.length);}if(P.indexOf(E)==0){if(R!="js_dbg"){writeDebug(P);}return unescape(P.substring(E.length,P.length));}}return null;};var _delete_cookie=function(A){_set_cookie(A,"",-1);};var _rebuild_tags_for_photos=function(R,g){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 N=0;N<g.length;N++){var T=g[N];var H=T.firstChild.nodeValue;var u=T.getAttribute("raw");var E=T.getAttribute("id");var P=T.getAttribute("author");var A=(global_photos[R].isOwner||global_nsid==P)?true:false;global_photos[R].tagsA.push(H);global_photos[R].tags_rawA.push(u);global_photos[R].tags_idA.push(E);global_photos[R].tags_canDeleteA.push(A);}};var global_single_shadow_div;var _make_single_shadow=function(u,R,T,A,P){if(u==undefined){u=document.createElement("div");u.style.position="absolute";u.style.top="0px";u.style.left="0px";document.body.appendChild(u);}window.global_single_shadow_height_plus=(R==undefined)?(12-24):R;window.global_single_shadow_width_plus=(T==undefined)?(12-24):T;window.global_single_shadow_x_plus=(A==undefined)?(-3):A;window.global_single_shadow_y_plus=(P==undefined)?(-3):P;var E="";E+="<table class=\"shadow_table\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"padding:0px;\">";E+="<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>";E+="<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>";E+="<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>";u.innerHTML=E;u.style.zIndex="999";u.style.display="none";u.id="shadow_div";window._set_single_shadow_x=function(N){u.style.marginLeft=(N+global_single_shadow_x_plus)+"px";};window._set_single_shadow_y=function(N){u.style.marginTop=(N+global_single_shadow_y_plus)+"px";};window._set_single_shadow_height=function(g){var N=_ge("shadow_height_controller");if(!N){return ;}var H=((g.offsetHeight)+global_single_shadow_height_plus);if(H<0){H=0;}N.style.height=H+"px";};window._set_single_shadow_width=function(H){var g=_ge("shadow_width_controller");var N=_ge("shadow_width_controller2");if(!g){return ;}var v=((H.offsetWidth)+global_single_shadow_width_plus);if(v<0){v=0;}g.style.width=N.style.width=v+"px";};window.global_single_shadow_div=u;};F.modal_blocker={show:function(){var A=_ge("global_modal_blocker");if(!A){A=document.createElement("DIV");A.id="global_modal_blocker";A.style.zIndex=10009;A.style.position="absolute";A.style.backgroundColor="#999";A.style.opacity=".7";A.style.filter="alpha(opacity=70)";A.style.width="100%";A.style.height="100%";document.body.appendChild(A);}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);A.style.display="block";},place_after_scroll:function(){if(this.place_tim){clearTimeout(this.place_tim);}var A=this;this.place_tim=setTimeout(function(){A.place();},100);},place:function(){var T=_ge("global_modal_blocker");if(!T){return ;}if(window.innerWidth){var A=window.pageXOffset;var R=window.pageYOffset;}else{var A=document.body.scrollLeft;var R=document.body.scrollTop;}T.style.top=R+"px";T.style.left=A+"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 A=_ge("global_modal_blocker");if(!A){return ;}A.style.display="none";}};var global_comm_div;var _make_comm_div=function(T){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 A=""+"<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=A;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=T;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(g,u,E,N){if(!g){return ;}this.comm_msg_div.innerHTML=g;var P=Math.ceil(u*_ge("comm_progress_bar_div_inner").offsetWidth);anim_do_width_to(_ge("comm_progress_bar_div"),8,30,P,"linearTween",E,N);_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 E=R.comm_form_div.childNodes[0];E.style.display="none";if(E.old_parentNode){E.old_parentNode.appendChild(F.prepare_for_insertion(E));}else{F.remove_el(E,R.comm_form_div);}R.comm_form_div.style.display="none";};R.start_comming=function(N,v,n,i,E,H,S,q,L,C,P,k,u){var s=(N!="NOTHING AT ALL");var b=(!N)?F.output.get("global_working"):N;this.comm_msg_div.innerHTML=b;R.comm_form_div.style.display="none";if(P){R.get_rid_of_form();R.comm_form_div.style.display="block";P.style.display="block";if(P.old_parentNode!=R.comm_form_div){P.old_parentNode=P.parentNode;}R.comm_form_div.appendChild(F.prepare_for_insertion(P));}R.comm_progress_bar_div_wrapper.style.display="none";if(u){R.comm_progress_bar_div_wrapper.style.display="block";}this.pulser_img.style.display=(i)?"none":"inline";if(E||q){this.button_tr.style.display=(F.is_ie)?"block":"table-row";this.button_ok.value=(H)?H.toUpperCase():F.output.get("ok");this.button_tr.style.display=(F.is_ie)?"block":"table-row";this.button_ok.onclick_do=(typeof S=="function")?S:null;this.button_ok.style.visibility=(E)?"visible":"hidden";this.button_ok.style.display=(E)?"inline":"none";this.button_cancel.value=(L)?L.toUpperCase():F.output.get("cancel");this.button_cancel.onclick_do=(typeof C=="function")?C:null;this.button_cancel.style.visibility=(q)?"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(s){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(k&&this.modal_blocker){this.modal_blocker.style.display="block";this.modal_blocker.style.backgroundColor=(k.backgroundColor)?k.backgroundColor:R.modal_blocker.default_style.backgroundColor;this.modal_blocker.style.opacity=(k.opacity)?k.opacity:R.modal_blocker.default_style.opacity;this.modal_blocker.style.filter=(k.filter)?k.filter:R.modal_blocker.default_style.filter;}if(window.innerWidth){var V=window.innerWidth;var g=window.innerHeight;var c=window.pageXOffset;var j=window.pageYOffset;}else{var V=document.body.clientWidth;var g=document.body.clientHeight;var c=document.body.scrollLeft;var j=document.body.scrollTop;}var B=function(){var z=c+_pi((V-_pi(global_comm_div.table.offsetWidth))/2);return z;};var f=function(){var z=j+_pi((g-global_comm_div.table.offsetHeight)/2);return z;};var X=(typeof v=="function")?v():(typeof v=="number")?v:B();var M=(typeof n=="function")?n():(typeof n=="number")?n:f();this.style.marginLeft=X+"px";this.style.marginTop=M+"px";if(k&&this.modal_blocker){if(k.loc_style){this.modal_blocker.style.top=k.loc_style.top+"px";this.modal_blocker.style.left=k.loc_style.left+"px";this.modal_blocker.style.width=k.loc_style.width+"px";this.modal_blocker.style.height=k.loc_style.height+"px";}else{this.modal_blocker.style.top=j+"px";this.modal_blocker.style.left=c+"px";this.modal_blocker.style.width=V+"px";this.modal_blocker.style.height=g+"px";}}_set_single_shadow_x(X);_set_single_shadow_y(M);_set_single_shadow_height(this.table);_set_single_shadow_width(this.table);global_single_shadow_div.style.display="block";if(s&&E&&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(A){if(F._window_onload_dom){F._window_onload_dom();}F.eb_broadcast("window_onload",A);};F._window_onresize=function(){F.eb_broadcast("window_onresize");};window.onbeforeunload=function(){F.eb_broadcast("window_onbeforeunload",F.changes_count);var A=(window.page_onbeforeunload_msg)?window.page_onbeforeunload_msg:F.output.get("global_unsaved");if(F.changes_count){return A;}};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 A=F._ebA[R];A.eb_remove_all();}F._ebA=[];F._decoratedO={};};function _change_privacy(R){var A=_ge("is_private_"+R).checked;_ge("is_friend_"+R).disabled=!A;_ge("is_family_"+R).disabled=!A;}function _get_qs_args(){var R={};var P=location.search.substring(1).split("&");for(var T=0;T<P.length;T++){var u=P[T].indexOf("=");if(u!=-1){var A=P[T].substring(0,u);var E=P[T].substring(u+1);R[A]=unescape(E);}}return R;}var _qs_args=_get_qs_args();var promos_show=function(R){var P=_ge(R);var T=_ge(R+"_promo_div");var A=_ge(R+"_removed_div");if(!T){return ;}var E=R.replace("promo_","promos_hide_");var u={};u[E]=0;T.flickr_prefs_setPrefs_onLoad=function(){};F.API.callMethod("flickr.prefs.setPrefs",u,T);T.style.visibility="visible";A.style.display="none";};var promos_remove=function(R){var P=_ge(R);var T=_ge(R+"_promo_div");var A=_ge(R+"_removed_div");if(!T){return ;}var E=R.replace("promo_","promos_hide_");var u={};u[E]=1;T.flickr_prefs_setPrefs_onLoad=function(){};F.API.callMethod("flickr.prefs.setPrefs",u,T);T.style.visibility="hidden";A.style.display="block";P.style.backgroundColor="#FFFFFF";setTimeout("anim_do_pink_fade(_ge(\""+P.id+"\"))",300);};function _privacy_specific_change(E,u){E=(E)?E:"";var T=_ge(E+"is_private").checked;var R=_ge(E+"is_friend").checked;var A=_ge(E+"is_family").checked;var P=!T;_ge(E+"is_friend").disabled=!T;_ge(E+"is_family").disabled=!T;_ge(E+"is_friend_label").style.color=T?"black":"silver";_ge(E+"is_family_label").style.color=T?"black":"silver";if(T){if(R||A){_privacy_check_boxes(E+"perm_comment",false,false,true,true);_privacy_check_boxes(E+"perm_addmeta",false,false,true,true);}else{_privacy_check_boxes(E+"perm_comment",false,true,true,true);_privacy_check_boxes(E+"perm_addmeta",false,true,true,true);}}else{_privacy_check_boxes(E+"perm_comment",false,false,false,false);_privacy_check_boxes(E+"perm_addmeta",false,false,false,false);}if(!u&&(previous_public!=P||previous_friend!=R||previous_family!=A)){_privacy_try_and_check(E+"perm_comment",1);_privacy_try_and_check(E+"perm_addmeta",2);previous_public=P;previous_friend=R;previous_family=A;}}function _privacy_default_change(){var T=_ge("is_private").checked;var R=_ge("is_friend").checked;var A=_ge("is_family").checked;var E=!T;_ge("is_friend").disabled=!T;_ge("is_family").disabled=!T;_ge("is_friend_label").style.color=T?"black":"silver";_ge("is_family_label").style.color=T?"black":"silver";_ge("perm_addmeta_disclaim").style.display=T?"block":"none";_ge("perm_comment_disclaim").style.display=T?"block":"none";if(T){if(R||A){_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,T,R,N,u){_ge(E+"_4").disabled=T;_ge(E+"_3").disabled=R;_ge(E+"_2").disabled=N;_ge(E+"_1").disabled=u;_ge(E+"_4_label").style.color=T?"silver":"black";_ge(E+"_3_label").style.color=R?"silver":"black";_ge(E+"_2_label").style.color=N?"silver":"black";_ge(E+"_1_label").style.color=u?"silver":"black";var A=false;for(var P=4;P>=1;P--){if(_ge(E+"_"+P).checked&&!_ge(E+"_"+P).disabled){return ;}}for(var P=1;P<=4;P++){if(!_ge(E+"_"+P).disabled){_ge(E+"_"+P).checked=true;return ;}}}function _privacy_try_and_check(A,T){for(var R=T;R<=4;R++){if(!_ge(A+"_"+R).disabled){_ge(A+"_"+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 A=_ge("one_photo_edit_pop");if(!A){A=F.make_one_photo_edit_pop();}A.pop_show_start(R);};F.hide_featured_model=function(){var R=_ge("cfad");var A=0;anim_do_height_to(R,15,30,A,"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 T=_ge("cfad");if(F.is_ie||F.is_safari){T.style.height="1px";T.style.display="block";_ge("cfad_hide_link_p").style.display="block";_ge("cfad_show_link_p").style.display="none";}else{T.style.height="0px";T.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 A=R.height;anim_do_height_to(T,15,30,A,"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,A,T){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=A+"?delete="+R+"&"+T;this.already_removing=false;}}else{F.eb_broadcast("stewart_play_if_was_playing");}},vanish_photo:function(A){after_fade=function(){_ge("sv_title_"+A).style.display="none";_ge("sv_body_"+A).style.display="none";var R=_ge("stewart_swf"+A+"_div");if(R){R.parentNode.removeChild(R);}F.eb_broadcast("stewart_play_if_was_playing");};anim_do_opacity_to(_ge("sv_title_"+A),50,20,0,"easeOutQuad",after_fade);anim_do_opacity_to(_ge("sv_body_"+A),50,20,0,"easeOutQuad",after_fade);F._photo_vanisher.api_remove_photo(A);},api_remove_photo:function(A){var R={flickr_photos_delete_onLoad:function(N,u,E,P){if(!N){alert(F.output.get("global_sorry"));F._photo_vanisher.un_vanish_photo(P.photo_id);}}};var T=new Object();T.photo_id=A;F.API.callMethod("flickr.photos.delete",T,R,null,null,0);this.already_removing=false;},un_vanish_photo:function(A){if(_ge("sv_title_"+A)&&_ge("sv_title_"+A)){_ge("sv_title_"+A).style.display="block";_ge("sv_body_"+A).style.display="block";anim_do_opacity_to(_ge("sv_title_"+A),50,20,100,"easeInQuad");anim_do_opacity_to(_ge("sv_body_"+A),50,20,100,"easeInQuad");}this.already_removing=false;}};F.possess=function(A){if(window.global_intl_lang&&global_intl_lang!="en-us"){return A;}if(A.substr(A.length-1,1).toLowerCase()=="s"){return A+"'";}else{return A+"'s";}};var how_many_are_this_size=function(A,u){var P=0;var R=0;for(var E in print_photos){R++;var T=print_photos[E];P+=(Math.max(T.o_w,T.o_h)>=Math.max(A,u)&&Math.min(T.o_w,T.o_h)>=Math.min(A,u));}if(P==0){txt=" "+F.output.get("setprint_no_photos_large_enough");}else{if(P==R){txt=" "+F.output.get("setprint_all_photos_large_enough");}else{txt=" "+F.output.get("setprint_x_of_y_large_enough",P,R);}}return txt;};