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.copy){Array.prototype.copy=function(){var c=[];for(var i=0;i<this.length;i++){c[i]=this[i];}return c;};}if(!Array.prototype.copy_except){Array.prototype.copy_except=function(_4){var c=[];for(var i=0;i<this.length;i++){if(_4==undefined||this[i]!=_4){c.push(this[i]);}}return c;};}if(!Array.prototype.index_of){Array.prototype.index_of=function(_5){for(var i=0;i<this.length;i++){if(this[i]==_5){return i;}}return -1;};}if(!Array.prototype.shift){Array.prototype.shift=function(){var _6=this[0];for(var i=0;i<this.length-1;i++){this[i]=this[i+1];}this.length--;return _6;};}var _numeric_sort_func=function(a,b){return (a-b);};Number.prototype.addZeros=function(p){if((""+this).length>=p){return this;}return (new Array(p).join("0")+this).substr((new Array(p).join("0")+this).length-p);};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(_9,_10){return this.split(_9).join(_10);};String.prototype.escape_for_xml=function(){return this.replace("&","&amp;").replace("\"","&quot;").replace("<","&lt;").replace(">","&gt;");};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(_11){var t=this;if(t.length>_11-3){t=t.substr(0,_11-3)+"...";}return t;};document.getElementsByClass=function(_13,_14){if(!_14){_14="*";}var _15=document.getElementsByTagName(_14);var _16=new Array();var i;var j;for(var i=0,j=0;i<_15.length;i++){var c=" "+_15[i].className+" ";if(c.indexOf(" "+_13+" ")!=-1){_16[j++]=_15[i];}}return _16;};var Flickr={id:"THE FLICKR OBJ",un_saved_changes:0,ebs:[]};Flickr.changes_were_made=function(){this.un_saved_changes=1;};Flickr.clear_ticket=function(){this.un_saved_changes=0;};var global_photos={};var global_sets={};var _upsert_photo=function(_18){var id=_18.getAttribute("id");var src=_18.getAttribute("server")+"/"+id+"_"+_18.getAttribute("secret")+"_s.jpg";var _21=_18.getElementsByTagName("title");if(_21&&_21[0]){var _22=_21[0];var _23=(_22.firstChild)?_22.firstChild.nodeValue:"";var _24=_18.getElementsByTagName("description")[0];var _25=(_24.firstChild)?_24.firstChild.nodeValue:"";var _26=_18.getAttribute("license");var _27=_18.getElementsByTagName("visibility")[0];var _28=_27.getAttribute("ispublic");var _29=_27.getAttribute("isfriend");var _30=_27.getAttribute("isfamily");var _31=_18.getElementsByTagName("dates")[0];var _32=_31.getAttribute("taken");var _33=_31.getAttribute("takengranularity");var _34=_31.getAttribute("posted");var _35=_31.getAttribute("lastupdate");var _36=_18.getElementsByTagName("location");if(_36&&_36[0]){var _37=_36[0].getAttribute("latitude");var _38=_36[0].getAttribute("longitude");var _39=_36[0].getAttribute("accuracy");}var _40=_18.getElementsByTagName("permissions");if(_40&&_40[0]){var _41=_40[0].getAttribute("permcomment");var _42=_40[0].getAttribute("permaddmeta");}var _43=_18.getElementsByTagName("tag");_rebuild_tags_for_photos(id,_43);}else{var _23=_18.getAttribute("title");var _32=_18.getAttribute("datetaken");var _34=_18.getAttribute("dateupload");var _37=_18.getAttribute("latitude");var _38=_18.getAttribute("longitude");var _39=_18.getAttribute("accuracy");}var p=global_photos[id];if(!p){p=global_photos[id]={id:id,title:_23,src:src};}else{p.id=id;p.title=_23;p.src=src;}p.toString=function(ob,d){var ob=(ob)?ob:this;var d=(d)?d:1;var str="";var _47="";for(var i=0;i<d;i++){_47+="\t";}if(d==1){str+="global_photos["+p.id+"] = {\n";}for(pr in ob){if(typeof ob[pr]=="function"){continue;}str+=_47+pr;if(typeof ob[pr]=="object"){if(ob[pr].length!=undefined){str+=" = [\n";str+=p.toString(ob[pr],d+1);str+=_47+"]\n";}else{str+=" = {\n";str+=p.toString(ob[pr],d+1);str+=_47+"}\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(_26&&_26!=""){p.license=_26;}if(_32&&_32!=""){p.date_taken=_32;}if(_33!=undefined&&_33!=""){p.date_taken_granularity=_33;}if(_34&&_34!=""){p.date_upload=_34;}if(_35&&_35!=""){p.date_update=_35;}if(_37!=undefined&&_37!=""){p.latitude=_37;}if(_38!=undefined&&_38!=""){p.longitude=_38;}if(_39!=undefined&&_39!=""){p.accuracy=_39;}if(_25!=undefined){p.description=_25;}if(_28!=undefined){p.is_public=_28;}if(_29!=undefined){p.is_friend=_29;}if(_30!=undefined){p.is_family=_30;}if(_41!=undefined){p.perm_comment=_41;}if(_42!=undefined){p.perm_addmeta=_42;}return p;};var _upsert_set=function(_48){var id=_48.getAttribute("id");var _49=_48.getAttribute("primary");var _50=_48.getAttribute("server");var _51=_48.getAttribute("secret");var _52=_48.getAttribute("id");var _53=_48.getAttribute("photos");var _54=_48.getElementsByTagName("photo");if(_49&&_49!=""){var p=global_photos[_49];if(!p){p=global_photos[_49]={};p.id=_49;}if(_50&&_50!=""&&_51&&_51!=""){p.src=_50+"/"+p.id+"_"+_51+"_s.jpg";}}var _55=_48.getElementsByTagName("title");if(_55&&_55[0]&&_55[0].firstChild){var _56=_55[0].firstChild.nodeValue;}else{var _56=_48.getAttribute("title");}var _57=_48.getElementsByTagName("description");if(_57&&_57[0]){if(_57[0].firstChild){var _58=_57[0].firstChild.nodeValue;}else{var _58="";}}var s=global_sets[id];if(!s){s=global_sets[id]={id:id,primary_photo_id:_49,photo_idsA:[]};}else{s.id=id;s.primary_photo_id=_49;}if(_52&&_52!=""){s.owner=_52;}if(_56&&_56!=""){s.title=_56;}if(_58!=undefined){s.description=_58;}var _54=_48.getElementsByTagName("photo");if(_54&&_54.length){s.count=_54.length;s.photo_idsA=[];for(var i=0;i<_54.length;i++){var p=_upsert_photo(_54[i]);s.photo_idsA.push(p.id);}}else{if(_53!=""){s.count=_53;}}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 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 _pi=function(str){return parseInt(str,10);};var _pf=function(str){return parseFloat(str);};_ge_cache_obj={};_ge_cache_retrieve=function(id){return _ge_cache_obj[id];};_ge_cache_add=function(el){_ge_cache_obj[el.id]=el;};_ge_cache_remove=function(el){if(!el){return;}if(el.id&&_ge_cache_obj[el.id]){_ge_cache_obj[el.id]=null;delete _ge_cache_obj[el.id];}for(var i=el.childNodes.length-1;i>-1;i--){_ge_cache_remove(el.childNodes[i]);}};var _ge=function(id){el=document.getElementById(id);return el;};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 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];var global_mn=["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"];var _get_month_index=function(m){var cm=m.substr(0,3).toUpperCase();for(var i=0;i<global_mn.length;i++){if(cm==global_mn[i]){return i;}}return -1;};_make_unix_time_stamp=function(_64,_65,_66,_67,_68,_69){var _70=new Date(_64,_65-1,_66,_67,_68,_69);return _70.getTime()/1000;};_convert_unix_time_stamp=function(_71){return new Date(_71*1000);};_convert_unix_time_stamp_into_MYSQLDateTime=function(_72){var ld=new Date((_72*1000));return _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));};_make_MYSQLDateTime_stamp=function(_74,_75,_76,_77,_78,_79){var txt="";if(_74!=undefined){txt+=_74;}else{return txt;}if(_75!=undefined){txt+="-"+_75;}else{return txt;}if(_76!=undefined){txt+="-"+_76;}else{return txt;}if(_77!=undefined){txt+=" "+_77;}else{return txt;}if(_78!=undefined){txt+=":"+_78;}else{return txt;}if(_79!=undefined){txt+=":"+_79;}else{return txt;}return txt;};_convert_MYSQLDateTime_into_unix_time_stamp=function(_81){var _82=_convert_MYSQLDateTime(_81);return Math.floor(_82.getTime()/1000);};_convert_MYSQLDateTime=function(_83){var _84=_83.split(" ");var cal=_84[0].split("-");var tim=_84[1].split(":");return new Date(cal[0],(cal[1]*1)-1,cal[2],tim[0],tim[1],tim[2]);};var _in_array=function(_87,_88){for(var i=_88.length-1;i>-1;i--){if(_88[i]==_87){return true;}}return false;};var _disable_select=function(){document.onselectstart=new Function("return false");};var _enable_select=function(){document.onselectstart=new Function("return true");};var _limit_textarea=function(_89,max){if(_89.value.length>max){_89.value=_89.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,_93){return function(){return obj[_93].apply(obj,arguments);};};var _find_x=function(el,_94){if(_94){if(el.style.left){return _pi(el.style.left);}return el.offsetLeft;}var _95=0;if(el.offsetParent){while(el.offsetParent){_95+=el.offsetLeft;el=el.offsetParent;}}else{if(el.x){_95+=el.x;}}return _95;};var _find_y=function(el,_96){if(_96){if(el.style.top){return _pi(el.style.top);}return el.offsetTop;}var _97=0;if(el.offsetParent){while(el.offsetParent){_97+=el.offsetTop;el=el.offsetParent;}}else{if(el.y){_97+=el.y;}}return _97;};myPos={getPos:function(el){return [_find_x(el),_find_y(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 _98="decorate_"+el.className;if(window[_98]){return window[_98](arguments);}writeDebug(_98+" is not a function");};var _pretty_list=function(_99){if(_99.length==1){return _99[0];}else{if(_99.length==2){return _99.join(" and ");}else{var last=_99.pop();return _99.join(", ")+" and "+last;}}};var _hyperlink=function(txt){if(txt.indexOf("http://")>-1){var txtA=txt.split("\n");for(var y=0;y<txtA.length;y++){var _103=txtA[y].split(" ");for(var t=0;t<_103.length;t++){var _104="";if(_103[t].substr(0,1)=="("){_103[t]=_103[t].replace("(","");_104="(";}if(_103[t].substr(0,7)=="http://"){var url=_103[t];var _106="";if(url.substr(url.length-1,1)==")"){url=url.substr(0,url.length-1);_106=")";}var _107="";if(url.substr(url.length-1,1)=="."){url=url.substr(0,url.length-1);_107=".";}_103[t]="<a href=\""+url+"\" onclick=\"\">"+url+"</a>"+_106+_107;}_103[t]=_104+_103[t];}txtA[y]=_103.join(" ");}txt=txtA.join("<br />");}return txt;};var global_js_tip_count=0;var _get_tip_html=function(txt,_108){if(txt.length==0){return "";}global_js_tip_count++;_108=(_108==undefined)?"Tip":_108;var _109="<span style=\"display: none;\" id=\"js_tooltip_"+global_js_tip_count+"\">"+txt+"</span>"+"<span class=\""+_108+"\">[<a href=\"#\" onclick=\"this.blur(); show_tooltip(this, 'js_tooltip_"+global_js_tip_count+"', "+txt.length+"); return false;\">?</a>]</span>";return _109;};var _set_cookie=function(name,_111,days){var _113="";if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));_113="; expires="+date.toGMTString();}var str=name+"="+_111+_113+"; path=/";document.cookie=str;};var _get_cookie=function(name){var _115=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(_115)==0){return c.substring(_115.length,c.length);}}return null;};var _delete_cookie=function(name){_set_cookie(name,"",-1);};var _rebuild_tags_for_photos=function(_117,tags){if(global_photos[_117]==undefined){return;}global_photos[_117].tagsA=[];global_photos[_117].tags_rawA=[];global_photos[_117].tags_idA=[];global_photos[_117].tags_canDeleteA=[];for(var t=0;t<tags.length;t++){var node=tags[t];var tag=node.firstChild.nodeValue;var _121=node.getAttribute("raw");var _122=node.getAttribute("id");var _123=node.getAttribute("author");var _124=(global_photos[_117].isOwner||global_nsid==_123)?true:false;global_photos[_117].tagsA.push(tag);global_photos[_117].tags_rawA.push(_121);global_photos[_117].tags_idA.push(_122);global_photos[_117].tags_canDeleteA.push(_124);}};var global_single_shadow_div;var _make_single_shadow=function(div,_126,_127,_128,_129){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=(_126==undefined)?(12-22):_126;window.global_single_shadow_width_plus=(_127==undefined)?(12-22):_127;window.global_single_shadow_x_plus=(_128==undefined)?(-5):_128;window.global_single_shadow_y_plus=(_129==undefined)?(-5):_129;var html="";html+="<table id=\"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/tc_white_shadow_tl.png\"></td><td id=\"shadow_width_controller\"><img class=\"trans_png\" width=\"100%\" height=\"11\" src=\"/images/tc_white_shadow_t.png\"></td><td width=\"11\"><img class=\"trans_png\" width=\"11\" height=\"11\" src=\"/images/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/tc_white_shadow_l.png\"></td><td></td><td><img class=\"trans_png\" width=\"11\" height=\"100%\" src=\"/images/tc_white_shadow_r.png\"></td></tr>";html+="<tr><td><img class=\"trans_png\" width=\"11\" height=\"11\" src=\"/images/tc_white_shadow_bl.png\"></td><td><img class=\"trans_png\" width=\"100%\" height=\"11\" src=\"/images/tc_white_shadow_b.png\"></td><td><img class=\"trans_png\" width=\"11\" height=\"11\" src=\"/images/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(_131){div.style.marginLeft=(_131+global_single_shadow_x_plus)+"px";};window._set_single_shadow_y=function(_132){div.style.marginTop=(_132+global_single_shadow_y_plus)+"px";};window._set_single_shadow_height=function(_133){var el=_ge("shadow_height_controller");if(!el){return;}var d=((_133.offsetHeight)+global_single_shadow_height_plus);if(d<0){d=0;}el.style.height=d+"px";};window._set_single_shadow_width=function(_134){var el=_ge("shadow_width_controller");if(!el){return;}var d=((_134.offsetWidth)+global_single_shadow_width_plus);if(d<0){d=0;}el.style.width=d+"px";};window.global_single_shadow_div=div;};var global_comm_div;var _make_comm_div=function(_135){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.style.backgroundColor="#999";div.modal_blocker.style.opacity=".5";div.modal_blocker.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/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/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/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>"+"<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=\"CANCEL\" onclick=\"this.onclick_func();\" style=\"margin:5px 5px 0 0;\">"+"</form>"+"</td>"+"<td class=\"td_white\"></td>"+"</tr>"+"<tr>"+"<td><img width=\"3\" height=\"3\" src=\"/images/tc_white_bl.gif\"></td>"+"<td class=\"td_white\"></td>"+"<td class=\"td_white\"></td>"+"<td><img width=\"3\" height=\"3\" src=\"/images/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=_135;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){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);_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 _139=div.comm_form_div.childNodes[0];_139.style.display="none";if(_139.old_parentNode){_139.old_parentNode.appendChild(_139);}else{_ge_cache_remove(_139);div.comm_form_div.removeChild(_139);}div.comm_form_div.style.display="none";};div.start_comming=function(msg,_140,_141,_142,_143,_144,_145,_146,_147,_148,_149,_150,_151){var txt=(!msg)?"working...":msg;this.comm_msg_div.innerHTML=txt;div.comm_form_div.style.display="none";if(_149){div.get_rid_of_form();div.comm_form_div.style.display="block";_149.style.display="block";if(_149.old_parentNode!=div.comm_form_div){_149.old_parentNode=_149.parentNode;}div.comm_form_div.appendChild(_149);}div.comm_progress_bar_div_wrapper.style.display="none";if(_151){div.comm_progress_bar_div_wrapper.style.display="block";}this.pulser_img.style.display=(_142)?"none":"inline";if(_143||_146){this.button_tr.style.display=(document.all&&!window.opera)?"block":"table-row";this.button_ok.value=(_144)?_144:"OK";this.button_tr.style.display=(document.all&&!window.opera)?"block":"table-row";this.button_ok.onclick_do=(typeof _145=="function")?_145:null;this.button_ok.style.visibility=(_143)?"visible":"hidden";this.button_ok.style.display=(_143)?"inline":"none";this.button_cancel.value=(_147)?_147:"CANCEL";this.button_cancel.onclick_do=(typeof _148=="function")?_148:null;this.button_cancel.style.visibility=(_146)?"visible":"hidden";this.button_tr.style.display=(document.all&&!window.opera)?"block":"table-row";}else{this.button_tr.style.display="none";}this.style.display="block";if(_150&&this.modal_blocker){this.modal_blocker.style.display="block";}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 _156=function(){var x=bgX+_pi((ww-_pi(global_comm_div.table.offsetWidth))/2);return x;};var _158=function(){var y=bgY+_pi((wh-global_comm_div.table.offsetHeight)/2);return y;};var x=(typeof _140=="function")?_140():(typeof _140=="number")?_140:_156();var y=(typeof _141=="function")?_141():(typeof _141=="number")?_141:_158();this.style.marginLeft=x+"px";this.style.marginTop=y+"px";if(_150&&this.modal_blocker){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(_143&&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;};flickr_eb=new Object();flickr_eb.initialize=function(obj){obj.eb_listeners=[];obj.eb_broadcast=this._broadcast_message;obj.eb_add=this._add_listener;obj.eb_remove=this._remove_listener;obj.eb_remove_all=this._remove_all_listeners;Flickr.ebs.push(obj);};JS_is_wonderful_as_AS=false;flickr_eb._broadcast_message=function(){if(JS_is_wonderful_as_AS){var _159=arguments.shift();}else{var _160=[];for(var i=0;i<arguments.length;i++){_160[i]=arguments[i];}var _159=_160.shift();}var list=this.eb_listeners.copy();var max=list.length;for(var i=0;i<max;++i){if(list[i][_159]){list[i][_159].apply(list[i],_160);}else{}}};flickr_eb._add_listener=function(obj){this.eb_remove(obj);this.eb_listeners.push(obj);return (true);};flickr_eb._remove_listener=function(obj){var list=this.eb_listeners;var i=list.length;while(i--){if(list[i]==obj){list.splice(i,1);return (true);}}return (false);};flickr_eb._remove_all_listeners=function(){this.eb_listeners=[];};flickr_eb.initialize(Flickr);window.onresize=function(){Flickr.eb_broadcast("window_onresize");};window.onbeforeunload=function(){Flickr.eb_broadcast("window_onbeforeunload",Flickr.un_saved_changes);if(Flickr.un_saved_changes){return "You have unsaved changes.";}};window.onblur=function(){window.blurred=1;};window.onfocus=function(){window.blurred=0;};window.onunload=function(){Flickr.eb_broadcast("window_unload");_ge_cache_obj={};for(var i=Flickr.ebs.length-1;i>=0;i--){var eb=Flickr.ebs[i];eb.eb_remove_all();}Flickr.ebs=[];};function _change_privacy(id){var _163=_ge("is_private_"+id).checked;_ge("is_friend_"+id).disabled=!_163;_ge("is_family_"+id).disabled=!_163;}function _get_qs_args(){var args={};var _165=location.search.substring(1).split("&");for(var i=0;i<_165.length;i++){var p=_165[i].indexOf("=");if(p!=-1){var name=_165[i].substring(0,p);var _166=_165[i].substring(p+1);args[name]=unescape(_166);}}return args;}var _qs_args=_get_qs_args();var promos_show=function(_167){var _168=_ge(_167);var _169=_ge(_167+"_promo_div");var _170=_ge(_167+"_removed_div");if(!_169){return;}var _171={};if(_167=="promo_do_more"){_171["promos_hide_do_more"]=0;}else{if(_167=="promo_reupgrade"){_171["promos_hide_reupgrade"]=0;}else{if(_167=="promo_proexpire"){_171["promos_hide_proexpire"]=0;}else{if(_167=="promo_intro"){_171["promos_hide_intro"]=0;}else{return false;}}}}_169.flickr_prefs_setPrefs_onLoad=function(){};flickrAPI.callMethod("flickr.prefs.setPrefs",_171,_169);_169.style.visibility="visible";_170.style.display="none";};var promos_remove=function(_172){var _173=_ge(_172);var _174=_ge(_172+"_promo_div");var _175=_ge(_172+"_removed_div");if(!_174){return;}var _176={};if(_172=="promo_do_more"){_176["promos_hide_do_more"]=1;}else{if(_172=="promo_reupgrade"){_176["promos_hide_reupgrade"]=1;}else{if(_172=="promo_proexpire"){_176["promos_hide_proexpire"]=1;}else{if(_172=="promo_intro"){_176["promos_hide_intro"]=1;}else{return false;}}}}_174.flickr_prefs_setPrefs_onLoad=function(){};flickrAPI.callMethod("flickr.prefs.setPrefs",_176,_174);_174.style.visibility="hidden";_175.style.display="block";_173.style.backgroundColor="#FFFFFF";setTimeout("anim_do_pink_fade(_ge(\""+_173.id+"\"))",300);};function _privacy_specific_change(_177,_178){_177=(_177)?_177:"";var _179=_ge(_177+"is_private").checked;var _180=_ge(_177+"is_friend").checked;var _181=_ge(_177+"is_family").checked;var _182=!_179;_ge(_177+"is_friend").disabled=!_179;_ge(_177+"is_family").disabled=!_179;_ge(_177+"is_friend_label").style.color=_179?"black":"silver";_ge(_177+"is_family_label").style.color=_179?"black":"silver";if(_179){if(_180||_181){_privacy_check_boxes(_177+"perm_comment",false,false,true,true);_privacy_check_boxes(_177+"perm_addmeta",false,false,true,true);}else{_privacy_check_boxes(_177+"perm_comment",false,true,true,true);_privacy_check_boxes(_177+"perm_addmeta",false,true,true,true);}}else{_privacy_check_boxes(_177+"perm_comment",false,false,false,false);_privacy_check_boxes(_177+"perm_addmeta",false,false,false,false);}if(!_178&&(previous_public!=_182||previous_friend!=_180||previous_family!=_181)){_privacy_try_and_check(_177+"perm_comment",1);_privacy_try_and_check(_177+"perm_addmeta",2);previous_public=_182;previous_friend=_180;previous_family=_181;}}function _privacy_default_change(){var _183=_ge("is_private").checked;var _184=_ge("is_friend").checked;var _185=_ge("is_family").checked;var _186=!_183;_ge("is_friend").disabled=!_183;_ge("is_family").disabled=!_183;_ge("is_friend_label").style.color=_183?"black":"silver";_ge("is_family_label").style.color=_183?"black":"silver";_ge("perm_addmeta_disclaim").style.display=_183?"block":"none";_ge("perm_comment_disclaim").style.display=_183?"block":"none";if(_183){if(_184||_185){_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 _187=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=(document.all)?"block":"table-row";_ge("detailrow").style.display=(document.all)?"block":"table-row";}function _privacy_show_less(){_ge("morerow").style.display=(document.all)?"block":"table-row";_ge("lessrow").style.display="none";_ge("detailrow").style.display="none";}
