var snaggit=3;var undefined;var YMAPPID="flickrMappr";if(!Function.prototype.call){Function.prototype.call=function(A,B) {A.base=this;A.base(B)}}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++){ _proxy_jslib_assign('', sarg, (i), '=', ("args["+i+"]"))}call="oScope.__applyTemp__("+sarg.join(",")+");";oScope.__applyTemp__=this;rtrn=eval(_proxy_jslib_proxify_js((call), 0, 0) );oScope.__applyTemp__=null;return rtrn}}Date.prototype.customFormat=function(I) {var N=((YYYY=this.getFullYear())+"").substr(2,2);var L=this.getMonth()+1;var S=(L)<10?"0"+L:L;var T= _proxy_jslib_handle(F.output.date_strs.monthsA, (L-1), 0, 0);var C= _proxy_jslib_handle(F.output.date_strs.months_abbA, (L-1), 0, 0);var R=this.getDate();var X=R<10?"0"+R:R;var J= _proxy_jslib_handle(F.output.date_strs.days_abbA, (L-1), 0, 0);var O= _proxy_jslib_handle(F.output.date_strs.daysA, (L-1), 0, 0);var B=R%10;var H="";if(global_intl_lang=="en-us"){H=(R>=10&&R<=20)?"th":(B==1)?"st":(B==2)?"nd":(B==3)?"rd":"th"}if(global_intl_lang=="fr-fr"){if(R==1){H="er"}}if(global_intl_lang=="pt-br"){if(R==1){H="&#186;"}}if(global_intl_lang=="de-de"){if(R==1){H="."}}I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#YYYY#",YYYY);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#YY#",N);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#MMMM#",T);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#MMM#",C);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#MM#",S);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#M#",L);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#DDDD#",O);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#DDD#",J);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#DD#",X);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#D#",R);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#th#",H);var U=decodeURIComponent("%EB%85%84");var c=decodeURIComponent("%EC%9B%94");var A=decodeURIComponent("%EC%9D%BC");I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#KY#",U);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#KM#",c);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#KD#",A);var e=decodeURIComponent("%E5%B9%B4");var E=decodeURIComponent("%E6%9C%88");var K=decodeURIComponent("%E6%97%A5");I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#CY#",e);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#CM#",E);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#CD#",K);var Z=this.getHours();var b=Z;if(b==0){b=24}if(b>12){b-=12}var G=(b<10)?"0"+b:b;var Q=(Z<12)?"am":"pm";var V=this.getMinutes();var a=(V<10)?"0"+V:V;var P=this.getSeconds();var W=(P<10)?"0"+P:P;I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#hhh#",Z);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#hh#",G);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#h#",b);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#mm#",a);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#m#",V);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#ss#",W);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#s#",P);I= _proxy_jslib_handle(I, 'replace', '', 1, 0)("#ampm#",Q);return I};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 C=0,A=this.length,B=arguments;for(C;C<B.length;C++){ _proxy_jslib_assign('', this, (A+C), '=', ( _proxy_jslib_handle(B, (C), 0, 0)))}return this.length}}if(!Array.prototype.pop){Array.prototype.pop=function() {var A= _proxy_jslib_handle(this, (this.length-1), 0, 0);this.length--;return A}}if(!Array.prototype.shift){Array.prototype.shift=function() {var B=this[0];for(var A=0;A<this.length-1;A++){ _proxy_jslib_assign('', this, (A), '=', ( _proxy_jslib_handle(this, (A+1), 0, 0)))}this.length--;return B}}if(!Array.prototype.unshift){Array.prototype.unshift=function() {this.reverse();for(var A=arguments.length-1;A>=0;A--){ _proxy_jslib_assign('', this, (this.length), '=', ( _proxy_jslib_handle(arguments, (A), 0, 0)))}this.reverse();return this.length}}if(!Array.prototype.splice){function array_splice(C,B) {if(arguments.length==0){return C}if(typeof C!="number"){C=0}if(C<0){C=Math.max(0,this.length+C)}if(C>this.length){if(arguments.length>2){C=this.length}else{return[]}}if(arguments.length<2){B=this.length-C}B=(typeof B=="number")?Math.max(0,B):0;removeArray=this.slice(C,C+B);endArray=this.slice(C+B);this.length=C;for(var A=2;A<arguments.length;A++){ _proxy_jslib_assign('', this, (this.length), '=', ( _proxy_jslib_handle(arguments, (A), 0, 0)))}for(var A=0;A<endArray.length;A++){ _proxy_jslib_assign('', this, (this.length), '=', ( _proxy_jslib_handle(endArray, (A), 0, 0)))}return removeArray}Array.prototype.splice=array_splice}var _numeric_sort_func=function(B,A) {return(B-A)};var _alpha_sort_func=function(C,B) {var A=String(C).toLowerCase();var D=String(B).toLowerCase();return(A>D)?1:((A<D)?-1:0)};Number.prototype.addZeros=function(A) {if( _proxy_jslib_handle(this, 'toString', '', 1, 0)().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 I=F.output.dec_sep;var B=F.output.thou_sep;var G= _proxy_jslib_handle(this, 'toString', '', 1, 0)();var H=G.split(".");var E=H[0];var C=(H[1])?I+H[1]:"";if(E.length<4){return G}var A="";for(var D=E.length-1;D>-1;D--){if(D<E.length-1&&(E.length-1-D)%3==0){A=B+A}A=E.charAt(D)+A}return A+C};Number.prototype.truncate_geo_value=function() {var A= _proxy_jslib_handle(this, 'toString', '', 1, 0)();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};Number.prototype.convert_geo_value=function() {return this.truncate_geo_value()};String.prototype.truncate_geo_value=function() {return _pf(this).truncate_geo_value()};String.prototype.convert_geo_value=function() {var E= _proxy_jslib_handle(this, 'toString', '', 1, 0)().toLowerCase();var B=new (RegExp)("^(geo:lat=(\\+|\\-)?((\\d+\\.\\d+)|\\d+))");var K=new (RegExp)("^(geo:(long|lon)=(\\+|\\-)?((\\d+\\.\\d+)|\\d+))");var G=new (RegExp)("[a-z:=]","g");var M=new (RegExp)("[ ;]","g");var H=new (RegExp)(",+","g");if(E.match(B)){var L= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(E, 'replace', '', 1, 0)(G,""), 'replace', '', 1, 0)(M,","), 'replace', '', 1, 0)(H,",")}if(E.match(K)){var L= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(E, 'replace', '', 1, 0)(G,""), 'replace', '', 1, 0)(M,","), 'replace', '', 1, 0)(H,",")}if(typeof (L)=="undefined"){var D=null;var J=null;E= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(E, 'replace', '', 1, 0)(String.fromCharCode(8220),'"'), 'replace', '', 1, 0)(String.fromCharCode(8221),'"'), 'replace', '', 1, 0)(String.fromCharCode(8216),"'"), 'replace', '', 1, 0)(String.fromCharCode(8217),"'"), 'replace', '', 1, 0)(String.fromCharCode(176),"*");var A=null;var C=null;if(E.indexOf("n")>0){D=true;A=E.indexOf("n")}if(E.indexOf("s")>0){D=false;A=E.indexOf("s")}if(E.indexOf("e")>0){J=true;C=E.indexOf("e")}if(E.indexOf("w")>0){J=false;C=E.indexOf("w")}if(E.indexOf("*")>0&&E.indexOf("'")>0&&E.indexOf('"')>0){var E= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(E, 'replace', '', 1, 0)(new (RegExp)("[nsew'\"*]"),","), 'replace', '', 1, 0)(new (RegExp)(",+")," "), 'replace', '', 1, 0)(new (RegExp)(" +")," ");var I=E.split(" ");if(I.length>=4){var L=_pi(I[0]);if(L>=0){L+=(I[1]/60)+(I[2]/6000)}else{L-=((I[1]/60)+(I[2]/6000))}}}if(E.indexOf("*")>0&&E.indexOf("'")>0){var E= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(E, 'replace', '', 1, 0)(new (RegExp)("[nsew'\"*]"),","), 'replace', '', 1, 0)(new (RegExp)(",+")," "), 'replace', '', 1, 0)(new (RegExp)(" +")," ");var I=E.split(" ");if(I.length>=3){var L=_pi(I[0]);if(L>=0){L+=(I[1]/60)}else{L-=(I[1]/60)}}}if(typeof (I)=="undefined"){var E= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(E, 'replace', '', 1, 0)(new (RegExp)("[nsew'\"*]"),","), 'replace', '', 1, 0)(new (RegExp)(",+")," "), 'replace', '', 1, 0)(new (RegExp)(" +")," ");var I=E.split(" ");if(I.length>=2){var L=_pf(I[0])}}if(D==true){L=Math.abs(L)}if(D==false){L=-1*Math.abs(L)}if(J==true){L=Math.abs(L)}if(J==false){L=-1*Math.abs(L)}}if(typeof (L)=="undefined"){return _pf(this).truncate_geo_value()}else{return _pf(L).truncate_geo_value()}};String.prototype.pretty_num=function() {return _pf(this).pretty_num()};String.prototype.trim=function() {return  _proxy_jslib_handle(this, 'replace', '', 1, 0)(/^\s+|\s+$/g,"")};String.prototype.nl2br=function() {return this.split("\n").join("<br>\n")};String.prototype.replace_regx= _proxy_jslib_handle(String.prototype, 'replace', '', 0, 0); _proxy_jslib_assign('', String.prototype, 'replace', '=', (function(B,A) {return this.split(B).join(A)}));String.prototype.escape_for_xml=function() {return  _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(this, 'replace', '', 1, 0)("&","&amp;"), 'replace', '', 1, 0)('"',"&quot;"), 'replace', '', 1, 0)("<","&lt;"), 'replace', '', 1, 0)(">","&gt;")};String.prototype.unescape_from_xml=function() {return  _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(this, 'replace', '', 1, 0)("&quot;",'"'), 'replace', '', 1, 0)("&lt;","<"), 'replace', '', 1, 0)("&gt;",">"), 'replace', '', 1, 0)("&amp;","&")};String.prototype.escape_for_display=function() {return  _proxy_jslib_handle(this, 'replace', '', 1, 0)("<","&lt;")};String.prototype.escape_for_display_and_wrap=function() {return  _proxy_jslib_handle(this, 'replace', '', 1, 0)("<","<wbr>&lt;")};String.prototype.truncate_with_ellipses=function(B) {var A=this;if(A.length>B-3){A=A.substr(0,B-3).trim()+"&hellip;"}return A};String.prototype.truncate=function(B) {var A=this;if(A.length>B){A=A.substr(0,B)}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){ _proxy_jslib_assign('', 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(I,C,H) {var G="";if(!I){return G}if(!I.server||!I.secret){G="/images/collection_default_l.gif"}else{var D=Math.ceil(I.server/1000);var H=(H)?H:_photo_root;var A=I.id.split("-");var E=I.server+"/cols/"+A[1]+"_"+I.secret+"_l.jpg";var B= _proxy_jslib_handle(H, 'replace', '', 1, 0)("http://farm","http://farm"+D);G=B+E;if(p.src_cb){G+="?"+p.src_cb}}if(C=="s"){G= _proxy_jslib_handle(G, 'replace', '', 1, 0)("_l.jpg","_s.jpg")}return G};var _get_photo_src=function(C,B,G) {var E="";if(!C||! _proxy_jslib_handle(C, 'src', '', 0, 0)){return E}if(!B){B="s"}var D= _proxy_jslib_handle(C, 'src', '', 0, 0);if(B!="s"){D= _proxy_jslib_handle(D, 'replace', '', 1, 0)("_s","_"+B)}D= _proxy_jslib_handle(D, 'replace', '', 1, 0)("_500.jpg",".jpg");var G=(G)?G:_photo_root;var A= _proxy_jslib_handle(G, 'replace', '', 1, 0)("http://farm","http://farm"+C.farm);E=A+D;if(C.src_cb){E+="?"+C.src_cb}return E};var _construct_user_icon_url=function(E,B) {if(E&&E!="0"){var D=Math.ceil(E/1000);var A= _proxy_jslib_handle(_photo_root, 'replace', '', 1, 0)("http://farm","http://farm"+D);var C=A+E+"/buddyicons/"+B+".jpg"}else{var C=_images_root+"/buddyicon.jpg"}writeDebug(C);return C};var _upsert_user=function(L) {var H=L.getAttribute("nsid");var S=L.getAttribute("username");var R=L.getAttribute("realname");var B=L.getAttribute("iconserver");var O=L.getAttribute("expire");var N=L.getAttribute("dbid");var K=L.getAttribute("email");var M=L.getAttribute("hide_email");var J=L.getAttribute("friend");var P=L.getAttribute("family");var C=L.getAttribute("ispro");var Q=L.getAttribute("path_alias");var A=L.getAttribute("location");var I= _proxy_jslib_handle(L, 'getElementsByTagName', '', 1, 0)("username");if(I&&I[0]){var G=I[0];var S=(G.firstChild)? _proxy_jslib_handle(G.firstChild, 'nodeValue', '', 0, 0):""}var D=_construct_user_icon_url(B,H);var E= _proxy_jslib_handle(global_users, (H), 0, 0);if(!E){E= _proxy_jslib_assign('', global_users, (H), '=', ({id:H,name:S,realname:R,email:K,icon_url:D,hide_email:M,friend:J,family:P,ispro:C,path_alias:Q,location:A}))}else{E.id=H;E.name=S;E.realname=R;E.email=K;E.icon_url=D;E.hide_email=E.hide_email;E.friend=J;E.family=P;E.ispro=C;E.path_alias=Q; _proxy_jslib_assign('', E, 'location', '=', (A))}if(O){E.expire=O}if(N){E.dbid=N}return E};var _get_group_throttle_txt=function(A) {var B="";if(A){if(A.throttle_mode=="disabled"){B=F.output.get("pool_uploads_disabled")}else{if(A.throttle_count){B=F.output.get("pool_uploads_throttled_"+A.throttle_mode,A.throttle_count.pretty_num())}else{B=""}}}return B};var _upsert_group=function(E) {var I=E.getAttribute("nsid");if(!I){I=E.getAttribute("id")}var C=E.getAttribute("name");if(!C){C=E.getAttribute("title")}var H=E.getAttribute("iconserver");if(H&&H!="0"){var G=Math.ceil(H/1000);var A= _proxy_jslib_handle(_photo_root, 'replace', '', 1, 0)("http://farm","http://farm"+G);var B=A+H+"/buddyicons/"+I+".jpg"}else{var B=_images_root+"/buddyicon.jpg"}var D= _proxy_jslib_handle(global_groups, (I), 0, 0);if(!D){D= _proxy_jslib_assign('', global_groups, (I), '=', ({id:I,name:C,icon_url:B}))}else{D.id=I;D.name=C;D.icon_url=B}return D};var _upsert_photo_new=function(E) {if(!E){return }var C={};if(typeof  _proxy_jslib_handle(E, 'getElementsByTagName', '', 0, 0)!="function"){C.id=E.id;C.server=E.server;C.secret=E.secret;C.title=E.title;C.date_taken=E.datetaken;C.date_taken_granularity=E.datetakengranularity;C.date_upload=E.dateupload;C.latitude=E.latitude;C.longitude=E.longitude;C.accuracy=E.accuracy;C.owner_nsid=E.owner;C.owner_name=E.ownername;C.owner_iconserver=E.iconserver;C.is_public=E.ispublic;C.is_friend=E.isfriend;C.is_family=E.isfamily;C.geo_is_public=E.geoperms.ispublic}else{C.id=E.getAttribute("id");C.server=E.getAttribute("server");C.secret=E.getAttribute("secret");var M= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("title");if(M&&M[0]){var Q=M[0];C.title=(Q.firstChild)? _proxy_jslib_handle(Q.firstChild, 'nodeValue', '', 0, 0):"";var K= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("description")[0];C.description=(K.firstChild)? _proxy_jslib_handle(K.firstChild, 'nodeValue', '', 0, 0):"";C.license_id=E.getAttribute("license");C.is_favorite=E.getAttribute("isfavorite");var H= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("visibility")[0];C.is_public=H.getAttribute("ispublic");C.is_friend=H.getAttribute("isfriend");C.is_family=H.getAttribute("isfamily");C.safety_level=H.getAttribute("safety_level");C.content_type=H.getAttribute("content_type");C.is_hidden=H.getAttribute("hidden");C.moderation_mode=H.getAttribute("moderation_mode");var G= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("dates")[0];C.date_taken=G.getAttribute("taken");C.date_taken_granularity=G.getAttribute("takengranularity");C.date_upload=G.getAttribute("posted");C.date_update=G.getAttribute("lastupdate");var D= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("owner")[0];C.owner_nsid=D.getAttribute("nsid");C.owner_name=D.getAttribute("username");C.owner_iconserver=null;var P= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("geoperms");if(P&&P[0]){C.geo_is_public=P[0].getAttribute("ispublic");C.geo_is_friend=P[0].getAttribute("isfriend");C.geo_is_family=P[0].getAttribute("isfamily");C.geo_is_contact=P[0].getAttribute("iscontact")}var J= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("location");if(J&&J[0]){C.latitude=J[0].getAttribute("latitude");C.longitude=J[0].getAttribute("longitude");C.accuracy=J[0].getAttribute("accuracy")}var R= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("permissions");if(R&&R[0]){C.perm_comment=R[0].getAttribute("permcomment");C.perm_addmeta=R[0].getAttribute("permaddmeta")}var R= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("permissions");if(R&&R[0]){C.perm_comment=R[0].getAttribute("permcomment");C.perm_addmeta=R[0].getAttribute("permaddmeta")}var N= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("tag");if(N){_rebuild_tags(C,N)}var L= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("set");if(L&&L.length){C.sets=[];for(var I=0;I<L.length;I++){C.sets.push( _proxy_jslib_handle(L, (I), 0, 0).getAttribute("id"))}}var O= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("pool");if(O&&O.length){C.pools=[];for(var I=0;I<O.length;I++){C.pools.push( _proxy_jslib_handle(O, (I), 0, 0).getAttribute("id"));if(! _proxy_jslib_handle(global_groups, ( _proxy_jslib_handle(O, (I), 0, 0).getAttribute("id")), 0, 0)){_upsert_group( _proxy_jslib_handle(O, (I), 0, 0))}}}}else{C.title=E.getAttribute("title");C.date_taken=E.getAttribute("datetaken");C.date_taken_granularity=E.getAttribute("datetakengranularity");C.date_upload=E.getAttribute("dateupload");C.latitude=E.getAttribute("latitude");C.longitude=E.getAttribute("longitude");C.accuracy=E.getAttribute("accuracy");C.owner_nsid=E.getAttribute("owner");C.owner_name=E.getAttribute("ownername");C.owner_iconserver=E.getAttribute("iconserver");C.is_public=E.getAttribute("ispublic");C.is_friend=E.getAttribute("isfriend");C.is_family=E.getAttribute("isfamily")}}var B= _proxy_jslib_handle(global_photos, (C.id), 0, 0);if(!B){B= _proxy_jslib_assign('', global_photos, (C.id), '=', ({}))}C.farm=Math.ceil(C.server/1000); _proxy_jslib_assign('', C, 'src', '=', (C.server+"/"+C.id+"_"+C.secret+"_s.jpg")); _proxy_jslib_assign('delete', (C), ('secret'), '');for(var A in C){if(A=="description"){ _proxy_jslib_assign('', B, (A), '=', ( _proxy_jslib_handle(C, (A), 0, 0)));continue}if( _proxy_jslib_handle(C, (A), 0, 0)!=""&& _proxy_jslib_handle(C, (A), 0, 0)!=undefined){ _proxy_jslib_assign('', B, (A), '=', ( _proxy_jslib_handle(C, (A), 0, 0)))}} _proxy_jslib_assign('', B, 'toString', '=', (function() {return _uber_toString(this,null,null,"g_p["+this.id+"].")}));return B};var _upsert_photo=function(b) {var k=b.getAttribute("id");var AF=b.getAttribute("secret");var j=b.getAttribute("server");var R=Math.ceil(j/1000);var V=j+"/"+k+"_"+AF+"_s.jpg";var r=b.getAttribute("media");var T= _proxy_jslib_handle(b, 'getElementsByTagName', '', 1, 0)("title");if(T&&T[0]){var AC=T[0];var e=(AC.firstChild)? _proxy_jslib_handle(AC.firstChild, 'nodeValue', '', 0, 0):"";var AH= _proxy_jslib_handle(b, 'getElementsByTagName', '', 1, 0)("description")[0];var S=(AH.firstChild)? _proxy_jslib_handle(AH.firstChild, 'nodeValue', '', 0, 0):"";var c=b.getAttribute("license");var l=b.getAttribute("isfavorite");var J= _proxy_jslib_handle(b, 'getElementsByTagName', '', 1, 0)("visibility")[0];var M=J.getAttribute("ispublic");var x=J.getAttribute("isfriend");var K=J.getAttribute("isfamily");var G=J.getAttribute("safety_level");var I=J.getAttribute("content_type");var P=J.getAttribute("hidden");var AD=J.getAttribute("moderation_mode");var q= _proxy_jslib_handle(b, 'getElementsByTagName', '', 1, 0)("geoperms");if(q&&q[0]){var AI=q[0].getAttribute("ispublic");var m=q[0].getAttribute("isfriend");var AE=q[0].getAttribute("isfamily");var o=q[0].getAttribute("iscontact")}var U= _proxy_jslib_handle(b, 'getElementsByTagName', '', 1, 0)("dates")[0];var B=U.getAttribute("taken");var X=U.getAttribute("takengranularity");var y=U.getAttribute("posted");var A=U.getAttribute("lastupdate");var E= _proxy_jslib_handle(b, 'getElementsByTagName', '', 1, 0)("owner")[0];var AG=E.getAttribute("nsid");var n=E.getAttribute("username");var C=null;var v= _proxy_jslib_handle(b, 'getElementsByTagName', '', 1, 0)("location");if(v&&v[0]){var O=v[0].getAttribute("latitude");var s=v[0].getAttribute("longitude");var AB=v[0].getAttribute("accuracy")}var H= _proxy_jslib_handle(b, 'getElementsByTagName', '', 1, 0)("permissions");if(H&&H[0]){var f=H[0].getAttribute("permcomment");var g=H[0].getAttribute("permaddmeta")}var H= _proxy_jslib_handle(b, 'getElementsByTagName', '', 1, 0)("permissions");if(H&&H[0]){var f=H[0].getAttribute("permcomment");var g=H[0].getAttribute("permaddmeta")}var Z= _proxy_jslib_handle(b, 'getElementsByTagName', '', 1, 0)("tag");var W= _proxy_jslib_handle(b, 'getElementsByTagName', '', 1, 0)("set");var a= _proxy_jslib_handle(b, 'getElementsByTagName', '', 1, 0)("pool");var w= _proxy_jslib_handle(b, 'getElementsByTagName', '', 1, 0)("video");if(w&&w[0]){var u=w[0].getAttribute("failed");var Q=w[0].getAttribute("ready");var h=w[0].getAttribute("duration");var L=w[0].getAttribute("width");var N=w[0].getAttribute("height")}}else{var e=b.getAttribute("title");var B=b.getAttribute("datetaken");var X=b.getAttribute("datetakengranularity");var y=b.getAttribute("dateupload");var O=b.getAttribute("latitude");var s=b.getAttribute("longitude");var AB=b.getAttribute("accuracy");var AG=b.getAttribute("owner");var n=b.getAttribute("ownername");var C=b.getAttribute("iconserver");var M=b.getAttribute("ispublic");var x=b.getAttribute("isfriend");var K=b.getAttribute("isfamily");var AA=b.getAttribute("o_width");var D=b.getAttribute("o_height");var r=b.getAttribute("media")}var t= _proxy_jslib_handle(global_photos, (k), 0, 0);if(!t){t= _proxy_jslib_assign('', global_photos, (k), '=', ({id:k,title:e,src:V}))}else{t.id=k;t.title=e; _proxy_jslib_assign('', t, 'src', '=', (V))}t.secret=AF;t.server=j;t.farm=R; _proxy_jslib_assign('', t, 'toString', '=', (function(AJ,AN) {var AJ=(AJ)?AJ:this;var AN=(AN)?AN:1;var AM="";var AL="";for(var AK=0;AK<AN;AK++){AL+="\t"}if(AN==1){AM+="global_photos["+t.id+"] = {\n"}for(pr in AJ){if(typeof  _proxy_jslib_handle(AJ, (pr), 0, 0)=="function"){continue}AM+=AL+pr;if(typeof  _proxy_jslib_handle(AJ, (pr), 0, 0)=="object"){if( _proxy_jslib_handle(AJ, (pr), 0, 0).length!=undefined){AM+=" = [\n";AM+= _proxy_jslib_handle(t, 'toString', '', 1, 0)( _proxy_jslib_handle(AJ, (pr), 0, 0),AN+1);AM+=AL+"]\n"}else{AM+=" = {\n";AM+= _proxy_jslib_handle(t, 'toString', '', 1, 0)( _proxy_jslib_handle(AJ, (pr), 0, 0),AN+1);AM+=AL+"}\n"}}else{if(typeof  _proxy_jslib_handle(AJ, (pr), 0, 0)=="function"){AM+=": function\n"}else{if(typeof  _proxy_jslib_handle(AJ, (pr), 0, 0)=="string"){AM+=': "'+ _proxy_jslib_handle(AJ, (pr), 0, 0)+'"\n'}else{AM+=": "+ _proxy_jslib_handle(AJ, (pr), 0, 0)+"\n"}}}}if(AN==1){AM+="}\n"}return AM}));if(Z){_rebuild_tags_for_photos(k,Z)}if(c&&c!=""){t.license_id=c}if(c&&c!=""){t.is_favorite=l}if(B&&B!=""){t.date_taken=B}if(X!=undefined&&X!=""){t.date_taken_granularity=X}if(y&&y!=""){t.date_upload=y}if(A&&A!=""){t.date_update=A}if(O!=undefined&&O!=""){t.latitude=O}if(s!=undefined&&s!=""){t.longitude=s}if(AB!=undefined&&AB!=""){t.accuracy=AB}if(S!=undefined){t.description=S}if(M!=undefined){t.is_public=M}if(x!=undefined){t.is_friend=x}if(K!=undefined){t.is_family=K}if(D!=undefined&&!isNaN(D)){t.o_h=D*1}if(AA!=undefined&&!isNaN(AA)){t.o_w=AA*1}if(r&&r!=""){t.media=r}if(u!=undefined){t.video_failed=(u==1)?1:0}if(Q!=undefined){t.video_ready=(Q==1)?1:0}if(h!=undefined){t.video_duration=h}if(L!=undefined){t.video_width=L}if(N!=undefined){t.video_height=N}if(G!=undefined){t.safety_level=G}if(I!=undefined){t.content_type=I}if(P!=undefined){t.is_hidden=P}if(AD!=undefined){t.moderation_mode=AD}if(AI!=undefined){t.geo_is_public=AI}if(m!=undefined){t.geo_is_friend=m}if(AE!=undefined){t.geo_is_family=AE}if(o!=undefined){t.geo_is_contact=o}if(f!=undefined){t.perm_comment=f}if(g!=undefined){t.perm_addmeta=g}if(AG!=undefined){t.owner_nsid=AG}if(n!=undefined){t.owner_name=n}if(C!=undefined){t.owner_iconserver=C}if(W&&W.length){t.sets=[];for(var z=0;z<W.length;z++){t.sets.push( _proxy_jslib_handle(W, (z), 0, 0).getAttribute("id"))}}if(a&&a.length){t.pools=[];for(var z=0;z<a.length;z++){t.pools.push( _proxy_jslib_handle(a, (z), 0, 0).getAttribute("id"));if(! _proxy_jslib_handle(global_groups, ( _proxy_jslib_handle(a, (z), 0, 0).getAttribute("id")), 0, 0)){_upsert_group( _proxy_jslib_handle(a, (z), 0, 0))}}}return t};var _upsert_set=function(G) {var C=G.getAttribute("id");var H=G.getAttribute("primary");var J=G.getAttribute("server");var A=Math.ceil(J/1000);var I=G.getAttribute("secret");var D=G.getAttribute("id");var E=G.getAttribute("photos");var Q=G.getAttribute("videos");var L= _proxy_jslib_handle(G, 'getElementsByTagName', '', 1, 0)("photo");if(H&&H!=""){var B= _proxy_jslib_handle(global_photos, (H), 0, 0);if(!B){B= _proxy_jslib_assign('', global_photos, (H), '=', ({}));B.id=H}if(J&&J!=""&&I&&I!=""){ _proxy_jslib_assign('', B, 'src', '=', (J+"/"+B.id+"_"+I+"_s.jpg"));B.farm=A}}var M= _proxy_jslib_handle(G, 'getElementsByTagName', '', 1, 0)("title");if(M&&M[0]&&M[0].firstChild){var O= _proxy_jslib_handle(M[0].firstChild, 'nodeValue', '', 0, 0)}else{var O=G.getAttribute("title")}var N= _proxy_jslib_handle(G, 'getElementsByTagName', '', 1, 0)("description");if(N&&N[0]){if(N[0].firstChild){var P= _proxy_jslib_handle(N[0].firstChild, 'nodeValue', '', 0, 0)}else{var P=""}}var R= _proxy_jslib_handle(global_sets, (C), 0, 0);if(!R){R= _proxy_jslib_assign('', global_sets, (C), '=', ({id:C,primary_photo_id:H,photo_idsA:[]}))}else{R.id=C;R.primary_photo_id=H}if(D&&D!=""){R.owner=D}if(O&&O!=""){R.title=O}if(P!=undefined){R.description=P}var L= _proxy_jslib_handle(G, 'getElementsByTagName', '', 1, 0)("photo");if(L&&L.length){R.count=L.length;if(!G.getAttribute("page")||G.getAttribute("page")==1){R.photo_idsA=[]}for(var K=0;K<L.length;K++){var B=_upsert_photo( _proxy_jslib_handle(L, (K), 0, 0));R.photo_idsA.push(B.id)}}else{if(E!=""){R.count=_pi(E)}if(Q!=""){R.count=R.count+_pi(Q)}}return R};var _upsert_wallie=function(E) {var C=E.getAttribute("id");var G=E.getAttribute("primary");var I=E.getAttribute("server");var A=Math.ceil(I/1000);var H=E.getAttribute("secret");var D=E.getAttribute("id");var L=E.getAttribute("photos");var K= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("photo");if(G&&G!=""){var B= _proxy_jslib_handle(global_photos, (G), 0, 0);if(!B){B= _proxy_jslib_assign('', global_photos, (G), '=', ({}));B.id=G}if(I&&I!=""&&H&&H!=""){ _proxy_jslib_assign('', B, 'src', '=', (I+"/"+B.id+"_"+H+"_s.jpg"));B.farm=A}}var M= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("title");if(M&&M[0]&&M[0].firstChild){var O= _proxy_jslib_handle(M[0].firstChild, 'nodeValue', '', 0, 0)}else{var O=E.getAttribute("title")}var N= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("description");if(N&&N[0]){if(N[0].firstChild){var Q= _proxy_jslib_handle(N[0].firstChild, 'nodeValue', '', 0, 0)}else{var Q=""}}var P= _proxy_jslib_handle(global_wallies, (C), 0, 0);if(!P){P= _proxy_jslib_assign('', global_wallies, (C), '=', ({id:C,primary_photo_id:G,photo_idsA:[]}))}else{P.id=C;P.primary_photo_id=G}if(D&&D!=""){P.owner=D}if(O&&O!=""){P.title=O}if(Q!=undefined){P.description=Q}var K= _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("photo");if(K&&K.length){P.count=K.length;if(!E.getAttribute("page")||E.getAttribute("page")==1){P.photo_idsA=[]}for(var J=0;J<K.length;J++){var B=_upsert_photo( _proxy_jslib_handle(K, (J), 0, 0));P.photo_idsA.push(B.id)}}else{if(L!=""){P.count=L}}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 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  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(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_chrome:(navigator.userAgent.indexOf("Chrome/")>-1)?1:0,is_safari:(navigator.userAgent.indexOf("Safari")>-1)?1:0,is_ie:(document.all&&!window.opera)?1:0,is_ff2:(navigator.userAgent.indexOf("Firefox/2")>-1)?1:0,is_ff3:(navigator.userAgent.indexOf("Firefox/3")>-1)?1:0,is_opera:(navigator.userAgent.match(/opera/i)?1:0),is_mac:(navigator.appVersion.toLowerCase().indexOf("mac")>0)?1:0,output:{format_strs:{}}};F.border_radius=(F.is_ff3||F.is_chrome||F.is_safari);F.handle_changed_secret=function(E) {var C= _proxy_jslib_handle(E.documentElement, 'getElementsByTagName', '', 1, 0)("photoid");for(var B=0;B<C.length;B++){var G= _proxy_jslib_handle( _proxy_jslib_handle(C, (B), 0, 0).firstChild, 'nodeValue', '', 0, 0);var D= _proxy_jslib_handle(global_photos, (G), 0, 0);if(!D){continue}var A= _proxy_jslib_handle(C, (B), 0, 0).getAttribute("secret");D.secret=A; _proxy_jslib_assign('', D, 'src', '=', (D.server+"/"+D.id+"_"+A+"_s.jpg"))}};F.preload_images_defer=true;F.preloaded_queue=[];F.preload_images=function() {var B=0;for(var A=0;A<arguments.length;A++){if( _proxy_jslib_handle(arguments, (A), 0, 0)){B++;F.preloaded_queue.push( _proxy_jslib_handle(arguments, (A), 0, 0))}else{}}if(!F.preload_images_defer){F._preload_images_now()}};F._preload_images_now=function() {if(!F.preloaded){F.preloaded=[]}for(var A=0;A<F.preloaded_queue.length;A++){F.preloaded.push(document.createElement("img")); _proxy_jslib_assign('',  _proxy_jslib_handle(F.preloaded, (F.preloaded.length-1), 0, 0), 'src', '=', ( _proxy_jslib_handle(F.preloaded_queue, (A), 0, 0)))}F.preloaded_queue=[]};F._preload_images_ready=function() {F.preload_images_defer=false;F._preload_images_now()};F.get_month_index=function(B) {var A=B.substr(0,3).toUpperCase();for(var C=0;C<F.output.date_strs.months_abbA.length;C++){if(A== _proxy_jslib_handle(F.output.date_strs.months_abbA, (C), 0, 0)){return C}}return -1};F.make_unix_time_stamp=function(H,G,B,A,D,E) {var C=new (Date)(H,G-1,B,A,D,E);return C.getTime()/1000};F.convert_unix_time_stamp=function(A) {return new (Date)(A*1000)};F.convert_unix_time_stamp_into_MYSQLDateTime=function(A) {var B=new (Date)((A*1000));return this.make_MYSQLDateTime_stamp(B.getFullYear(),(B.getMonth()+1).addZeros(2),B.getDate().addZeros(2),B.getHours().addZeros(2),B.getMinutes().addZeros(2),B.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 B=A;return this.make_MYSQLDateTime_stamp(B.getFullYear(),(B.getMonth()+1).addZeros(2),B.getDate().addZeros(2),B.getHours().addZeros(2),B.getMinutes().addZeros(2),B.getSeconds().addZeros(2))};F.make_MYSQLDateTime_stamp=function(H,G,C,B,D,E) {var A="";if(H!=undefined){A+=H}else{return A}if(G!=undefined){A+="-"+G}else{return A}if(C!=undefined){A+="-"+C}else{return A}if(B!=undefined){A+=" "+B}else{return A}if(D!=undefined){A+=":"+D}else{return A}if(E!=undefined){A+=":"+E}else{return A}return A};F.convert_MYSQLDateTime_into_unix_time_stamp=function(B) {var A=this.convert_MYSQLDateTime(B);return Math.floor(A.getTime()/1000)};F.convert_MYSQLDateTime=function(A) {var B=A.split(" ");var C=B[0].split("-");var D=B[1].split(":");if(!D[0]||isNaN(D[0])){D[0]="00"}if(!D[1]||isNaN(D[1])){D[1]="00"}if(!D[2]||isNaN(D[2])){D[2]="00"}return new (Date)(C[0],(C[1]*1)-1,C[2],D[0],D[1],D[2])};F.set_hash=function(D) {var B= _proxy_jslib_handle( _proxy_jslib_handle(document, 'location', '', 0, 0), 'href', '', 0, 0).split("#");var C=B[0];var E=F.get_hash();if(D){ _proxy_jslib_assign('', document, 'location', '=', (C+"#"+D))}else{if(E){ _proxy_jslib_assign('', document, 'location', '=', (C+"#"))}else{}}};F.get_hash=function() {var B= _proxy_jslib_handle( _proxy_jslib_handle(document, 'location', '', 0, 0), 'href', '', 0, 0).split("#");return B[1]||""};F.scroll_this_el_into_view=function(M,A,N,E,D,B) {var C=(typeof M=="object")?M:_ge(M);if(!C){return }if(!A){A= _proxy_jslib_handle(document, 'body', '', 0, 0)}if(A== _proxy_jslib_handle(document, 'body', '', 0, 0)){A= _proxy_jslib_handle(document, 'body', '', 0, 0);var H=_find_screen_height();var L=Y.U.Dom.getY(C)}else{var H=A.offsetHeight;var L=Y.U.Dom.getY(C)-Y.U.Dom.getY(A)+A.scrollTop}var G=L+C.offsetHeight+5+(D?D:0);var K=H+A.scrollTop;var J=G-K;var I=Math.min(A.scrollTop+J,L);if((B||J>0)&&I!=A.scrollTop){anim_do_scroll_to_scrollTop(A,10,35,I,"easeInOutQuad",N,E);return 1}if(N&&E){N.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(O,G,L,H,E) {writeDebug("fit_text_in_block start");var J=new (Date)();H=(H)?H:"";E=(E)?E:"";var P=O;var B=G.style.display;var Q=G.style.visibility;G.style.visibility="hidden";G.style.display="block"; _proxy_jslib_assign('', G, 'innerHTML', '=', (H+P+E));writeDebug("BEFORE: h:"+G.offsetHeight+" max:"+L+" "+P);var K=0;if(G.offsetHeight>L&&P.length>1){K++; _proxy_jslib_assign('', G, 'innerHTML', '=', (H+"m"+E));var N=G.offsetHeight; _proxy_jslib_assign('', G, 'innerHTML', '=', (H+P+E));var C=(G.offsetHeight/N);var D=Math.floor(L/N);writeDebug("lh "+N+" lc "+C+" alc "+D);var M=G.offsetHeight-L;var A=Math.max(1,C-3)/D;writeDebug("DURING: diff:"+M+" times:"+A);P=P.truncate_with_ellipses(_pi(P.length/(A))); _proxy_jslib_assign('', G, 'innerHTML', '=', (H+P+E));writeDebug("lop a bunch: h:"+G.offsetHeight+" max:"+L+" "+P)}if(G.offsetHeight>L&&P.length>1){do{K++;P=P.truncate_with_ellipses(P.length-2); _proxy_jslib_assign('', G, 'innerHTML', '=', (H+P+E))}while(G.offsetHeight>L&&P.length>1)}writeAPIDebug("AFTER: c:"+K+" h:"+G.offsetHeight+" max:"+L+" "+P);G.style.visibility=Q;G.style.display=B;var I=new (Date)();writeDebug("fit_text_in_block Step 1 = "+(I-J)+"ms")};F.get_tags_from_input_str=function(I) {I=I.trim();if(I==""){return[]}var G=[];if(I.indexOf(",")!=-1){var D=I.split(",");for(var E=0;E<D.length;E++){var A= _proxy_jslib_handle(D, (E), 0, 0).trim();A= _proxy_jslib_handle(A, 'replace', '', 1, 0)('"',"");if(A!==""){G.push(A)}}}else{var D=I.split('"');for(var E=0;E<D.length;E++){var H= _proxy_jslib_handle(D, (E), 0, 0).trim();if(E%2==0){var C=H.split(" ");for(var B=0;B<C.length;B++){if( _proxy_jslib_handle(C, (B), 0, 0)!=""){G.push( _proxy_jslib_handle(C, (B), 0, 0))}}}else{if(H!=""){G.push(H)}}}}return G};F.array_copy=function(B) {var D=[];for(var C=0;C<B.length;C++){ _proxy_jslib_assign('', D, (C), '=', ( _proxy_jslib_handle(B, (C), 0, 0)))}return D};F.array_copy_except=function(B,D) {var E=[];for(var C=0;C<B.length;C++){if(D==undefined|| _proxy_jslib_handle(B, (C), 0, 0)!=D){E.push( _proxy_jslib_handle(B, (C), 0, 0))}}return E};F.array_index_of=function(B,D) {if(!B){if(F.array_index_of.caller==null){writeDebug("F.array_index_of was called from the top!")}else{writeDebug("F.array_index_of caller was "+F.array_index_of.caller)}}for(var C=0;C<B.length;C++){if( _proxy_jslib_handle(B, (C), 0, 0)==D){return C}}return -1};F.get_dates_from_form=function(L,I) {var M;var B;var E;var H=_ge(L+"date_posted_exact");var K=_ge(L+"time_posted_exact");if(H){var D= _proxy_jslib_handle(H, 'value', '', 0, 0).split("/");M=F.convert_MYSQLDateTime_into_unix_time_stamp(D[2]+"-"+D[0]+"-"+D[1]+" "+ _proxy_jslib_handle(K, 'value', '', 0, 0));if(I>0){M=M+I}}if(_ge(L+"date_taken_exact_div").style.display=="none"){var O=_ge(L+"date_taken_approx_month");var N=_ge(L+"date_taken_approx_year");B= _proxy_jslib_handle( _proxy_jslib_handle(N.options, (N.selectedIndex), 0, 0), 'value', '', 0, 0);if( _proxy_jslib_handle( _proxy_jslib_handle(O.options, (O.selectedIndex), 0, 0), 'value', '', 0, 0)!=0){E="4";B+="-"+ _proxy_jslib_handle( _proxy_jslib_handle(O.options, (O.selectedIndex), 0, 0), 'value', '', 0, 0)+"-01"}else{E="6";B+="-01-01"}B+=" 00:00:00"}else{var A=_ge(L+"date_taken_exact");var C=_ge(L+"time_taken_exact");var J= _proxy_jslib_handle(A, 'value', '', 0, 0).split("/");E="0";B=J[2]+"-"+J[0]+"-"+J[1]+" "+ _proxy_jslib_handle(C, 'value', '', 0, 0);if(I>0){var G=F.convert_MYSQLDateTime_into_unix_time_stamp(B);G=G+I;B=F.convert_unix_time_stamp_into_MYSQLDateTime(G)}}return{date_posted:M,date_taken:B,date_taken_granularity:E}};F.remove_el=function(B,C,D) {if(!B){if(F.remove_el.caller==null){writeDebug("F.remove_el was called from the top!")}else{writeDebug("F.remove_el caller was "+F.remove_el.caller)}return }if(D){F.drag_unreg(B)}for(var A=F._ebA.length-1;A>=0;A--){ _proxy_jslib_handle(F._ebA, (A), 0, 0).eb_remove(B)}C=(C)?C:B.parentNode;C.removeChild(B)};F.drag_unreg=function(C) {if(C.fumb_target){C.fumb_target.unreg()}if(C.fumb_drag){C.fumb_drag.unreg()}if(C.tree_coll_target){C.tree_coll_target.unreg()}if(C.tree_coll_drag){C.tree_coll_drag.unreg()}if(C.tree_set_target){C.tree_set_target.unreg()}if(C.tree_set_drag){C.tree_set_drag.unreg()}if(C.wallie_photo_drag){C.wallie_photo_drag.unreg()}if(C.wallie_photo_target){C.wallie_photo_target.unreg()}if(C.wallie_text_drag){C.wallie_text_drag.unreg()}if(C.wallie_text_target){C.wallie_text_target.unreg()}if(C.set_photo_drag){C.set_photo_drag.unreg()}if(C.set_photo_target){C.set_photo_target.unreg()}if(C.set_div_drag){C.set_div_drag.unreg()}if(C.set_div_target){C.set_div_target.unreg()}if(C.dot_drag){C.dot_drag.unreg()}if(C.dot_target){C.dot_target.unreg()}if(C.pinwin_thumb_drag){C.pinwin_thumb_drag.unreg()}if(C.pinwin_thumb_target){C.pinwin_thumb_target.unreg()}if(C.batch_photo_drag){C.batch_photo_drag.unreg()}if(C.batch_photo_target){C.batch_photo_target.unreg()}if(C.group_photo_drag){C.group_photo_drag.unreg()}if(C.group_photo_target){C.group_photo_target.unreg()}for(var A=C.childNodes.length-1;A>=0;A--){var B= _proxy_jslib_handle(C.childNodes, (A), 0, 0);F.drag_unreg(B)}};F.decorate=function(C,E,A,B) {if(!E){return }if(!C){return }if(!C.id&&!A){writeDebug("decorated els must have ids!");return }if(B){writeAPIDebug("F.decorate called, passed obj:");writeAPIDebug(_uber_toString(E))}if(typeof E._decotype=="object"){F.decorate(C,E._decotype)}for(p in E){if(p=="_decotype"){continue}try{ _proxy_jslib_assign('', C, (p), '=', ( _proxy_jslib_handle(E, (p), 0, 0)))}catch(D){break}}if(C.id){if( _proxy_jslib_handle(this._decoratedO, (C.id), 0, 0)){}else{ _proxy_jslib_assign('', this._decoratedO, (C.id), '=', ([]))} _proxy_jslib_handle(this._decoratedO, (C.id), 0, 0).push(C)}return C};F.changes_were_made=function() {this.changes_count=1};F.changes_were_saved=function() {this.changes_count=0};F.make_one_photo_edit_pop=function() {var A=document.createElement("div");A.id="one_photo_edit_pop"; _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(A);F.decorate(A,F._one_photo_edit_pop).pop_go_go_go();return A};F.make_batch_edit_pop=function(B,A) {var C=document.createElement("div");C.id="batch_edit_pop"; _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(C);F.decorate(C,F._batch_edit_pop).pop_go_go_go(B,A);return C};F.make_shadow=function(C,G,D,B) {var A=(D)?D: _proxy_jslib_handle(document, 'body', '', 0, 0);var E=document.createElement("div");E.id=C+"_shadow";if(B&&B.parentNode==D){A.insertBefore(E,B)}else{A.appendChild(E)}F.decorate(E,F._shadow).shadow_go_go_go(C,G,A);return E};_uber_toString=function(A,G,K,B) {var A=(A)?A:window;var G=(G)?G:1;var K=(K)?K:20;var B=(B)?B:(A.id)?A.id+".":(A.api_key)?"params.":"root.";var J=[];var I="";for(var D=0;D<G;D++){I+="\t"}if(G==1){_uber_toString._handled_Os_and_As=[A];J.push("{\n")}for(pr in A){try{var H=typeof  _proxy_jslib_handle(A, (pr), 0, 0);if(typeof  _proxy_jslib_handle(A, (pr), 0, 0)=="object"){H="object";if( _proxy_jslib_handle(A, (pr), 0, 0)==null){H="null"}else{if( _proxy_jslib_handle(A, (pr), 0, 0).length!=undefined){H="array ("+ _proxy_jslib_handle(A, (pr), 0, 0).length+")"}}}if( _proxy_jslib_handle(A, (pr), 0, 0)==_uber_toString){continue}if(typeof A=="object"&&A!=null&&A.length!=undefined&&typeof  _proxy_jslib_handle(A, (pr), 0, 0)=="function"){continue}J.push(I+B+pr+":"+H);if(H=="null"){J.push(": null\n")}else{if(typeof  _proxy_jslib_handle(A, (pr), 0, 0)=="object"){if( _proxy_jslib_handle(A, (pr), 0, 0).length!=undefined){J.push(" : [");var C="]\n"}else{J.push(" : {");var C="}\n"}if(F.array_index_of(_uber_toString._handled_Os_and_As, _proxy_jslib_handle(A, (pr), 0, 0))>-1){J.push("already been iterated over")}else{if(G>K){J.push(G+" is too deep ("+K+" is max)")}else{if(pr=="F"){J.push("F (Flickr) is not iterated over")}else{if(pr=="_decoratedO"){J.push("_decoratedO is not iterated over")}else{if(pr=="_ebA"){J.push("_ebA is not iterated over")}else{if(pr=="_eb_listeners"){J.push("_eb_listeners is not iterated over")}else{if(pr=="childNodes"){J.push("childNodes is not iterated over")}else{if(pr=="previousSibling"){J.push("previousSibling is not iterated over")}else{if(pr=="nextSibling"){J.push("nextSibling is not iterated over")}else{if(pr=="firstChild"){J.push("firstChild is not iterated over")}else{if(pr=="lastChild"){J.push("lastChild is not iterated over")}else{if(pr=="parentNode"){J.push("parentNode is not iterated over")}else{if(pr=="offsetParent"){J.push("offsetParent is not iterated over")}else{if(pr=="stvyle"){J.push("style is not iterated over")}else{if(pr=="attributes"){J.push("attributes is not iterated over")}else{if(pr=="ownerDocument"){J.push("ownerDocument is not iterated over")}else{_uber_toString._handled_Os_and_As.push( _proxy_jslib_handle(A, (pr), 0, 0));J.push("\n"+_uber_toString( _proxy_jslib_handle(A, (pr), 0, 0),G+1,K,B+pr+".")+I)}}}}}}}}}}}}}}}}J.push(C)}else{if(typeof  _proxy_jslib_handle(A, (pr), 0, 0)=="function"){J.push(" "+ _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(A, (pr), 0, 0), 'toString', '', 1, 0)().split("\n")[0], 'replace', '', 1, 0)("function ",""), 'replace', '', 1, 0)(" {","")+"\n")}else{if(typeof  _proxy_jslib_handle(A, (pr), 0, 0)=="string"){if(pr=="innerHTML"){J.push(': "'+pr+'"\n')}else{if(pr=="textContent"){J.push(': "'+pr+'"\n')}else{J.push(': "'+ _proxy_jslib_handle( _proxy_jslib_handle(A, (pr), 0, 0), 'replace', '', 1, 0)('"','\\"')+'"\n')}}}else{J.push(": "+ _proxy_jslib_handle(A, (pr), 0, 0)+"\n")}}}}}catch(E){writeDebug("OI! "+E.message);J.push(I+B+pr+": BARF OUT "+E.message+"\n");continue}}if(G==1){J.push("}\n")}return J.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=_proxy_jslib_new_function("return false")};var _enable_select=function() {document.onselectstart=_proxy_jslib_new_function("return true")};var _limit_textarea=function(B,A) {if( _proxy_jslib_handle(B, 'value', '', 0, 0).length>A){ _proxy_jslib_assign('', B, 'value', '=', ( _proxy_jslib_handle(B, 'value', '', 0, 0).substring(0,A)))}};var _el_is_in_a_link=function(A) {var B=A;while(B){if( _proxy_jslib_handle(B, 'href', '', 0, 0)){return 1}B=B.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(B,A) {return function() {return  _proxy_jslib_handle(B, (A), 0, 0).apply(B,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( _proxy_jslib_handle(document, 'body', '', 0, 0).clientHeight){return  _proxy_jslib_handle(document, 'body', '', 0, 0).clientHeight}}}};var _find_screen_width=function() {if(window.innerWidth){return window.innerWidth}else{if(document.documentElement.clientWidth){return document.documentElement.clientWidth}else{if( _proxy_jslib_handle(document, 'body', '', 0, 0).clientWidth){return  _proxy_jslib_handle(document, 'body', '', 0, 0).clientWidth}}}};var _hyperlink=function(C,L,A,J) {if(!A){A=" "}if(J==undefined){J="<br />"}if(!L){L=""}L= _proxy_jslib_handle(L, 'replace', '', 1, 0)(" ",A);if(C.indexOf("http://")>-1){var E=C.split("\n");for(var H=0;H<E.length;H++){var D= _proxy_jslib_handle(E, (H), 0, 0).split(" ");for(var K=0;K<D.length;K++){var M="";if( _proxy_jslib_handle(D, (K), 0, 0).substr(0,1)=="("){ _proxy_jslib_assign('', D, (K), '=', ( _proxy_jslib_handle( _proxy_jslib_handle(D, (K), 0, 0), 'replace', '', 1, 0)("(","")));M="("}if( _proxy_jslib_handle(D, (K), 0, 0).substr(0,7)=="http://"){var B= _proxy_jslib_handle(D, (K), 0, 0);var I="";if(B.substr(B.length-1,1)==")"){B=B.substr(0,B.length-1);I=")"}var G="";if(B.substr(B.length-1,1)=="."){B=B.substr(0,B.length-1);G="."} _proxy_jslib_assign('', D, (K), '=', ( _proxy_jslib_handle(('<a href="'+B+'" onclick="'+L+'">'+B+"</a>"+I+G), 'replace', '', 1, 0)(" ",A)))} _proxy_jslib_assign('', D, (K), '=', (M+ _proxy_jslib_handle(D, (K), 0, 0)))} _proxy_jslib_assign('', E, (H), '=', (D.join(" ")))}C=E.join(J+"\n")}return C};var global_js_tip_count=0;F.get_tip_html=function(D,E,A,C) {if(D.length==0){return""}A=(A==undefined)?"Tip":A;var B='<span style="display: none;" id="'+E+'">'+D+"</span>";if(!C){B+='<span class="'+A+'">[<a href="#" onclick="this.blur(); show_tooltip(this, \''+E+"', "+D.length+'); return false;">?</a>]</span>'}return B};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,D) {var C="mouse_tip_div_"+A.id;var E=_ge(C);if(E&&D){var B=F.get_tip_html(D,A.tip_id,"tip_mouse",1); _proxy_jslib_assign('', E, 'innerHTML', '=', (B));if(A.tip_mouse_is_over){hide_tooltip();show_tooltip(A,A.tip_id,0,"","ToolTipSmall")}}};F.make_new_mouse_tip=function(A,D) {var E=A.title;if(!E){E="no title found on el";return }A.title="";A.alt="";var C="mouse_tip_div_"+A.id;var G=_ge(C);if(!G){global_js_tip_count++;A.tip_id="js_tooltip_"+global_js_tip_count;A.tip_placement=D;var B=F.get_tip_html(E,A.tip_id,"tip_mouse",1);var G=document.createElement("DIV");G.id=C; _proxy_jslib_assign('', G, 'innerHTML', '=', (B)); _proxy_jslib_handle(document, 'body', '', 0, 0).insertBefore(G, _proxy_jslib_handle(document, 'body', '', 0, 0).childNodes[0]);G.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(C,E,H,D) {var A="";if(H){var B=new (Date)();B.setTime(B.getTime()+(H*24*60*60*1000));A="; expires="+B.toUTCString()}D=D||".flickr.com";var G=C+"="+escape(E)+A+"; path=/; domain="+D; _proxy_jslib_assign('', document, 'cookie', '=', (G));writeDebug("cookie set: "+G)};var _get_cookie=function(B) {var D=B+"=";var A= _proxy_jslib_handle(document, 'cookie', '', 0, 0).split(";");for(var C=0;C<A.length;C++){var E= _proxy_jslib_handle(A, (C), 0, 0);while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){if(B!="js_dbg"){writeDebug(E)}return unescape(E.substring(D.length,E.length))}}return null};var _delete_cookie=function(A) {_set_cookie(A,"",-1)};var _rebuild_tags_for_photos=function(C,K) {if( _proxy_jslib_handle(global_photos, (C), 0, 0)==undefined){return } _proxy_jslib_handle(global_photos, (C), 0, 0).tagsA=[]; _proxy_jslib_handle(global_photos, (C), 0, 0).tags_rawA=[]; _proxy_jslib_handle(global_photos, (C), 0, 0).tags_idA=[]; _proxy_jslib_handle(global_photos, (C), 0, 0).tags_nameA=[]; _proxy_jslib_handle(global_photos, (C), 0, 0).tags_isOwnerA=[]; _proxy_jslib_handle(global_photos, (C), 0, 0).tags_canDeleteA=[];for(var J=0;J<K.length;J++){var D= _proxy_jslib_handle(K, (J), 0, 0);var L= _proxy_jslib_handle(D.firstChild, 'nodeValue', '', 0, 0);var I=D.getAttribute("raw");var E=D.getAttribute("id");var H=(D.getAttribute("author_name")!=null)?D.getAttribute("author_name"):"";var G=(D.getAttribute("author")!=null)?D.getAttribute("author"):"";var B=( _proxy_jslib_handle(global_photos, (C), 0, 0).isOwner||global_nsid==G)?true:false;var A=(global_nsid==G)?true:false; _proxy_jslib_handle(global_photos, (C), 0, 0).tagsA.push(L); _proxy_jslib_handle(global_photos, (C), 0, 0).tags_rawA.push(I); _proxy_jslib_handle(global_photos, (C), 0, 0).tags_idA.push(E); _proxy_jslib_handle(global_photos, (C), 0, 0).tags_nameA.push(H); _proxy_jslib_handle(global_photos, (C), 0, 0).tags_isOwnerA.push(A); _proxy_jslib_handle(global_photos, (C), 0, 0).tags_canDeleteA.push(B)}};var global_single_shadow_div;var _make_single_shadow=function(G,B,C,A,E) {if(G==undefined){G=document.createElement("div");G.style.position="absolute"; _proxy_jslib_assign('', G.style, 'top', '=', ("0px"));G.style.left="0px"; _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(G)}window.global_single_shadow_height_plus=(B==undefined)?(12-24):B;window.global_single_shadow_width_plus=(C==undefined)?(12-24):C;window.global_single_shadow_x_plus=(A==undefined)?(-3):A;window.global_single_shadow_y_plus=(E==undefined)?(-3):E;if(navigator.userAgent.match(/msie 6/i)){var D='<table class="shadow_table" cellpadding="0" cellspacing="0" border="0" style="padding:0px;"><tr><td width="11"><img class="trans_png" width="11" height="11" src="'+_images_root+'/tc_white_shadow_tl.png"></td><td id="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><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><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>'}else{var D='<table class="shadow_table" cellpadding="0" cellspacing="0" border="0" style="padding:0px;"><tr><td width="11"><img width="11" height="11" src="'+_images_root+'/spaceout.gif" class="shadow_sprite shadow_tl"></td><td id="shadow_width_controller"><img width="100%" height="11" src="'+_images_root+'/spaceout.gif" class="shadow_sprite shadow_t"></td><td width="11"><img width="11" height="11" src="'+_images_root+'/spaceout.gif" class="shadow_sprite shadow_tr"></td></tr><tr><td height="30" id="shadow_height_controller"><img width="11" height="100%" src="'+_images_root+'/spaceout.gif" class="shadow_sprite shadow_l"></td><td></td><td><img width="11" height="100%" src="'+_images_root+'/spaceout.gif" class="shadow_sprite shadow_r"></td></tr><tr><td><img width="11" height="11" src="'+_images_root+'/spaceout.gif" class="shadow_sprite shadow_bl"></td><td><img id="shadow_width_controller2" width="100%" height="11" src="'+_images_root+'/spaceout.gif" class="shadow_sprite shadow_b"></td><td><img width="11" height="11" src="'+_images_root+'/spaceout.gif" class="shadow_sprite shadow_br"></td></tr></table>'} _proxy_jslib_assign('', G, 'innerHTML', '=', (D));G.style.zIndex="999";G.style.display="none";G.id="shadow_div";window._set_single_shadow_x=function(H) {G.style.marginLeft=(H+global_single_shadow_x_plus)+"px"};window._set_single_shadow_y=function(H) {G.style.marginTop=(H+global_single_shadow_y_plus)+"px"};window._set_single_shadow_height=function(I) {var H=_ge("shadow_height_controller");if(!H){return }var J=((I.offsetHeight)+global_single_shadow_height_plus);if(J<0){J=0}H.style.height=J+"px"};window._set_single_shadow_width=function(J) {var I=_ge("shadow_width_controller");var H=_ge("shadow_width_controller2");if(!I){return }var K=((J.offsetWidth)+global_single_shadow_width_plus);if(K<0){K=0}I.style.width=H.style.width=K+"px"};window.global_single_shadow_div=G};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%"; _proxy_jslib_handle(document, 'body', '', 0, 0).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= _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)(function() {A.place()},100)},place:function() {var C=_ge("global_modal_blocker");if(!C){return }if(window.innerWidth){var A=window.pageXOffset;var B=window.pageYOffset}else{var A= _proxy_jslib_handle(document, 'body', '', 0, 0).scrollLeft;var B= _proxy_jslib_handle(document, 'body', '', 0, 0).scrollTop} _proxy_jslib_assign('', C.style, 'top', '=', (B+"px"));C.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(C) {var B=_ge("comm_div");if(!B){B=document.createElement("DIV");B.id="comm_div";B.style.left=0; _proxy_jslib_assign('', B.style, 'top', '=', (0)); _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(B);B.modal_blocker=document.createElement("DIV");B.modal_blocker.id="modal_blocker";B.modal_blocker.style.position="absolute"; _proxy_jslib_assign('', B.modal_blocker.style, 'top', '=', (0));B.modal_blocker.default_style={};B.modal_blocker.style.backgroundColor=B.modal_blocker.default_style.backgroundColor="#999";B.modal_blocker.style.opacity=B.modal_blocker.default_style.opacity=".5";B.modal_blocker.style.filter=B.modal_blocker.default_style.filter="alpha(opacity=50)"; _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(B.modal_blocker)}var A="";if(!F.border_radius){A=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>'}else{A=A+'<table id="comm_table" cellpadding="0" cellspacing="0" border="0" style="width:200px;padding:0px;background:#fff;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding:3px"><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></table>'} _proxy_jslib_assign('', B, 'innerHTML', '=', (A));B.button_tr=_ge("comm_button_tr");B.pulser_img=_ge("comm_pulser_img");B.button_ok=_ge("comm_button_ok");B.button_cancel=_ge("comm_button_cancel");B.button_ok.onclick_func=function() {B.stop_comming();this.blur();if(typeof this.onclick_plus=="function"){this.onclick_plus()}if(typeof this.onclick_do=="function"){this.onclick_do()}};B.button_cancel.onclick_func=function() {B.stop_comming();this.blur();if(typeof this.onclick_plus=="function"){this.onclick_plus()}if(typeof this.onclick_do=="function"){this.onclick_do()}};B.table=_ge("comm_table");B.comm_msg_div=_ge("comm_msg_div");B.comm_form_div=_ge("comm_form_div");B.comm_progress_bar_div_wrapper=_ge("comm_progress_bar_div_wrapper");B.style.zIndex=C;B.style.display="none";if(B.modal_blocker){B.modal_blocker.style.zIndex=998;B.modal_blocker.style.display="none"}B.stop_comming=function() {if(this.modal_blocker){B.modal_blocker.style.zIndex=998;this.modal_blocker.style.display="none"}this.style.display="none";global_single_shadow_div.style.display="none";B.comm_form_div.style.display="none";B.comm_progress_bar_div_wrapper.style.display="none";_ge("comm_progress_bar_div").style.width=0;this.comming=0};B.change_comming_msg=function(I,G,D,H) {if(!I){return } _proxy_jslib_assign('', this.comm_msg_div, 'innerHTML', '=', (I));var E=Math.ceil(G*_ge("comm_progress_bar_div_inner").offsetWidth);anim_do_width_to(_ge("comm_progress_bar_div"),8,30,E,"linearTween",D,H);_set_single_shadow_height(this.table);_set_single_shadow_width(this.table)};B.get_rid_of_form=function() {if(!B.comm_form_div.childNodes[0]){return }var D=B.comm_form_div.childNodes[0];D.style.display="none";if(D.old_parentNode){D.old_parentNode.appendChild(F.prepare_for_insertion(D))}else{F.remove_el(D,B.comm_form_div)}B.comm_form_div.style.display="none"};B.start_comming=function(H,K,b,U,D,J,Z,N,O,V,E,a,G,T) {var W=(H!="NOTHING AT ALL");var R=(!H)?F.output.get("global_working"):H; _proxy_jslib_assign('', this.comm_msg_div, 'innerHTML', '=', (R));B.comm_form_div.style.display="none";if(E){B.get_rid_of_form();B.comm_form_div.style.display="block";E.style.display="block";if(E.old_parentNode!=B.comm_form_div){E.old_parentNode=E.parentNode}B.comm_form_div.appendChild(F.prepare_for_insertion(E))}B.comm_progress_bar_div_wrapper.style.display="none";if(G){B.comm_progress_bar_div_wrapper.style.display="block"}this.pulser_img.style.display=(U)?"none":"inline";if(D||N){this.button_tr.style.display=(F.is_ie)?"block":"table-row"; _proxy_jslib_assign('', this.button_ok, 'value', '=', ((J)?J.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=(D)?"visible":"hidden";this.button_ok.style.display=(D)?"inline":"none"; _proxy_jslib_assign('', this.button_cancel, 'value', '=', ((O)?O.toUpperCase():F.output.get("cancel")));this.button_cancel.onclick_do=(typeof V=="function")?V:null;this.button_cancel.style.visibility=(N)?"visible":"hidden";this.button_tr.style.display=(F.is_ie)?"block":"table-row";_ge("comm_table").style.width=(typeof T!="undefined"&&T?T+"px":"312px")}else{this.button_tr.style.display="none";_ge("comm_table").style.width=(typeof T!="undefined"&&T?T+"px":"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(a&&this.modal_blocker){this.modal_blocker.style.display="block";this.modal_blocker.style.backgroundColor=(a.backgroundColor)?a.backgroundColor:B.modal_blocker.default_style.backgroundColor;this.modal_blocker.style.opacity=(a.opacity)?a.opacity:B.modal_blocker.default_style.opacity;this.modal_blocker.style.filter=(a.filter)?a.filter:B.modal_blocker.default_style.filter}if(window.innerWidth){var c=window.innerWidth;var I=window.innerHeight;var M=window.pageXOffset;var L=window.pageYOffset}else{var c= _proxy_jslib_handle(document, 'body', '', 0, 0).clientWidth;var I= _proxy_jslib_handle(document, 'body', '', 0, 0).clientHeight;var M= _proxy_jslib_handle(document, 'body', '', 0, 0).scrollLeft;var L= _proxy_jslib_handle(document, 'body', '', 0, 0).scrollTop}var S=function() {var e=M+_pi((c-_pi(global_comm_div.table.offsetWidth))/2);return e};var X=function() {var e=L+_pi((I-global_comm_div.table.offsetHeight)/2);return e};var Q=(typeof K=="function")?K():(typeof K=="number")?K:S();var P=(typeof b=="function")?b():(typeof b=="number")?b:X();this.style.marginLeft=Q+"px";this.style.marginTop=P+"px";if(a&&this.modal_blocker){if(a.loc_style){ _proxy_jslib_assign('', this.modal_blocker.style, 'top', '=', ( _proxy_jslib_handle(a.loc_style, 'top', '', 0, 0)+"px"));this.modal_blocker.style.left=a.loc_style.left+"px";this.modal_blocker.style.width=a.loc_style.width+"px";this.modal_blocker.style.height=a.loc_style.height+"px"}else{ _proxy_jslib_assign('', this.modal_blocker.style, 'top', '=', (L+"px"));this.modal_blocker.style.left=M+"px";this.modal_blocker.style.width="100%";this.modal_blocker.style.height="100%"}}_set_single_shadow_x(Q);_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&&D&&navigator.userAgent.indexOf("KHTML")==-1){this.button_ok.focus()}this.comming=1};window.global_comm_div=B;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 B=F._ebA.length-1;B>=0;B--){var A= _proxy_jslib_handle(F._ebA, (B), 0, 0);A.eb_remove_all()}F._ebA=[];F._decoratedO={}};function _change_privacy(B) {var A=_ge("is_private_"+B).checked;_ge("is_friend_"+B).disabled=!A;_ge("is_family_"+B).disabled=!A}function _get_qs_args(D) {var C={};var H;var A=(D)? _proxy_jslib_handle(D.split("?"), (D.split("?").length-1), 0, 0): _proxy_jslib_handle( _proxy_jslib_handle(null, 'location', location, 0, 0), 'search', '', 0, 0).substring(1);H=A.split("&");for(var E=0;E<H.length;E++){var I= _proxy_jslib_handle(H, (E), 0, 0).indexOf("=");if(I!=-1){var B= _proxy_jslib_handle(H, (E), 0, 0).substring(0,I);var G= _proxy_jslib_handle(H, (E), 0, 0).substring(I+1); _proxy_jslib_assign('', C, (B), '=', (unescape(G)))}}return C}var _qs_args=_get_qs_args();var promos_show=function(B) {var E=_ge(B);var C=_ge(B+"_promo_div");var A=_ge(B+"_removed_div");if(!C){return }var D= _proxy_jslib_handle(B, 'replace', '', 1, 0)("promo_","promos_hide_");var G={}; _proxy_jslib_assign('', G, (D), '=', (0));C.flickr_prefs_setPrefs_onLoad=function() {};F.API.callMethod("flickr.prefs.setPrefs",G,C);C.style.visibility="visible";A.style.display="none";E.style.backgroundColor=""};var promos_remove=function(B) {var E=_ge(B);var C=_ge(B+"_promo_div");var A=_ge(B+"_removed_div");if(!C){return }var D= _proxy_jslib_handle(B, 'replace', '', 1, 0)("promo_","promos_hide_");var G={}; _proxy_jslib_assign('', G, (D), '=', (1));C.flickr_prefs_setPrefs_onLoad=function() {};F.API.callMethod("flickr.prefs.setPrefs",G,C);C.style.visibility="hidden";A.style.display="block";E.style.backgroundColor="#efefef"};function _privacy_specific_change(D,G) {D=(D)?D:"";var C=_ge(D+"is_private").checked;var B=_ge(D+"is_friend").checked;var A=_ge(D+"is_family").checked;var E=!C;_ge(D+"is_friend").disabled=!C;_ge(D+"is_family").disabled=!C;_ge(D+"is_friend_label").style.color=C?"black":"silver";_ge(D+"is_family_label").style.color=C?"black":"silver";if(C){if(B||A){_privacy_check_boxes(D+"perm_comment",false,false,true,true);_privacy_check_boxes(D+"perm_addmeta",false,false,true,true)}else{_privacy_check_boxes(D+"perm_comment",false,true,true,true);_privacy_check_boxes(D+"perm_addmeta",false,true,true,true)}}else{_privacy_check_boxes(D+"perm_comment",false,false,false,false);_privacy_check_boxes(D+"perm_addmeta",false,false,false,false)}if(!G&&(previous_public!=E||previous_friend!=B||previous_family!=A)){_privacy_try_and_check(D+"perm_comment",1);_privacy_try_and_check(D+"perm_addmeta",2);previous_public=E;previous_friend=B;previous_family=A}}function _privacy_default_change() {var C=_ge("is_private").checked;var B=_ge("is_friend").checked;var A=_ge("is_family").checked;var D=!C;_ge("is_friend").disabled=!C;_ge("is_family").disabled=!C;_ge("is_friend_label").style.color=C?"black":"silver";_ge("is_family_label").style.color=C?"black":"silver";_ge("perm_addmeta_disclaim").style.display=C?"block":"none";_ge("perm_comment_disclaim").style.display=C?"block":"none";if(C){if(B||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(D,C,B,H,G) {_ge(D+"_4").disabled=C;_ge(D+"_3").disabled=B;_ge(D+"_2").disabled=H;_ge(D+"_1").disabled=G;_ge(D+"_4_label").style.color=C?"silver":"black";_ge(D+"_3_label").style.color=B?"silver":"black";_ge(D+"_2_label").style.color=H?"silver":"black";_ge(D+"_1_label").style.color=G?"silver":"black";var A=false;for(var E=4;E>=1;E--){if(_ge(D+"_"+E).checked&&!_ge(D+"_"+E).disabled){return }}for(var E=1;E<=4;E++){if(!_ge(D+"_"+E).disabled){_ge(D+"_"+E).checked=true;return }}}function _privacy_try_and_check(A,C) {for(var B=C;B<=4;B++){if(!_ge(A+"_"+B).disabled){_ge(A+"_"+B).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(B) {var A=_ge("one_photo_edit_pop");if(!A){A=F.make_one_photo_edit_pop()}A.pop_show_start(B)};F.hide_featured_model=function() {var B=_ge("cfad");var A=0;anim_do_height_to(B,15,30,A,"easeOutQuad",function() {_ge("cfad_hide_link_p").style.display="none";_ge("cfad_show_link_p").style.display="block";B.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 B=_ge("cfad_iframe");var C=_ge("cfad");if(F.is_ie||F.is_safari){C.style.height="1px";C.style.display="block";_ge("cfad_hide_link_p").style.display="block";_ge("cfad_show_link_p").style.display="none"}else{C.style.height="0px";C.style.display="block"}if( _proxy_jslib_handle(B, 'src', '', 0, 0)=="javascript:void(0)"&&B.getAttribute("use_src")&&B.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";B.onload=function() {F.show_featured_model()}} _proxy_jslib_assign('', B, 'src', '=', (B.getAttribute("use_src")));if(!F.is_ie&&!F.is_safari){return }}var A=B.height;anim_do_height_to(C,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(B,A,C) {if(this.already_removing==undefined){this.already_removing=false}F.eb_broadcast("stewart_pause");if(this.already_removing){return }if(window.confirm(F.output.get("global_sure"))){if(_ge("sv_title_"+B)&&_ge("sv_body_"+B)){this.already_removing=true;this.vanish_photo(B)}else{ _proxy_jslib_assign('',  _proxy_jslib_handle(null, 'location', location, 0, 0), 'href', '=', (A+"?delete="+B+"&"+C));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 B=_ge("stewart_swf"+A+"_div");if(B){B.parentNode.removeChild(B)}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 B={flickr_photos_delete_onLoad:function(H,G,D,E) {if(!H){alert(F.output.get("global_sorry"));F._photo_vanisher.un_vanish_photo(E.photo_id)}}};var C=new (Object)();C.photo_id=A;F.API.callMethod("flickr.photos.delete",C,B,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,G) {var E=0;var B=0;for(var D in print_photos){B++;var C= _proxy_jslib_handle(print_photos, (D), 0, 0);E+=(Math.max(C.o_w,C.o_h)>=Math.max(A,G)&&Math.min(C.o_w,C.o_h)>=Math.min(A,G))}if(E==0){txt=" "+F.output.get("setprint_no_photos_large_enough")}else{if(E==B){txt=" "+F.output.get("setprint_all_photos_large_enough")}else{txt=" "+F.output.get("setprint_x_of_y_large_enough",E,B)}}return txt}; ;
_proxy_jslib_flush_write_buffers() ;