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