var undefined;if(!Function.prototype.call){Function.prototype.call=function(_1,_2){_1.base=this;_1.base(_2);};}if(0&&!Function.prototype.apply){Function.prototype.apply=function(o,p){var _5=new Array();if(!o){o=window;}if(!p){p=new Array();}for(var i=0;i<p.length;i++){_5[i]="p["+i+"]";}o.__apply__=this;var rv=eval("o.__apply__("+_5[i].join(", ")+")");o.__apply__=null;return rv;};}if(!Function.prototype.apply){Function.prototype.apply=function(_8,_9){var _a=[];var _b,call;if(!_8){_8=window;}if(!_9){_9=[];}for(var i=0;i<_9.length;i++){_a[i]="args["+i+"]";}call="oScope.__applyTemp__("+_a.join(",")+");";_8.__applyTemp__=this;_b=eval(call);_8.__applyTemp__=null;return _b;};}Date.prototype.customFormat=function(_d){var _e,YY,MMMM,MMM,MM,M,DDDD,DDD,DD,D,hhh,hh,h,mm,m,ss,s,ampm,dMod,th;YY=((_e=this.getFullYear())+"").substr(2,2);MM=(M=this.getMonth()+1)<10?("0"+M):M;MMM=(MMMM=["January","February","March","April","May","June","July","August","September","October","November","December"][M-1]).substr(0,3);DD=(D=this.getDate())<10?("0"+D):D;DDD=(DDDD=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][this.getDay()]).substr(0,3);th=(D>=10&&D<=20)?"th":((dMod=D%10)==1)?"st":(dMod==2)?"nd":(dMod==3)?"rd":"th";_d=_d.replace("#YYYY#",_e).replace("#YY#",YY).replace("#MMMM#",MMMM).replace("#MMM#",MMM).replace("#MM#",MM).replace("#M#",M).replace("#DDDD#",DDDD).replace("#DDD#",DDD).replace("#DD#",DD).replace("#D#",D).replace("#th#",th);h=(hhh=this.getHours());if(h==0){h=24;}if(h>12){h-=12;}hh=h<10?("0"+h):h;ampm=hhh<12?"am":"pm";mm=(m=this.getMinutes())<10?("0"+m):m;ss=(s=this.getSeconds())<10?("0"+s):s;return _d.replace("#hhh#",hhh).replace("#hh#",hh).replace("#h#",h).replace("#mm#",mm).replace("#m#",m).replace("#ss#",ss).replace("#s#",s).replace("#ampm#",ampm);};Date.prototype.flickr_date=function(){return this.customFormat("#D##th# #MMMM#, #YYYY#");};Date.prototype.flickr_minidate=function(){return this.customFormat("#D# #MMM# #YY#");};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 i=0,b=this.length,a=arguments;for(i;i<a.length;i++){this[b+i]=a[i];}return this.length;};}if(!Array.prototype.pop){Array.prototype.pop=function(){var b=this[this.length-1];this.length--;return b;};}if(!Array.prototype.shift){Array.prototype.shift=function(){var _11=this[0];for(var i=0;i<this.length-1;i++){this[i]=this[i+1];}this.length--;return _11;};}if(!Array.prototype.unshift){Array.prototype.unshift=function(){this.reverse();for(var i=arguments.length-1;i>=0;i--){this[this.length]=arguments[i];}this.reverse();return this.length;};}if(!Array.prototype.splice){function array_splice(ind,cnt){if(arguments.length==0){return ind;}if(typeof ind!="number"){ind=0;}if(ind<0){ind=Math.max(0,this.length+ind);}if(ind>this.length){if(arguments.length>2){ind=this.length;}else{return [];}}if(arguments.length<2){cnt=this.length-ind;}cnt=(typeof cnt=="number")?Math.max(0,cnt):0;removeArray=this.slice(ind,ind+cnt);endArray=this.slice(ind+cnt);this.length=ind;for(var i=2;i<arguments.length;i++){this[this.length]=arguments[i];}for(var i=0;i<endArray.length;i++){this[this.length]=endArray[i];}return removeArray;}Array.prototype.splice=array_splice;}var _numeric_sort_func=function(a,b){return (a-b);};var _alpha_sort_func=function(a,b){var a2=String(a).toLowerCase();var b2=String(b).toLowerCase();return (a2>b2)?1:((a2<b2)?-1:0);};Number.prototype.addZeros=function(p){if(this.toString().length>=p){return this;}return (new Array(p).join("0")+this).substr((new Array(p).join("0")+this).length-p);};Number.prototype.pretty_num=function(){var s=this.toString();sA=s.split(".");s1=sA[0];s2=(sA[1])?"."+sA[1]:"";if(s1.length<4){return s;}var s1c="";for(var i=s1.length-1;i>-1;i--){if(i<s1.length-1&&(s1.length-1-i)%3==0){s1c=","+s1c;}s1c=s1.charAt(i)+s1c;}return s1c+s2;};Number.prototype.truncate_geo_value=function(){var s=this.toString();sA=s.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=function(_22,_23){return this.split(_22).join(_23);};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(_24){var t=this;if(t.length>_24-3){t=t.substr(0,_24-3).trim()+"...";}return t;};String.prototype.truncate=function(_26){var t=this;if(t.length>_26){t=t.substr(0,_26);}return t;};document.getElementsByClass=function(_28,_29,_2a){if(!_29){_29="*";}var _2a=(_2a)?_2a:document;if(!_2a.getElementsByTagName){alert(_2a.id+"  has no getElementsByTagName method");}var _2b=_2a.getElementsByTagName(_29);var _2c=new Array();var i;var j;for(var i=0,j=0;i<_2b.length;i++){var c=" "+_2b[i].className+" ";if(c.indexOf(" "+_28+" ")!=-1){_2c[j++]=_2b[i];}}return _2c;};var global_photos={};var global_sets={};var global_collections={};var global_groups={};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(c,s,_32){var str="";if(!c){return str;}if(!c.server||!c.secret){str="/images/collection_default_l.gif";}else{var _34=Math.ceil(c.server/1000);var _32=(_32)?_32:_photo_root;var idA=c.id.split("-");var src=c.server+"/cols/"+idA[1]+"_"+c.secret+"_l.jpg";var _37=_32.replace("http://farm","http://farm"+_34);str=_37+src;if(p.src_cb){str+="?"+p.src_cb;}}if(s=="s"){str=str.replace("_l.jpg","_s.jpg");}return str;};var _get_photo_src=function(p,s,_3a){var str="";if(!p||!p.src){return str;}if(!s){s="s";}var src=p.src;if(s!="s"){src=src.replace("_s","_"+s);}var _3a=(_3a)?_3a:_photo_root;var _3d=_3a.replace("http://farm","http://farm"+p.farm);str=_3d+src;if(p.src_cb){str+="?"+p.src_cb;}return str;};var _upsert_user=function(_3e){var id=_3e.getAttribute("nsid");var _40=_3e.getAttribute("username");var _41=_3e.getAttribute("iconserver");var _42=_3e.getAttribute("expire");var _43=_3e.getAttribute("dbid");var _44=_3e.getElementsByTagName("username");if(_44&&_44[0]){var _45=_44[0];var _40=(_45.firstChild)?_45.firstChild.nodeValue:"";}if(_41&&_41!="0"){var _46=Math.ceil(_41/1000);var _47=_photo_root.replace("http://farm","http://farm"+_46);var _48=_47+_41+"/buddyicons/"+id+".jpg";}else{var _48=_images_root+"/buddyicon.jpg";}var u=global_users[id];if(!u){u=global_users[id]={id:id,name:_40,icon_url:_48};}else{u.id=id;u.name=_40;u.icon_url=_48;}if(_42){u.expire=_42;}if(_43){u.dbid=_43;}return u;};var _get_group_throttle_txt=function(g){var str="";if(g){if(g.throttle_mode=="disabled"){str=F.output.get("pool_uploads_disabled");}else{if(g.throttle_count){str=F.output.get("pool_uploads_throttled_"+g.throttle_mode,g.throttle_count.pretty_num());}else{str="";}}}return str;};var _upsert_group=function(_4c){var id=_4c.getAttribute("nsid");if(!id){id=_4c.getAttribute("id");}var _4e=_4c.getAttribute("name");if(!_4e){_4e=_4c.getAttribute("title");}var _4f=_4c.getAttribute("iconserver");if(_4f&&_4f!="0"){var _50=Math.ceil(_4f/1000);var _51=_photo_root.replace("http://farm","http://farm"+_50);var _52=_51+_4f+"/buddyicons/"+id+".jpg";}else{var _52=_images_root+"/buddyicon.jpg";}var g=global_groups[id];if(!g){g=global_groups[id]={id:id,name:_4e,icon_url:_52};}else{g.id=id;g.name=_4e;g.icon_url=_52;}return g;};var _upsert_photo_new=function(_54){if(!_54){return;}var ob={};if(typeof _54.getElementsByTagName!="function"){ob.id=_54.id;ob.server=_54.server;ob.secret=_54.secret;ob.title=_54.title;ob.date_taken=_54.datetaken;ob.date_taken_granularity=_54.datetakengranularity;ob.date_upload=_54.dateupload;ob.latitude=_54.latitude;ob.longitude=_54.longitude;ob.accuracy=_54.accuracy;ob.owner_nsid=_54.owner;ob.owner_name=_54.ownername;ob.owner_iconserver=_54.iconserver;ob.is_public=_54.ispublic;ob.is_friend=_54.isfriend;ob.is_family=_54.isfamily;ob.geo_is_public=_54.geoperms.ispublic;}else{ob.id=_54.getAttribute("id");ob.server=_54.getAttribute("server");ob.secret=_54.getAttribute("secret");var _56=_54.getElementsByTagName("title");if(_56&&_56[0]){var _57=_56[0];ob.title=(_57.firstChild)?_57.firstChild.nodeValue:"";var _58=_54.getElementsByTagName("description")[0];ob.description=(_58.firstChild)?_58.firstChild.nodeValue:"";ob.license_id=_54.getAttribute("license");ob.is_favorite=_54.getAttribute("isfavorite");var _59=_54.getElementsByTagName("visibility")[0];ob.is_public=_59.getAttribute("ispublic");ob.is_friend=_59.getAttribute("isfriend");ob.is_family=_59.getAttribute("isfamily");ob.safety_level=_59.getAttribute("safety_level");ob.content_type=_59.getAttribute("content_type");ob.is_hidden=_59.getAttribute("hidden");ob.moderation_mode=_59.getAttribute("moderation_mode");var _5a=_54.getElementsByTagName("dates")[0];ob.date_taken=_5a.getAttribute("taken");ob.date_taken_granularity=_5a.getAttribute("takengranularity");ob.date_upload=_5a.getAttribute("posted");ob.date_update=_5a.getAttribute("lastupdate");var _5b=_54.getElementsByTagName("owner")[0];ob.owner_nsid=_5b.getAttribute("nsid");ob.owner_name=_5b.getAttribute("username");ob.owner_iconserver=null;var _5c=_54.getElementsByTagName("geoperms");if(_5c&&_5c[0]){ob.geo_is_public=_5c[0].getAttribute("ispublic");ob.geo_is_friend=_5c[0].getAttribute("isfriend");ob.geo_is_family=_5c[0].getAttribute("isfamily");ob.geo_is_contact=_5c[0].getAttribute("iscontact");}var _5d=_54.getElementsByTagName("location");if(_5d&&_5d[0]){ob.latitude=_5d[0].getAttribute("latitude");ob.longitude=_5d[0].getAttribute("longitude");ob.accuracy=_5d[0].getAttribute("accuracy");}var _5e=_54.getElementsByTagName("permissions");if(_5e&&_5e[0]){ob.perm_comment=_5e[0].getAttribute("permcomment");ob.perm_addmeta=_5e[0].getAttribute("permaddmeta");}var _5e=_54.getElementsByTagName("permissions");if(_5e&&_5e[0]){ob.perm_comment=_5e[0].getAttribute("permcomment");ob.perm_addmeta=_5e[0].getAttribute("permaddmeta");}var _5f=_54.getElementsByTagName("tag");if(_5f){_rebuild_tags(ob,_5f);}var _60=_54.getElementsByTagName("set");if(_60&&_60.length){ob.sets=[];for(var i=0;i<_60.length;i++){ob.sets.push(_60[i].getAttribute("id"));}}var _62=_54.getElementsByTagName("pool");if(_62&&_62.length){ob.pools=[];for(var i=0;i<_62.length;i++){ob.pools.push(_62[i].getAttribute("id"));if(!global_groups[_62[i].getAttribute("id")]){_upsert_group(_62[i]);}}}}else{ob.title=_54.getAttribute("title");ob.date_taken=_54.getAttribute("datetaken");ob.date_taken_granularity=_54.getAttribute("datetakengranularity");ob.date_upload=_54.getAttribute("dateupload");ob.latitude=_54.getAttribute("latitude");ob.longitude=_54.getAttribute("longitude");ob.accuracy=_54.getAttribute("accuracy");ob.owner_nsid=_54.getAttribute("owner");ob.owner_name=_54.getAttribute("ownername");ob.owner_iconserver=_54.getAttribute("iconserver");ob.is_public=_54.getAttribute("ispublic");ob.is_friend=_54.getAttribute("isfriend");ob.is_family=_54.getAttribute("isfamily");}}var p=global_photos[ob.id];if(!p){p=global_photos[ob.id]={};}ob.farm=Math.ceil(ob.server/1000);ob.src=ob.server+"/"+ob.id+"_"+ob.secret+"_s.jpg";delete ob.secret;for(var _64 in ob){if(_64=="description"){p[_64]=ob[_64];continue;}if(ob[_64]!=""&&ob[_64]!=undefined){p[_64]=ob[_64];}}p.toString=function(){return _uber_toString(this,null,null,"g_p["+this.id+"].");};return p;};var _upsert_photo=function(_65){var id=_65.getAttribute("id");var _67=_65.getAttribute("server");var _68=Math.ceil(_67/1000);var src=_67+"/"+id+"_"+_65.getAttribute("secret")+"_s.jpg";var _6a=_65.getElementsByTagName("title");if(_6a&&_6a[0]){var _6b=_6a[0];var _6c=(_6b.firstChild)?_6b.firstChild.nodeValue:"";var _6d=_65.getElementsByTagName("description")[0];var _6e=(_6d.firstChild)?_6d.firstChild.nodeValue:"";var _6f=_65.getAttribute("license");var _70=_65.getAttribute("isfavorite");var _71=_65.getElementsByTagName("visibility")[0];var _72=_71.getAttribute("ispublic");var _73=_71.getAttribute("isfriend");var _74=_71.getAttribute("isfamily");var _75=_71.getAttribute("safety_level");var _76=_71.getAttribute("content_type");var _77=_71.getAttribute("hidden");var _78=_71.getAttribute("moderation_mode");var _79=_65.getElementsByTagName("geoperms");if(_79&&_79[0]){var _7a=_79[0].getAttribute("ispublic");var _7b=_79[0].getAttribute("isfriend");var _7c=_79[0].getAttribute("isfamily");var _7d=_79[0].getAttribute("iscontact");}var _7e=_65.getElementsByTagName("dates")[0];var _7f=_7e.getAttribute("taken");var _80=_7e.getAttribute("takengranularity");var _81=_7e.getAttribute("posted");var _82=_7e.getAttribute("lastupdate");var _83=_65.getElementsByTagName("owner")[0];var _84=_83.getAttribute("nsid");var _85=_83.getAttribute("username");var _86=null;var _87=_65.getElementsByTagName("location");if(_87&&_87[0]){var _88=_87[0].getAttribute("latitude");var _89=_87[0].getAttribute("longitude");var _8a=_87[0].getAttribute("accuracy");}var _8b=_65.getElementsByTagName("permissions");if(_8b&&_8b[0]){var _8c=_8b[0].getAttribute("permcomment");var _8d=_8b[0].getAttribute("permaddmeta");}var _8b=_65.getElementsByTagName("permissions");if(_8b&&_8b[0]){var _8c=_8b[0].getAttribute("permcomment");var _8d=_8b[0].getAttribute("permaddmeta");}var _8e=_65.getElementsByTagName("tag");var _8f=_65.getElementsByTagName("set");var _90=_65.getElementsByTagName("pool");}else{var _6c=_65.getAttribute("title");var _7f=_65.getAttribute("datetaken");var _80=_65.getAttribute("datetakengranularity");var _81=_65.getAttribute("dateupload");var _88=_65.getAttribute("latitude");var _89=_65.getAttribute("longitude");var _8a=_65.getAttribute("accuracy");var _84=_65.getAttribute("owner");var _85=_65.getAttribute("ownername");var _86=_65.getAttribute("iconserver");var _72=_65.getAttribute("ispublic");var _73=_65.getAttribute("isfriend");var _74=_65.getAttribute("isfamily");}var p=global_photos[id];if(!p){p=global_photos[id]={id:id,title:_6c,src:src};}else{p.id=id;p.title=_6c;p.src=src;}p.server=_67;p.farm=_68;p.toString=function(ob,d){var ob=(ob)?ob:this;var d=(d)?d:1;var str="";var _95="";for(var i=0;i<d;i++){_95+="\t";}if(d==1){str+="global_photos["+p.id+"] = {\n";}for(pr in ob){if(typeof ob[pr]=="function"){continue;}str+=_95+pr;if(typeof ob[pr]=="object"){if(ob[pr].length!=undefined){str+=" = [\n";str+=p.toString(ob[pr],d+1);str+=_95+"]\n";}else{str+=" = {\n";str+=p.toString(ob[pr],d+1);str+=_95+"}\n";}}else{if(typeof ob[pr]=="function"){str+=": function\n";}else{if(typeof ob[pr]=="string"){str+=": \""+ob[pr]+"\"\n";}else{str+=": "+ob[pr]+"\n";}}}}if(d==1){str+="}\n";}return str;};if(_8e){_rebuild_tags_for_photos(id,_8e);}if(_6f&&_6f!=""){p.license_id=_6f;}if(_6f&&_6f!=""){p.is_favorite=_70;}if(_7f&&_7f!=""){p.date_taken=_7f;}if(_80!=undefined&&_80!=""){p.date_taken_granularity=_80;}if(_81&&_81!=""){p.date_upload=_81;}if(_82&&_82!=""){p.date_update=_82;}if(_88!=undefined&&_88!=""){p.latitude=_88;}if(_89!=undefined&&_89!=""){p.longitude=_89;}if(_8a!=undefined&&_8a!=""){p.accuracy=_8a;}if(_6e!=undefined){p.description=_6e;}if(_72!=undefined){p.is_public=_72;}if(_73!=undefined){p.is_friend=_73;}if(_74!=undefined){p.is_family=_74;}if(_75!=undefined){p.safety_level=_75;}if(_76!=undefined){p.content_type=_76;}if(_77!=undefined){p.is_hidden=_77;}if(_78!=undefined){p.moderation_mode=_78;}if(_7a!=undefined){p.geo_is_public=_7a;}if(_7b!=undefined){p.geo_is_friend=_7b;}if(_7c!=undefined){p.geo_is_family=_7c;}if(_7d!=undefined){p.geo_is_contact=_7d;}if(_8c!=undefined){p.perm_comment=_8c;}if(_8d!=undefined){p.perm_addmeta=_8d;}if(_84!=undefined){p.owner_nsid=_84;}if(_85!=undefined){p.owner_name=_85;}if(_86!=undefined){p.owner_iconserver=_86;}if(_8f&&_8f.length){p.sets=[];for(var i=0;i<_8f.length;i++){p.sets.push(_8f[i].getAttribute("id"));}}if(_90&&_90.length){p.pools=[];for(var i=0;i<_90.length;i++){p.pools.push(_90[i].getAttribute("id"));if(!global_groups[_90[i].getAttribute("id")]){_upsert_group(_90[i]);}}}return p;};var _upsert_set=function(_98){var id=_98.getAttribute("id");var _9a=_98.getAttribute("primary");var _9b=_98.getAttribute("server");var _9c=Math.ceil(_9b/1000);var _9d=_98.getAttribute("secret");var _9e=_98.getAttribute("id");var _9f=_98.getAttribute("photos");var _a0=_98.getElementsByTagName("photo");if(_9a&&_9a!=""){var p=global_photos[_9a];if(!p){p=global_photos[_9a]={};p.id=_9a;}if(_9b&&_9b!=""&&_9d&&_9d!=""){p.src=_9b+"/"+p.id+"_"+_9d+"_s.jpg";p.farm=_9c;}}var _a2=_98.getElementsByTagName("title");if(_a2&&_a2[0]&&_a2[0].firstChild){var _a3=_a2[0].firstChild.nodeValue;}else{var _a3=_98.getAttribute("title");}var _a4=_98.getElementsByTagName("description");if(_a4&&_a4[0]){if(_a4[0].firstChild){var _a5=_a4[0].firstChild.nodeValue;}else{var _a5="";}}var s=global_sets[id];if(!s){s=global_sets[id]={id:id,primary_photo_id:_9a,photo_idsA:[]};}else{s.id=id;s.primary_photo_id=_9a;}if(_9e&&_9e!=""){s.owner=_9e;}if(_a3&&_a3!=""){s.title=_a3;}if(_a5!=undefined){s.description=_a5;}var _a0=_98.getElementsByTagName("photo");if(_a0&&_a0.length){s.count=_a0.length;if(!_98.getAttribute("page")||_98.getAttribute("page")==1){s.photo_idsA=[];}for(var i=0;i<_a0.length;i++){var p=_upsert_photo(_a0[i]);s.photo_idsA.push(p.id);}}else{if(_9f!=""){s.count=_9f;}}return s;};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(id){return document.getElementById(id);};var _pi=function(str){return parseInt(str,10);};var _pf=function(str){return parseFloat(str);};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};F.get_month_index=function(m){var cm=m.substr(0,3).toUpperCase();for(var i=0;i<F.output.date_strs.months_abbA.length;i++){if(cm==F.output.date_strs.months_abbA[i]){return i;}}return -1;};F.make_unix_time_stamp=function(_ae,_af,_b0,_b1,_b2,_b3){var _b4=new Date(_ae,_af-1,_b0,_b1,_b2,_b3);return _b4.getTime()/1000;};F.convert_unix_time_stamp=function(_b5){return new Date(_b5*1000);};F.convert_unix_time_stamp_into_MYSQLDateTime=function(_b6){var ld=new Date((_b6*1000));return this.make_MYSQLDateTime_stamp(ld.getFullYear(),(ld.getMonth()+1).addZeros(2),ld.getDate().addZeros(2),ld.getHours().addZeros(2),ld.getMinutes().addZeros(2),ld.getSeconds().addZeros(2));};F.convert_date_into_unix_time_stamp=function(_b8){return Math.floor(_b8.getTime()/1000);};F.convert_date_into_MYSQLDateTime=function(_b9){var ld=_b9;return this.make_MYSQLDateTime_stamp(ld.getFullYear(),(ld.getMonth()+1).addZeros(2),ld.getDate().addZeros(2),ld.getHours().addZeros(2),ld.getMinutes().addZeros(2),ld.getSeconds().addZeros(2));};F.make_MYSQLDateTime_stamp=function(_bb,_bc,_bd,_be,_bf,_c0){var txt="";if(_bb!=undefined){txt+=_bb;}else{return txt;}if(_bc!=undefined){txt+="-"+_bc;}else{return txt;}if(_bd!=undefined){txt+="-"+_bd;}else{return txt;}if(_be!=undefined){txt+=" "+_be;}else{return txt;}if(_bf!=undefined){txt+=":"+_bf;}else{return txt;}if(_c0!=undefined){txt+=":"+_c0;}else{return txt;}return txt;};F.convert_MYSQLDateTime_into_unix_time_stamp=function(_c2){var _c3=this.convert_MYSQLDateTime(_c2);return Math.floor(_c3.getTime()/1000);};F.convert_MYSQLDateTime=function(_c4){var _c5=_c4.split(" ");var cal=_c5[0].split("-");var tim=_c5[1].split(":");if(!tim[0]||isNaN(tim[0])){tim[0]="00";}if(!tim[1]||isNaN(tim[1])){tim[1]="00";}if(!tim[2]||isNaN(tim[2])){tim[2]="00";}return new Date(cal[0],(cal[1]*1)-1,cal[2],tim[0],tim[1],tim[2]);};F.set_hash=function(_c8){var A=document.location.href.split("#");var url=A[0];var _cb=F.get_hash();if(_c8){document.location=url+"#"+_c8;}else{if(_cb){document.location=url+"#";}else{}}};F.get_hash=function(){var A=document.location.href.split("#");return A[1]||"";};F.scroll_this_el_into_view=function(id,_ce,_cf,_d0,_d1){var el=_ge(id);if(!el){return;}if(!_ce){_ce=document.body;}if(_ce==document.body){_ce=document.body;var _d3=_find_screen_height();var _d4=_find_y(el);}else{var _d3=_ce.offsetHeight;var _d4=_find_y(el)-_find_y(_ce)+_ce.scrollTop;}var _d5=_d4+el.offsetHeight+5+(_d1?_d1:0);var _d6=_d3+_ce.scrollTop;var _d7=_d5-_d6;var _d8=Math.min(_ce.scrollTop+_d7,_d4);if(_d7>0&&_d8!=_ce.scrollTop){anim_do_scroll_to_scrollTop(_ce,10,35,_d8,"easeInOutQuad",_cf,_d0);return 1;}if(_cf&&_d0){_cf.apply(null,_d0);}return 0;};F.stop_event_propagation=function(e){if(!e){if(window.event){window.event.cancelBubble=true;}}else{e.stopPropagation();}};F.fit_text_in_block=function(_da,_db,_dc,_dd,_de){writeDebug("fit_text_in_block start");var _df=new Date();_dd=(_dd)?_dd:"";_de=(_de)?_de:"";var t=_da;var _e1=_db.style.display;var _e2=_db.style.visibility;_db.style.visibility="hidden";_db.style.display="block";_db.innerHTML=_dd+t+_de;writeDebug("BEFORE: h:"+_db.offsetHeight+" max:"+_dc+" "+t);var c=0;if(_db.offsetHeight>_dc&&t.length>1){c++;_db.innerHTML=_dd+"m"+_de;var lh=_db.offsetHeight;_db.innerHTML=_dd+t+_de;var lc=(_db.offsetHeight/lh);var alc=Math.floor(_dc/lh);writeDebug("lh "+lh+" lc "+lc+" alc "+alc);var _e7=_db.offsetHeight-_dc;var _e8=Math.max(1,lc-3)/alc;writeDebug("DURING: diff:"+_e7+" times:"+_e8);t=t.truncate_with_ellipses(_pi(t.length/(_e8)));_db.innerHTML=_dd+t+_de;writeDebug("lop a bunch: h:"+_db.offsetHeight+" max:"+_dc+" "+t);}if(_db.offsetHeight>_dc&&t.length>1){do{c++;t=t.truncate_with_ellipses(t.length-2);_db.innerHTML=_dd+t+_de;}while(_db.offsetHeight>_dc&&t.length>1);}writeAPIDebug("AFTER: c:"+c+" h:"+_db.offsetHeight+" max:"+_dc+" "+t);_db.style.visibility=_e2;_db.style.display=_e1;var _e9=new Date();writeDebug("fit_text_in_block Step 1 = "+(_e9-_df)+"ms");};F.get_tags_from_input_str=function(str){str=str.trim();if(str==""){return [];}var _eb=[];if(str.indexOf(",")!=-1){var _ec=str.split(",");for(var i=0;i<_ec.length;i++){var tag=_ec[i].trim();tag=tag.replace("\"","");if(tag!==""){_eb.push(tag);}}}else{var _ec=str.split("\"");for(var i=0;i<_ec.length;i++){var bit=_ec[i].trim();if(i%2==0){var _f0=bit.split(" ");for(var k=0;k<_f0.length;k++){if(_f0[k]!=""){_eb.push(_f0[k]);}}}else{if(bit!=""){_eb.push(bit);}}}}return _eb;};F.array_copy=function(A){var c=[];for(var i=0;i<A.length;i++){c[i]=A[i];}return c;};F.array_copy_except=function(A,_f6){var c=[];for(var i=0;i<A.length;i++){if(_f6==undefined||A[i]!=_f6){c.push(A[i]);}}return c;};F.array_index_of=function(A,_fa){for(var i=0;i<A.length;i++){if(A[i]==_fa){return i;}}return -1;};F.get_dates_from_form=function(_fc,_fd){var _fe;var _ff;var _100;var _101=_ge(_fc+"date_posted_exact");var _102=_ge(_fc+"time_posted_exact");if(_101){var d0A=_101.value.split("/");_fe=F.convert_MYSQLDateTime_into_unix_time_stamp(d0A[2]+"-"+d0A[0]+"-"+d0A[1]+" "+_102.value);if(_fd>0){_fe=_fe+_fd;}}if(_ge(_fc+"date_taken_exact_div").style.display=="none"){var _104=_ge(_fc+"date_taken_approx_month");var _105=_ge(_fc+"date_taken_approx_year");_ff=_105.options[_105.selectedIndex].value;if(_104.options[_104.selectedIndex].value!=0){_100="4";_ff+="-"+_104.options[_104.selectedIndex].value+"-01";}else{_100="6";_ff+="-01-01";}_ff+=" 00:00:00";}else{var _106=_ge(_fc+"date_taken_exact");var _107=_ge(_fc+"time_taken_exact");var dt0A=_106.value.split("/");_100="0";_ff=dt0A[2]+"-"+dt0A[0]+"-"+dt0A[1]+" "+_107.value;if(_fd>0){var _109=F.convert_MYSQLDateTime_into_unix_time_stamp(_ff);_109=_109+_fd;_ff=F.convert_unix_time_stamp_into_MYSQLDateTime(_109);}}return {date_posted:_fe,date_taken:_ff,date_taken_granularity:_100};};F.remove_el=function(el,p,_10c){if(_10c){F.drag_unreg(el);}p=(p)?p:el.parentNode;p.removeChild(el);};F.drag_unreg=function(el){if(el.fumb_target){el.fumb_target.unreg();}if(el.fumb_drag){el.fumb_drag.unreg();}if(el.tree_coll_target){el.tree_coll_target.unreg();}if(el.tree_coll_drag){el.tree_coll_drag.unreg();}if(el.tree_set_target){el.tree_set_target.unreg();}if(el.tree_set_drag){el.tree_set_drag.unreg();}if(el.set_photo_drag){el.set_photo_drag.unreg();}if(el.set_photo_target){el.set_photo_target.unreg();}if(el.set_div_drag){el.set_div_drag.unreg();}if(el.set_div_target){el.set_div_target.unreg();}if(el.dot_drag){el.dot_drag.unreg();}if(el.dot_target){el.dot_target.unreg();}if(el.pinwin_thumb_drag){el.pinwin_thumb_drag.unreg();}if(el.pinwin_thumb_target){el.pinwin_thumb_target.unreg();}if(el.batch_photo_drag){el.batch_photo_drag.unreg();}if(el.batch_photo_target){el.batch_photo_target.unreg();}if(el.group_photo_drag){el.group_photo_drag.unreg();}if(el.group_photo_target){el.group_photo_target.unreg();}for(var i=el.childNodes.length-1;i>=0;i--){var ch=el.childNodes[i];F.drag_unreg(ch);}};F.decorate=function(el,obj){if(!obj){return;}if(!el){return;}if(!el.id){writeDebug("decorated els must have ids!");return;}if(typeof obj._decotype=="object"){F.decorate(el,obj._decotype);}for(p in obj){if(p=="_decotype"){continue;}try{el[p]=obj[p];}catch(err){break;}}if(this._decoratedO[el.id]){}else{this._decoratedO[el.id]=[];}this._decoratedO[el.id].push(el);return el;};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 div=document.createElement("div");div.id="one_photo_edit_pop";document.body.appendChild(div);F.decorate(div,F._one_photo_edit_pop).pop_go_go_go();return div;};F.make_batch_edit_pop=function(_113,_114){var div=document.createElement("div");div.id="batch_edit_pop";document.body.appendChild(div);F.decorate(div,F._batch_edit_pop).pop_go_go_go(_113,_114);return div;};F.make_shadow=function(_116,_117,_118,_119){var _11a=(_118)?_118:document.body;var div=document.createElement("div");div.id=_116+"_shadow";if(_119&&_119.parentNode==_118){_11a.insertBefore(div,_119);}else{_11a.appendChild(div);}F.decorate(div,F._shadow).shadow_go_go_go(_116,_117,_11a);return div;};_uber_toString=function(ob,d,_11e,pre){var ob=(ob)?ob:window;var d=(d)?d:1;var _11e=(_11e)?_11e:20;var pre=(pre)?pre:(ob.id)?ob.id+".":(ob.api_key)?"params.":"root.";var strA=[];var tabs="";for(var i=0;i<d;i++){tabs+="\t";}if(d==1){_uber_toString._handled_Os_and_As=[ob];strA.push("{\n");}for(pr in ob){try{var type=typeof ob[pr];if(typeof ob[pr]=="object"){type="object";if(ob[pr]==null){type="null";}else{if(ob[pr].length!=undefined){type="array ("+ob[pr].length+")";}}}if(ob[pr]==_uber_toString){continue;}if(typeof ob=="object"&&ob!=null&&ob.length!=undefined&&typeof ob[pr]=="function"){continue;}strA.push(tabs+pre+pr+":"+type);if(type=="null"){strA.push(": null\n");}else{if(typeof ob[pr]=="object"){if(ob[pr].length!=undefined){strA.push(" : [");var end="]\n";}else{strA.push(" : {");var end="}\n";}if(F.array_index_of(_uber_toString._handled_Os_and_As,ob[pr])>-1){strA.push("already been iterated over");}else{if(d>_11e){strA.push(d+" is too deep ("+_11e+" is max)");}else{if(pr=="F"){strA.push("F (Flickr) is not iterated over");}else{if(pr=="_decoratedO"){strA.push("_decoratedO is not iterated over");}else{if(pr=="_ebA"){strA.push("_ebA is not iterated over");}else{if(pr=="_eb_listeners"){strA.push("_eb_listeners is not iterated over");}else{if(pr=="childNodes"){strA.push("childNodes is not iterated over");}else{if(pr=="previousSibling"){strA.push("previousSibling is not iterated over");}else{if(pr=="nextSibling"){strA.push("nextSibling is not iterated over");}else{if(pr=="firstChild"){strA.push("firstChild is not iterated over");}else{if(pr=="lastChild"){strA.push("lastChild is not iterated over");}else{if(pr=="parentNode"){strA.push("parentNode is not iterated over");}else{if(pr=="offsetParent"){strA.push("offsetParent is not iterated over");}else{if(pr=="stvyle"){strA.push("style is not iterated over");}else{if(pr=="attributes"){strA.push("attributes is not iterated over");}else{if(pr=="ownerDocument"){strA.push("ownerDocument is not iterated over");}else{_uber_toString._handled_Os_and_As.push(ob[pr]);strA.push("\n"+_uber_toString(ob[pr],d+1,_11e,pre+pr+".")+tabs);}}}}}}}}}}}}}}}}strA.push(end);}else{if(typeof ob[pr]=="function"){strA.push(" "+ob[pr].toString().split("\n")[0].replace("function ","").replace(" {","")+"\n");}else{if(typeof ob[pr]=="string"){if(pr=="innerHTML"){strA.push(": \""+pr+"\"\n");}else{if(pr=="textContent"){strA.push(": \""+pr+"\"\n");}else{strA.push(": \""+ob[pr].replace("\"","\\\"")+"\"\n");}}}else{strA.push(": "+ob[pr]+"\n");}}}}}catch(e){writeDebug("OI! "+e.message);strA.push(tabs+pre+pr+": BARF OUT "+e.message+"\n");continue;}}if(d==1){strA.push("}\n");}return strA.join("");};var _ok_for_swf=function(){if(actualVersion<6){return false;}return true;var ua=navigator.userAgent;if(navigator.appVersion.toLowerCase().indexOf("mac")>0){if(ua.indexOf("Gecko")==-1){return false;}}else{if(ua.indexOf("MSIE 5.6")>0||ua.indexOf("MSIE 5.5")>0||ua.indexOf("MSIE 6")>0||ua.indexOf("MSIE 7")>0){}else{if(ua.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(_126,max){if(_126.value.length>max){_126.value=_126.value.substring(0,max);}};var _el_is_in_a_link=function(el){var p=el;while(p){if(p.href){return 1;}p=p.parentNode;}return 0;};var _get_event_src=function(e){if(e&&e.target){return e.target;}if(e&&e.srcElement){return e.srcElement;}if(window.event){return window.event.srcElement;}return null;};var _get_event_keycode=function(e){if(e){return e.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(obj,meth){return function(){return obj[meth].apply(obj,arguments);};};var _find_x=function(pel,_12f){var el=pel;if(_12f){if(el.style.left){return _pi(el.style.left);}return el.offsetLeft;}var _131=0;if(el.offsetParent){while(el.offsetParent){if(el.getBoundingClientRect){if(el==pel){_131=el.getBoundingClientRect().left-2;_131+=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);}else{_131+=el.scrollLeft;}}else{_131+=el.offsetLeft;}el=el.offsetParent;}}else{if(el.x){_131+=el.x;}}return _131;};var _find_y=function(pel,_133){var el=pel;if(_133){if(el.style.top){return _pi(el.style.top);}return el.offsetTop;}var _135=0;if(el.offsetParent){while(el.offsetParent){if(el.getBoundingClientRect){if(el==pel){_135=el.getBoundingClientRect().top-2;_135+=Math.max(document.documentElement.scrollTop,document.body.scrollTop);}else{_135+=el.scrollTop;}}else{_135+=el.offsetTop;}el=el.offsetParent;}}else{if(el.y){_135+=el.y;}}return _135;};myPos={getPos:function(el){return [this.getX(el),this.getY(el)];return [_find_x(el,1),_find_y(el,1)];},getY:function(el){return _find_y(el);return _find_y(el,1);},getX:function(el){return _find_x(el);return _find_x(el,1);}};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 _decorate=function(){var el=arguments[0];if(!el){return;}arguments[0]=el;var _13a="decorate_"+el.className;if(window[_13a]){return window[_13a](arguments);}writeDebug(_13a+" is not a function");};var _hyperlink=function(txt){if(txt.indexOf("http://")>-1){var txtA=txt.split("\n");for(var y=0;y<txtA.length;y++){var _13e=txtA[y].split(" ");for(var t=0;t<_13e.length;t++){var _140="";if(_13e[t].substr(0,1)=="("){_13e[t]=_13e[t].replace("(","");_140="(";}if(_13e[t].substr(0,7)=="http://"){var url=_13e[t];var _142="";if(url.substr(url.length-1,1)==")"){url=url.substr(0,url.length-1);_142=")";}var _143="";if(url.substr(url.length-1,1)=="."){url=url.substr(0,url.length-1);_143=".";}_13e[t]="<a href=\""+url+"\" onclick=\"\">"+url+"</a>"+_142+_143;}_13e[t]=_140+_13e[t];}txtA[y]=_13e.join(" ");}txt=txtA.join("<br />");}return txt;};var global_js_tip_count=0;var _get_tip_html=function(txt,_145){if(txt.length==0){return "";}global_js_tip_count++;_145=(_145==undefined)?"Tip":_145;var _146="<span style=\"display: none;\" id=\"js_tooltip_"+global_js_tip_count+"\">"+txt+"</span>"+"<span class=\""+_145+"\">[<a href=\"#\" onclick=\"this.blur(); show_tooltip(this, 'js_tooltip_"+global_js_tip_count+"', "+txt.length+"); return false;\">?</a>]</span>";return _146;};var _set_cookie=function(name,_148,days,_14a){var _14b="";if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));_14b="; expires="+date.toUTCString();}_14a=_14a||".flickr.com";var str=name+"="+escape(_148)+_14b+"; path=/; domain="+_14a;document.cookie=str;writeDebug("cookie set: "+str);};var _get_cookie=function(name){var _14f=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1,c.length);}if(c.indexOf(_14f)==0){if(name!="js_dbg"){writeDebug(c);}return unescape(c.substring(_14f.length,c.length));}}return null;};var _delete_cookie=function(name){_set_cookie(name,"",-1);};var _rebuild_tags_for_photos=function(_154,tags){if(global_photos[_154]==undefined){return;}global_photos[_154].tagsA=[];global_photos[_154].tags_rawA=[];global_photos[_154].tags_idA=[];global_photos[_154].tags_canDeleteA=[];for(var t=0;t<tags.length;t++){var node=tags[t];var tag=node.firstChild.nodeValue;var _159=node.getAttribute("raw");var _15a=node.getAttribute("id");var _15b=node.getAttribute("author");var _15c=(global_photos[_154].isOwner||global_nsid==_15b)?true:false;global_photos[_154].tagsA.push(tag);global_photos[_154].tags_rawA.push(_159);global_photos[_154].tags_idA.push(_15a);global_photos[_154].tags_canDeleteA.push(_15c);}};var global_single_shadow_div;var _make_single_shadow=function(div,_15e,_15f,_160,_161){if(div==undefined){div=document.createElement("div");div.style.position="absolute";div.style.top="0px";div.style.left="0px";document.body.appendChild(div);}window.global_single_shadow_height_plus=(_15e==undefined)?(12-24):_15e;window.global_single_shadow_width_plus=(_15f==undefined)?(12-24):_15f;window.global_single_shadow_x_plus=(_160==undefined)?(-3):_160;window.global_single_shadow_y_plus=(_161==undefined)?(-3):_161;var html="";html+="<table class=\"shadow_table\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"padding:0px;\">";html+="<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>";html+="<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>";html+="<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>";div.innerHTML=html;div.style.zIndex="999";div.style.display="none";div.id="shadow_div";window._set_single_shadow_x=function(_163){div.style.marginLeft=(_163+global_single_shadow_x_plus)+"px";};window._set_single_shadow_y=function(_164){div.style.marginTop=(_164+global_single_shadow_y_plus)+"px";};window._set_single_shadow_height=function(_165){var el=_ge("shadow_height_controller");if(!el){return;}var d=((_165.offsetHeight)+global_single_shadow_height_plus);if(d<0){d=0;}el.style.height=d+"px";};window._set_single_shadow_width=function(_168){var el=_ge("shadow_width_controller");var el2=_ge("shadow_width_controller2");if(!el){return;}var d=((_168.offsetWidth)+global_single_shadow_width_plus);if(d<0){d=0;}el.style.width=el2.style.width=d+"px";};window.global_single_shadow_div=div;};var global_comm_div;var _make_comm_div=function(_16c){var div=_ge("comm_div");if(!div){div=document.createElement("DIV");div.id="comm_div";div.style.left=0;div.style.top=0;document.body.appendChild(div);div.modal_blocker=document.createElement("DIV");div.modal_blocker.id="modal_blocker";div.modal_blocker.style.position="absolute";div.modal_blocker.style.top=0;div.modal_blocker.default_style={};div.modal_blocker.style.backgroundColor=div.modal_blocker.default_style.backgroundColor="#999";div.modal_blocker.style.opacity=div.modal_blocker.default_style.opacity=".5";div.modal_blocker.style.filter=div.modal_blocker.default_style.filter="alpha(opacity=50)";document.body.appendChild(div.modal_blocker);}var html=""+"<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-family:arial; 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>";div.innerHTML=html;div.button_tr=_ge("comm_button_tr");div.pulser_img=_ge("comm_pulser_img");div.button_ok=_ge("comm_button_ok");div.button_cancel=_ge("comm_button_cancel");div.button_ok.onclick_func=function(){div.stop_comming();this.blur();if(typeof this.onclick_plus=="function"){this.onclick_plus();}if(typeof this.onclick_do=="function"){this.onclick_do();}};div.button_cancel.onclick_func=function(){div.stop_comming();this.blur();if(typeof this.onclick_plus=="function"){this.onclick_plus();}if(typeof this.onclick_do=="function"){this.onclick_do();}};div.table=_ge("comm_table");div.comm_msg_div=_ge("comm_msg_div");div.comm_form_div=_ge("comm_form_div");div.comm_progress_bar_div_wrapper=_ge("comm_progress_bar_div_wrapper");div.style.zIndex=_16c;div.style.display="none";if(div.modal_blocker){div.modal_blocker.style.zIndex=998;div.modal_blocker.style.display="none";}div.stop_comming=function(){if(this.modal_blocker){div.modal_blocker.style.zIndex=998;this.modal_blocker.style.display="none";}this.style.display="none";global_single_shadow_div.style.display="none";div.comm_form_div.style.display="none";div.comm_progress_bar_div_wrapper.style.display="none";_ge("comm_progress_bar_div").style.width=0;this.comming=0;};div.change_comming_msg=function(msg,perc,_171,_172){if(!msg){return;}this.comm_msg_div.innerHTML=msg;var w=Math.ceil(perc*_ge("comm_progress_bar_div_inner").offsetWidth);anim_do_width_to(_ge("comm_progress_bar_div"),8,30,w,"linearTween",_171,_172);_set_single_shadow_height(this.table);_set_single_shadow_width(this.table);};div.get_rid_of_form=function(){if(!div.comm_form_div.childNodes[0]){return;}var _174=div.comm_form_div.childNodes[0];_174.style.display="none";if(_174.old_parentNode){_174.old_parentNode.appendChild(F.dom.prepare_for_insertion(_174));}else{F.remove_el(_174,div.comm_form_div);}div.comm_form_div.style.display="none";};div.start_comming=function(msg,_176,_177,_178,_179,_17a,_17b,_17c,_17d,_17e,_17f,_180,_181){var _182=(msg!="NOTHING AT ALL");var txt=(!msg)?F.output.get("global_working"):msg;this.comm_msg_div.innerHTML=txt;div.comm_form_div.style.display="none";if(_17f){div.get_rid_of_form();div.comm_form_div.style.display="block";_17f.style.display="block";if(_17f.old_parentNode!=div.comm_form_div){_17f.old_parentNode=_17f.parentNode;}div.comm_form_div.appendChild(F.dom.prepare_for_insertion(_17f));}div.comm_progress_bar_div_wrapper.style.display="none";if(_181){div.comm_progress_bar_div_wrapper.style.display="block";}this.pulser_img.style.display=(_178)?"none":"inline";if(_179||_17c){this.button_tr.style.display=(F.is_ie)?"block":"table-row";this.button_ok.value=(_17a)?_17a.toUpperCase():F.output.get("ok");this.button_tr.style.display=(F.is_ie)?"block":"table-row";this.button_ok.onclick_do=(typeof _17b=="function")?_17b:null;this.button_ok.style.visibility=(_179)?"visible":"hidden";this.button_ok.style.display=(_179)?"inline":"none";this.button_cancel.value=(_17d)?_17d.toUpperCase():F.output.get("cancel");this.button_cancel.onclick_do=(typeof _17e=="function")?_17e:null;this.button_cancel.style.visibility=(_17c)?"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(_182){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(_180&&this.modal_blocker){this.modal_blocker.style.display="block";this.modal_blocker.style.backgroundColor=(_180.backgroundColor)?_180.backgroundColor:div.modal_blocker.default_style.backgroundColor;this.modal_blocker.style.opacity=(_180.opacity)?_180.opacity:div.modal_blocker.default_style.opacity;this.modal_blocker.style.filter=(_180.filter)?_180.filter:div.modal_blocker.default_style.filter;}if(window.innerWidth){var ww=window.innerWidth;var wh=window.innerHeight;var bgX=window.pageXOffset;var bgY=window.pageYOffset;}else{var ww=document.body.clientWidth;var wh=document.body.clientHeight;var bgX=document.body.scrollLeft;var bgY=document.body.scrollTop;}var _188=function(){var x=bgX+_pi((ww-_pi(global_comm_div.table.offsetWidth))/2);return x;};var _18a=function(){var y=bgY+_pi((wh-global_comm_div.table.offsetHeight)/2);return y;};var x=(typeof _176=="function")?_176():(typeof _176=="number")?_176:_188();var y=(typeof _177=="function")?_177():(typeof _177=="number")?_177:_18a();this.style.marginLeft=x+"px";this.style.marginTop=y+"px";if(_180&&this.modal_blocker){if(_180.loc_style){this.modal_blocker.style.top=_180.loc_style.top+"px";this.modal_blocker.style.left=_180.loc_style.left+"px";this.modal_blocker.style.width=_180.loc_style.width+"px";this.modal_blocker.style.height=_180.loc_style.height+"px";}else{this.modal_blocker.style.top=bgY+"px";this.modal_blocker.style.left=bgX+"px";this.modal_blocker.style.width=ww+"px";this.modal_blocker.style.height=wh+"px";}}_set_single_shadow_x(x);_set_single_shadow_y(y);_set_single_shadow_height(this.table);_set_single_shadow_width(this.table);global_single_shadow_div.style.display="block";if(_182&&_179&&navigator.userAgent.indexOf("KHTML")==-1){this.button_ok.focus();}this.comming=1;};window.global_comm_div=div;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(e){F._window_onload_dom();F.eb_broadcast("window_onload",e);};F._window_onresize=function(){F.eb_broadcast("window_onresize");};window.onbeforeunload=function(){F.eb_broadcast("window_onbeforeunload",F.changes_count);var msg=(window.page_onbeforeunload_msg)?window.page_onbeforeunload_msg:F.output.get("global_unsaved");if(F.changes_count){return msg;}};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 i=F._ebA.length-1;i>=0;i--){var eb=F._ebA[i];eb.eb_remove_all();}F._ebA=[];F._decoratedO={};};function _change_privacy(id){var _193=_ge("is_private_"+id).checked;_ge("is_friend_"+id).disabled=!_193;_ge("is_family_"+id).disabled=!_193;}function _get_qs_args(){var args={};var _195=location.search.substring(1).split("&");for(var i=0;i<_195.length;i++){var p=_195[i].indexOf("=");if(p!=-1){var name=_195[i].substring(0,p);var _199=_195[i].substring(p+1);args[name]=unescape(_199);}}return args;}var _qs_args=_get_qs_args();var promos_show=function(_19a){var _19b=_ge(_19a);var _19c=_ge(_19a+"_promo_div");var _19d=_ge(_19a+"_removed_div");if(!_19c){return;}var _19e=_19a.replace("promo_","promos_hide_");var _19f={};_19f[_19e]=0;_19c.flickr_prefs_setPrefs_onLoad=function(){};F.API.callMethod("flickr.prefs.setPrefs",_19f,_19c);_19c.style.visibility="visible";_19d.style.display="none";};var promos_remove=function(_1a0){var _1a1=_ge(_1a0);var _1a2=_ge(_1a0+"_promo_div");var _1a3=_ge(_1a0+"_removed_div");if(!_1a2){return;}var _1a4=_1a0.replace("promo_","promos_hide_");var _1a5={};_1a5[_1a4]=1;_1a2.flickr_prefs_setPrefs_onLoad=function(){};F.API.callMethod("flickr.prefs.setPrefs",_1a5,_1a2);_1a2.style.visibility="hidden";_1a3.style.display="block";_1a1.style.backgroundColor="#FFFFFF";setTimeout("anim_do_pink_fade(_ge(\""+_1a1.id+"\"))",300);};function _privacy_specific_change(_1a6,_1a7){_1a6=(_1a6)?_1a6:"";var _1a8=_ge(_1a6+"is_private").checked;var _1a9=_ge(_1a6+"is_friend").checked;var _1aa=_ge(_1a6+"is_family").checked;var _1ab=!_1a8;_ge(_1a6+"is_friend").disabled=!_1a8;_ge(_1a6+"is_family").disabled=!_1a8;_ge(_1a6+"is_friend_label").style.color=_1a8?"black":"silver";_ge(_1a6+"is_family_label").style.color=_1a8?"black":"silver";if(_1a8){if(_1a9||_1aa){_privacy_check_boxes(_1a6+"perm_comment",false,false,true,true);_privacy_check_boxes(_1a6+"perm_addmeta",false,false,true,true);}else{_privacy_check_boxes(_1a6+"perm_comment",false,true,true,true);_privacy_check_boxes(_1a6+"perm_addmeta",false,true,true,true);}}else{_privacy_check_boxes(_1a6+"perm_comment",false,false,false,false);_privacy_check_boxes(_1a6+"perm_addmeta",false,false,false,false);}if(!_1a7&&(previous_public!=_1ab||previous_friend!=_1a9||previous_family!=_1aa)){_privacy_try_and_check(_1a6+"perm_comment",1);_privacy_try_and_check(_1a6+"perm_addmeta",2);previous_public=_1ab;previous_friend=_1a9;previous_family=_1aa;}}function _privacy_default_change(){var _1ac=_ge("is_private").checked;var _1ad=_ge("is_friend").checked;var _1ae=_ge("is_family").checked;var _1af=!_1ac;_ge("is_friend").disabled=!_1ac;_ge("is_family").disabled=!_1ac;_ge("is_friend_label").style.color=_1ac?"black":"silver";_ge("is_family_label").style.color=_1ac?"black":"silver";_ge("perm_addmeta_disclaim").style.display=_1ac?"block":"none";_ge("perm_comment_disclaim").style.display=_1ac?"block":"none";if(_1ac){if(_1ad||_1ae){_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(name,a,b,c,d){_ge(name+"_4").disabled=a;_ge(name+"_3").disabled=b;_ge(name+"_2").disabled=c;_ge(name+"_1").disabled=d;_ge(name+"_4_label").style.color=a?"silver":"black";_ge(name+"_3_label").style.color=b?"silver":"black";_ge(name+"_2_label").style.color=c?"silver":"black";_ge(name+"_1_label").style.color=d?"silver":"black";var _1b5=false;for(var i=4;i>=1;i--){if(_ge(name+"_"+i).checked&&!_ge(name+"_"+i).disabled){return;}}for(var i=1;i<=4;i++){if(!_ge(name+"_"+i).disabled){_ge(name+"_"+i).checked=true;return;}}}function _privacy_try_and_check(name,min){for(var i=min;i<=4;i++){if(!_ge(name+"_"+i).disabled){_ge(name+"_"+i).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(p_id){var _1bb=_ge("one_photo_edit_pop");if(!_1bb){_1bb=F.make_one_photo_edit_pop();}_1bb.pop_show_start(p_id);};F.hide_featured_model=function(){var div=_ge("cfad");var h=0;anim_do_height_to(div,15,30,h,"easeOutQuad",function(){_ge("cfad_hide_link_p").style.display="none";_ge("cfad_show_link_p").style.display="block";div.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 _1be=_ge("cfad_iframe");var div=_ge("cfad");if(F.is_ie||F.is_safari){div.style.height="1px";div.style.display="block";_ge("cfad_hide_link_p").style.display="block";_ge("cfad_show_link_p").style.display="none";}else{div.style.height="0px";div.style.display="block";}if(_1be.src=="javascript:void(0)"&&_1be.getAttribute("use_src")&&_1be.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";_1be.onload=function(){F.show_featured_model();};}_1be.src=_1be.getAttribute("use_src");if(!F.is_ie&&!F.is_safari){return;}}var h=_1be.height;anim_do_height_to(div,15,30,h,"easeOutQuad",function(){F.API.callMethod("flickr.prefs.setPrefs",{promos_hide_featured_model:0},{flickr_prefs_setPrefs_onLoad:function(){}});},[]);};F._photo_vanisher={remove_photo:function(_1c1,_1c2,_1c3){if(this.already_removing==undefined){this.already_removing=false;}if(!this.already_removing&&window.confirm(F.output.get("global_sure"))){if(_ge("sv_title_"+_1c1)&&_ge("sv_body_"+_1c1)){this.already_removing=true;this.vanish_photo(_1c1);}else{location.href=_1c2+"?delete="+_1c1+"&"+_1c3;this.already_removing=false;}}},vanish_photo:function(_1c4){var _1c5=eval("function() {"+"_ge('sv_title_"+_1c4+"').style.display = 'none';"+"_ge('sv_body_"+_1c4+"').style.display = 'none'"+"}");anim_do_opacity_to(_ge("sv_title_"+_1c4),50,20,0,"easeOutQuad",_1c5);anim_do_opacity_to(_ge("sv_body_"+_1c4),50,20,0,"easeOutQuad",_1c5);F._photo_vanisher.api_remove_photo(_1c4);},api_remove_photo:function(_1c6){var _1c7={flickr_photos_delete_onLoad:function(_1c8,_1c9,_1ca,_1cb){if(!_1c8){alert(F.output.get("global_sorry"));F._photo_vanisher.un_vanish_photo(_1cb.photo_id);}}};var _1cc=new Object();_1cc.photo_id=_1c6;F.API.callMethod("flickr.photos.delete",_1cc,_1c7,null,null,0);this.already_removing=false;},un_vanish_photo:function(_1cd){if(_ge("sv_title_"+_1cd)&&_ge("sv_title_"+_1cd)){_ge("sv_title_"+_1cd).style.display="block";_ge("sv_body_"+_1cd).style.display="block";anim_do_opacity_to(_ge("sv_title_"+_1cd),50,20,100,"easeInQuad");anim_do_opacity_to(_ge("sv_body_"+_1cd),50,20,100,"easeInQuad");}this.already_removing=false;}};

