F._corrections_box={created:false,snag:1,show_right_side:true,has_the_map_moved_or_what:false,corrections_box_go_go_go:function() {F.eb_add(this);this.created=true;F.decorate(_ge("one_corrections_close_img"),F._simple_button).button_go_go_go();this.pop_shadow_id=F.make_shadow(this.id,10008).id;},show:function(r) {if(!_ge("f_div_corrections_box_holder_border").created){F.decorate(_ge("f_div_corrections_box_holder_border"),F._corrections_box).corrections_box_go_go_go();_ge("f_div_corrections_box_holder_border").show(r);return ;}scrollTo(0,0);F.eb_broadcast("stewart_pause");var P=_find_screen_width();var B=0;var Z=724;var l=B+_pi((P-Z)/2);l=Math.max(l,1);Y.U.Dom.setStyle(_ge("f_div_corrections_box_holder_border"),"left",l+"px");Y.U.Dom.setStyle(_ge("f_div_corrections_box_holder_border"),"display","block");_ge(_ge("f_div_corrections_box_holder_border").pop_shadow_id).shadow_size_and_place();_ge(_ge("f_div_corrections_box_holder_border").pop_shadow_id).shadow_show();F.decorate(_ge("f_div_corrections_right_side"),F._corrections_box.right_side_holder).right_side_holder_go_go_go(r);if(!F.is_ie){Y.U.Dom.setStyle("div_geo_feedback_list_alternative_locations_list_ul","margin-left","-25px");}else{Y.U.Dom.setStyle("div_geo_feedback_list_alternative_locations_list_ul","margin-left","15px");}if(F.is_safari){Y.U.Dom.setStyle("f_div_corrections_psst_holder","width","200px");} _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_box_holder_border').map_box.show("+r+")",50);F.modal_blocker.show();},hide:function() {_ge(this.pop_shadow_id).shadow_hide();Y.U.Dom.setStyle("div_geo_feedback_finding_locations","display","none");Y.U.Dom.setStyle("div_geo_remove_location_confirm","display","none");Y.U.Dom.setStyle("div_geo_perms","display","none");Y.U.Dom.setStyle("div_geo_feedback_list_locations","display","none");Y.U.Dom.setStyle("div_geo_feedback_saving","display","none");Y.U.Dom.setStyle("div_geo_feedback_finding_alternative_locations","display","none");Y.U.Dom.setStyle("div_geo_feedback_list_alternative_locations","display","none");Y.U.Dom.setStyle("div_geo_removing","display","none");Y.U.Dom.setStyle("div_geo_other_photos","display","none");Y.U.Dom.setStyle("div_geo_saved_success","display","none");Y.U.Dom.setStyle("div_geo_removed_success","display","none");Y.U.Dom.setStyle("div_corrections_main_form_geotagged","display","none");Y.U.Dom.setStyle("div_corrections_search_results_clicked","display","none");Y.U.Dom.setStyle("div_corrections_search_no_results","display","none");Y.U.Dom.setStyle("div_corrections_search_results_clicked","display","none");Y.U.Dom.setStyle("div_corrections_main_form","display","none");Y.U.Dom.setStyle("pp_geo","display","none");Y.U.Dom.setStyle("f_div_corrections_map_holder","display","block");if(_has_geo){Y.U.Dom.setStyle("div_corrections_main_form_geotagged","display","block");}else{Y.U.Dom.setStyle("div_corrections_main_form","display","block");}Y.U.Dom.setStyle(this,"display","none");F.modal_blocker.hide();F.eb_broadcast("stewart_play_if_was_playing");return false;},window_onresize:function() {var r=window.innerWidth;var B=window.pageXOffset;var Z=724;var l=B+_pi((r-Z)/2);l=Math.max(l,1);Y.U.Dom.setStyle(_ge("f_div_corrections_box_holder_border"),"left",l+"px");_ge(_ge("f_div_corrections_box_holder_border").pop_shadow_id).shadow_size_and_place();},right_side_holder:{closed:true,loaded_geobookmarks:false,already_loading_js:false,block_size:[],new_map_link:{},two_second_delay_time_started_for_dunstan_because_he_is_picky_like_that:0,saved_responseXML:"",right_side_holder_go_go_go:function(l) {if( _proxy_jslib_handle(page_p, ("video_thumb_src"), 0, 0)){ _proxy_jslib_assign('', _ge("f_div_corrections_taken_in"), 'innerHTML', '=', (F.output.get("corrections_weve_placed_video_2",_taken_in)+"."));}else{ _proxy_jslib_assign('', _ge("f_div_corrections_taken_in"), 'innerHTML', '=', (F.output.get("corrections_weve_placed_photo_2",_taken_in)+"."));} _proxy_jslib_assign('', _ge("f_div_corrections_psst"), 'innerHTML', '=', (F.output.get("corrections_psst",_taken_in))); _proxy_jslib_assign('', _ge("div_geo_feedback_after_list"), 'innerHTML', '=', (F.output.get("corrections_never_mind_2",_taken_in)));if(l){this.style.display="block"; _proxy_jslib_assign('', _ge("f_div_corrections_topbar_left"), 'innerHTML', '=', (F.output.get("corrections_add_location_2")));}else{this.style.display="none"; _proxy_jslib_assign('', _ge("f_div_corrections_topbar_left"), 'innerHTML', '=', (F.output.get("map")+": "+_taken_in));}F.decorate(_ge("freeform_geotagging"),this.input_box);F.decorate(_ge("freeform_geotagging_2"),this.input_box);F.decorate(_ge("freeform_geotagging_3"),this.input_box);F.decorate(_ge("freeform_geotagging_4"),this.input_box);F.decorate(_ge("geo_form_save"),this.submit_button);F.decorate(_ge("geo_form_save_2"),this.submit_button);F.decorate(_ge("geo_form_save_3"),this.submit_button);F.decorate(_ge("geo_form_save_geotagged"),this.submit_button_geotagged);},input_box:{do_first_lat_long_auto_insert:true,onkeyup:function(Z) {if(!Z){Z=window.event;}var l=_get_event_keycode(Z);if(l==71&&Z.ctrlKey&&Z.altKey){ _proxy_jslib_assign('', this, 'value', '=', ("geo:long="));}if(l==13){if(this.id=="freeform_geotagging"){_ge("inp_freeform_geotagging_go").onclick();}else{if(this.id=="freeform_geotagging_2"){_ge("inp_freeform_geotagging_go_2").onclick();}else{if(this.id=="freeform_geotagging_3"){_ge("inp_freeform_geotagging_go_3").onclick();}else{_ge("inp_freeform_geotagging_go_4").onclick();}}}return ;}if(this.do_first_lat_long_auto_insert){var B=new (RegExp)("^(geo:(lat)=(\\+|\\-)?((\\d+\\.\\d+)|\\d+)([,; ]))$");var r=new (RegExp)("^(geo:(lon|long)=(\\+|\\-)?((\\d+\\.\\d+)|\\d+)([,; ]))$");if( _proxy_jslib_handle(this, 'value', '', 0, 0).toLowerCase().match(B)){ _proxy_jslib_assign('', this, 'value', '=', ( _proxy_jslib_handle(this, 'value', '', 0, 0).toLowerCase()+" geo:long="));this.do_first_lat_long_auto_insert=false;}if( _proxy_jslib_handle(this, 'value', '', 0, 0).toLowerCase().match(r)){ _proxy_jslib_assign('', this, 'value', '=', ( _proxy_jslib_handle(this, 'value', '', 0, 0).toLowerCase()+" geo:lat="));this.do_first_lat_long_auto_insert=false;}}},onfocus:function() {this.select();}},submit_button:{onclick:function() {if( _proxy_jslib_handle(_ge("freeform_geotagging"), 'value', '', 0, 0).length>1&& _proxy_jslib_handle(_ge("freeform_geotagging"), 'value', '', 0, 0).substr(0,1)=="@"){_ge("f_div_corrections_right_side").find_at( _proxy_jslib_handle(_ge("freeform_geotagging"), 'value', '', 0, 0).substr(1,9999));return ;}_ge("f_div_corrections_right_side").save_at_center();},validate:function(l,B) {if(typeof (l)=="undefined"||typeof (B)=="undefined"||typeof (l)!="number"||typeof (B)!="number"||isNaN(l)||isNaN(B)){return false;}if(Math.abs(l)>90||Math.abs(B)>180){return false;}return true;}},submit_button_geotagged:{onclick:function() {var Z=_use_viewgeo;for(var B=0;B<_ge("geo_bookmark_privacy_slct_geotagged").options.length;B++){if( _proxy_jslib_handle(_ge("geo_bookmark_privacy_slct_geotagged").options, (B), 0, 0).selected){Z= _proxy_jslib_handle( _proxy_jslib_handle(_ge("geo_bookmark_privacy_slct_geotagged").options, (B), 0, 0), 'value', '', 0, 0);break;}}var l={flickr_photos_geo_setPerms_onLoad:function(G,i,P,z) {if(G){_use_viewgeo=z.new_viewgeo;if(_use_viewgeo==5){ _proxy_jslib_assign('', _ge("f_div_corrections_who_can_see"), 'innerHTML', '=', ("<img width=\"15\" height=\"15\" class=\"absmiddle\" src=\"/images/icon_private.gif\"/> "));}else{if(_use_viewgeo==0){ _proxy_jslib_assign('', _ge("f_div_corrections_who_can_see"), 'innerHTML', '=', ("<img width=\"15\" height=\"15\" class=\"absmiddle\" src=\"/images/icon_public.gif\"/> "));}else{ _proxy_jslib_assign('', _ge("f_div_corrections_who_can_see"), 'innerHTML', '=', ("<img width=\"15\" height=\"15\" class=\"absmiddle\" src=\"/images/icon_a_bit_private.gif\"/> "));}} _proxy_jslib_assign('', _ge("f_div_corrections_who_can_see"), 'innerHTML', '+=', (F.output.get("geotag_from_page_who_can_see_2_"+_use_viewgeo)+" "));for(var r=0;r<_ge("geo_bookmark_privacy_slct").options.length;r++){if(_pi( _proxy_jslib_handle( _proxy_jslib_handle(_ge("geo_bookmark_privacy_slct").options, (r), 0, 0), 'value', '', 0, 0))==_use_viewgeo){ _proxy_jslib_handle(_ge("geo_bookmark_privacy_slct").options, (r), 0, 0).selected=true;}else{ _proxy_jslib_handle(_ge("geo_bookmark_privacy_slct").options, (r), 0, 0).selected=false;}}for(var r=0;r<_ge("geo_bookmark_privacy_slct_geotagged").options.length;r++){if(_pi( _proxy_jslib_handle( _proxy_jslib_handle(_ge("geo_bookmark_privacy_slct_geotagged").options, (r), 0, 0), 'value', '', 0, 0))==_use_viewgeo){ _proxy_jslib_handle(_ge("geo_bookmark_privacy_slct_geotagged").options, (r), 0, 0).selected=true;}else{ _proxy_jslib_handle(_ge("geo_bookmark_privacy_slct_geotagged").options, (r), 0, 0).selected=false;}}}Y.U.Dom.setStyle("div_geo_saved_success","display","block");Y.U.Dom.setStyle("div_corrections_main_form_geotagged","display","block");Y.U.Dom.setStyle("div_geo_feedback_saving","display","none"); _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_right_side').fade_save_success()",800);}};Y.U.Dom.setStyle("div_corrections_main_form_geotagged","display","none");Y.U.Dom.setStyle("div_geo_feedback_saving","display","block");if(Z==0){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,is_public:1,is_friend:0,is_family:0,is_contact:0,new_viewgeo:Z},l);}if(Z==1){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,is_public:0,is_friend:0,is_family:0,is_contact:1,new_viewgeo:Z},l);}if(Z==2){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,is_public:0,is_friend:1,is_family:1,is_contact:0,new_viewgeo:Z},l);}if(Z==3){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,is_public:0,is_friend:1,is_family:0,is_contact:0,new_viewgeo:Z},l);}if(Z==4){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,is_public:0,is_friend:0,is_family:1,is_contact:0,new_viewgeo:Z},l);}if(Z==5){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,is_public:0,is_friend:0,is_family:0,is_contact:0,new_viewgeo:Z},l);}}},find_at:function(l) {var B={flickr_photos_search_onLoad:function(k,z,r,P) {if(k){if( _proxy_jslib_handle(z.documentElement, 'getElementsByTagName', '', 1, 0)("photo").length==1){photo_id= _proxy_jslib_handle(z.documentElement, 'getElementsByTagName', '', 1, 0)("photo")[0].getAttribute("id");var Z={flickr_photos_getInfo_onLoad:function(C,s,x,U) {if(C){if( _proxy_jslib_handle(s.documentElement, 'getElementsByTagName', '', 1, 0)("location").length==0){var T= _proxy_jslib_handle(s.documentElement, 'getElementsByTagName', '', 1, 0)("url");var G="";for(var h=0;h<T.length;h++){if( _proxy_jslib_handle(T, (h), 0, 0).getAttribute("type")=="photopage"){G= _proxy_jslib_handle( _proxy_jslib_handle(T, (h), 0, 0).childNodes[0], 'nodeValue', '', 0, 0);}}if(G!=""){new_html="<strong>"+F.output.get("global_plus_geo_no_geo_bookmark_data_for_with_path",G,"@"+U.tags)+"</strong>";}else{new_html="<strong>"+F.output.get("global_plus_geo_no_geo_bookmark_data_for","@"+U.tags)+"</strong>";}_ge("a_geotag_toggle").set_failed_search(new_html);}else{latitude= _proxy_jslib_handle(s.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].getAttribute("latitude");longitude= _proxy_jslib_handle(s.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].getAttribute("longitude");accuracy= _proxy_jslib_handle(s.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].getAttribute("accuracy");_geo_perms={geo_ispublic: _proxy_jslib_handle(s.documentElement, 'getElementsByTagName', '', 1, 0)("geoperms")[0].getAttribute("ispublic"),geo_iscontact: _proxy_jslib_handle(s.documentElement, 'getElementsByTagName', '', 1, 0)("geoperms")[0].getAttribute("iscontact"),geo_isfriend: _proxy_jslib_handle(s.documentElement, 'getElementsByTagName', '', 1, 0)("geoperms")[0].getAttribute("isfriend"),geo_isfamily: _proxy_jslib_handle(s.documentElement, 'getElementsByTagName', '', 1, 0)("geoperms")[0].getAttribute("isfamily")};_ge("f_div_corrections_box_holder_border").map_box.ymap.drawZoomAndCenter(new (YGeoPoint)(latitude,longitude),Math.min(16,Math.max(0,17-accuracy)));_ge("geo_form_save").click();}}else{}}};F.API.callMethod("flickr.photos.getInfo",{photo_id:photo_id,tags:P.tags},Z,null,null,0);}else{}}else{}}};Y.U.Dom.setStyle("div_corrections_main_form","display","none");Y.U.Dom.setStyle("div_geo_feedback_finding_locations","display","block");F.API.callMethod("flickr.photos.search",{user_id:global_nsid,tags:"geo:bookmark="+l,extras:"geo",per_page:1},B,null,null,0);},find_location:function(l) {var B={flickr_geocode_translate_onLoad:function(J,L,U,r) {if(J){var M= _proxy_jslib_handle(L.documentElement, 'getElementsByTagName', '', 1, 0)("ResultSet")[0];var Q= _proxy_jslib_handle(L.documentElement, 'getElementsByTagName', '', 1, 0)("Result");var H=M.getAttribute("fl:source_id");var T= _proxy_jslib_handle(r, 'location', '', 0, 0).trim().split(",")[0];var O=[];var E=false;var z=function(i) {var W=1;if(i.precision=="GeocodedBuilding"){W=16;}if(i.precision=="POI"){W=16;}if(i.precision=="GeocodedStreet"){W=15;}if(i.precision=="Suburb"){W=11;}if(i.precision=="Town"){W=9;}if(i.precision=="State"){W=5;}if(i.precision=="Country"){W=2;}return W;};var X=function(I,W) {if(W==6){var f="<li id=\"location_li_more\"><a href=\"#\" class=\"Plain\" onclick=\"_ge('f_div_corrections_right_side').show_other_locations()\">More...</a></li><div id=\"f_div_more_locations\" style=\"display:none\"><li>";}else{var f="<li>";}f+="<a href=\"#\" class=\"Plain\" onclick=\"_ge('f_div_corrections_right_side').jump_to_position(_ge('f_div_corrections_right_side').locations["+W+"]); return false\">";f+=I.sub_title;f+="</a></li>";return f;};var g=0;for(u=0;u<Q.length;u++){try{var m=String( _proxy_jslib_handle(Q, (u), 0, 0).getAttribute("precision"));}catch(j){var m="";}try{var s=String( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(Q, (u), 0, 0), 'getElementsByTagName', '', 1, 0)("woe_specificprobability")[0].firstChild, 'nodeValue', '', 0, 0));}catch(j){var s="";}try{var o=String( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(Q, (u), 0, 0), 'getElementsByTagName', '', 1, 0)("woe_woeid")[0].firstChild, 'nodeValue', '', 0, 0));}catch(j){var o="";}var d=String( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(Q, (u), 0, 0), 'getElementsByTagName', '', 1, 0)("Latitude")[0].firstChild, 'nodeValue', '', 0, 0));var x=String( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(Q, (u), 0, 0), 'getElementsByTagName', '', 1, 0)("Longitude")[0].firstChild, 'nodeValue', '', 0, 0));try{var v=String( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(Q, (u), 0, 0), 'getElementsByTagName', '', 1, 0)("woe_bbox")[0].firstChild, 'nodeValue', '', 0, 0));}catch(j){var v="";}try{var q=String( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(Q, (u), 0, 0), 'getElementsByTagName', '', 1, 0)("Address")[0].firstChild, 'nodeValue', '', 0, 0));}catch(j){var q="";}try{var C=String( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(Q, (u), 0, 0), 'getElementsByTagName', '', 1, 0)("City")[0].firstChild, 'nodeValue', '', 0, 0));}catch(j){var C="";}try{var p=String( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(Q, (u), 0, 0), 'getElementsByTagName', '', 1, 0)("State")[0].firstChild, 'nodeValue', '', 0, 0));}catch(j){var p="";}try{var c=String( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(Q, (u), 0, 0), 'getElementsByTagName', '', 1, 0)("Zip")[0].firstChild, 'nodeValue', '', 0, 0));}catch(j){var c="";}try{var t=String( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(Q, (u), 0, 0), 'getElementsByTagName', '', 1, 0)("Country")[0].firstChild, 'nodeValue', '', 0, 0));}catch(j){var t="";}try{var y=String( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(Q, (u), 0, 0), 'getElementsByTagName', '', 1, 0)("place_url")[0].firstChild, 'nodeValue', '', 0, 0));}catch(j){var y="";}t=(t=="United States")?"US":t;t=(t=="United Kingdom")?"UK":t;var R="";var Z="";var P=T.toLowerCase();if(m=="GeocodedBuilding"||m=="POI"){if(q){Z=Z+", "+q;}}if(C){Z=Z+", "+C;}if(p){Z=Z+", "+p;}if(t){Z=Z+", "+t;}if(Z.length>2){Z=Z.substring(2,Z.length);}if(m=="County"){R=T.substring(0,1).toUpperCase()+T.substring(1,T.length)+" County";}else{if(m=="GeocodedBuilding"){Z=T.split(" ")[0]+" "+Z;}else{if(m=="POI"){R=T;}else{sub_titleA=Z.split(", ");if(P==sub_titleA[0].toLowerCase()){if(sub_titleA[0]!=Z){R=sub_titleA[0];Z= _proxy_jslib_handle(Z, 'replace', '', 1, 0)(sub_titleA[0]+", ","");}}if(R==""){R=T;}}}}if(O.length==0||(O.length>0&&(R!= _proxy_jslib_handle(O, (O.length-1), 0, 0).title||Z!= _proxy_jslib_handle(O, (O.length-1), 0, 0).sub_title))){var S=Math.abs(_pf(v.split(",")[0])-_pf(v.split(",")[2]));var G=Math.abs(_pf(v.split(",")[1])-_pf(v.split(",")[3]));var V=new (woe_location_obj)(o,R,Z,s,v,m,d,x);V.query_string= _proxy_jslib_handle(r, 'location', '', 0, 0);E=true;var b=100.035;if((S+G<b||m=="GeocodedBuilding"||m=="POI"||m=="GeocodedStreet")){O.push(V);}else{if(m!="Country"){g++;}else{g+=5;}}}}if(g>=5){O=[];}if(O.length==0){ _proxy_jslib_assign('', _ge("div_corrections_search_no_results_display"), 'innerHTML', '=', (F.output.get("corrections_no_matches_for_2", _proxy_jslib_handle(r, 'location', '', 0, 0))+" "+F.output.get("corrections_search_again")));Y.U.Dom.setStyle("div_geo_feedback_finding_locations","display","none");Y.U.Dom.setStyle("div_corrections_search_no_results","display","block");return ;}else{if(O.length==1&&(O[0].precision=="GeocodedBuilding"||O[0].precision=="POI"||O[0].precision=="GeocodedStreet")){var a=F.output.get("global_plus_geo_one_match")+"<br /><ul class='corrections_list'>";for(var u=0;u<O.length;u++){a+=X( _proxy_jslib_handle(O, (u), 0, 0),u);}if(O.length>=6){a+="</div>";}a+="</ul>";Y.U.Dom.setStyle("div_geo_feedback_finding_locations","display","none");_ge("f_div_corrections_right_side").jump_to_position(O[0]);return ;}else{if(O.length==1){var a=F.output.get("global_plus_geo_one_match")+"<br /><br />";Y.U.Dom.setStyle("div_geo_feedback_finding_locations","display","none");_ge("f_div_corrections_right_side").jump_to_position(O[0]);return ;}else{if(!F.is_ie){var a=F.output.get("corrections_found_x_matches_2",O.length, _proxy_jslib_handle(r, 'location', '', 0, 0))+"<br /><ul style='margin-left:-25px; font-size:11px'>";}else{var a=F.output.get("corrections_found_x_matches_2",O.length, _proxy_jslib_handle(r, 'location', '', 0, 0))+"<br /><ul style='margin-left:15px; font-size:11px'>";}}for(var u=0;u<O.length;u++){a+=X( _proxy_jslib_handle(O, (u), 0, 0),u);}a+="</ul>";}}_ge("f_div_corrections_right_side").locations=O; _proxy_jslib_assign('', _ge("div_geo_feedback_list_locations_list"), 'innerHTML', '=', (a));_ge("div_geo_feedback_list_locations").scrollTop=0;Y.U.Dom.setStyle("div_geo_feedback_finding_locations","display","none");Y.U.Dom.setStyle("div_geo_feedback_list_locations","display","block");}else{try{var h=_pi( _proxy_jslib_handle(L.documentElement, 'getElementsByTagName', '', 1, 0)("err")[0].getAttribute("code"));var D= _proxy_jslib_handle(L.documentElement, 'getElementsByTagName', '', 1, 0)("err")[0].getAttribute("msg");}catch(j){var k=F.output.get("unknown_err");} _proxy_jslib_assign('', _ge("div_geo_feedback_error_msg"), 'innerHTML', '=', (k));Y.U.Dom.setStyle("div_geo_feedback_finding_locations","display","none");Y.U.Dom.setStyle("div_geo_feedback_error","display","block");}}};Y.U.Dom.setStyle("div_corrections_main_form","display","none");Y.U.Dom.setStyle("div_corrections_search_results_clicked","display","none");Y.U.Dom.setStyle("div_corrections_search_no_results","display","none");Y.U.Dom.setStyle("div_geo_feedback_list_locations","display","none");Y.U.Dom.setStyle("div_geo_feedback_list_alternative_locations","display","none");_ge("div_geo_feedback_finding_locations").style.display="block";F.API.callMethod("flickr.geocode.translate",{provider_name:(_qs_args.provider_name)?_qs_args.provider_name:"woe",location:l},B,null,null,0);},show_other_locations:function() {Y.U.Dom.setStyle("f_div_more_locations","display","block");Y.U.Dom.setStyle("location_li_more","display","none");},go:function(l) {if(l){ _proxy_jslib_assign('', _ge("freeform_geotagging"), 'value', '=', ( _proxy_jslib_handle(_ge("freeform_geotagging"+l), 'value', '', 0, 0)));}var Z= _proxy_jslib_handle(_ge("freeform_geotagging"), 'value', '', 0, 0).toLowerCase();var B=this.parse_input(Z);if( _proxy_jslib_handle(B, ("error"), 0, 0)){if(B.error=="find location"){this.find_location(Z);}}else{Y.U.Dom.setStyle("f_img_ch_white","display","none");Y.U.Dom.setStyle("f_img_ch_pink","display","block");_is_editing_geo=true;_ge("f_div_corrections_box_holder_border").map_box.jump_to_lat_lon(B.lat,B.lon);_ge("f_div_corrections_right_side").display_lat_lon(_ge("f_div_corrections_box_holder_border").map_box.ymap.getCenterLatLon());_ge("geo_form_save").disabled=false;}},parse_input:function(z) {if(z.length>1&&z.substr(0,1)=="@"){this.find_at(z.substr(1,9999));return {error:"doing bookmark"};}var x=new (RegExp)("^(geo:lat=(\\+|\\-)?((\\d+\\.\\d+)|\\d+)([,; ]+))(geo:(long|lon)=(\\+|\\-)?((\\d+\\.\\d+)|\\d+))");var k=new (RegExp)("^(geo:(long|lon)=(\\+|\\-)?((\\d+\\.\\d+)|\\d+)([,; ]+))(geo:lat=(\\+|\\-)?((\\d+\\.\\d+)|\\d+))");var i=new (RegExp)("[a-z:=]","g");var b=new (RegExp)("[ ;]","g");var h=new (RegExp)(",+","g");if(z.match(x)){found_value= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(z, 'replace', '', 1, 0)(i,""), 'replace', '', 1, 0)(b,","), 'replace', '', 1, 0)(h,",");var s=_pf(found_value.split(",")[0]);var Q=_pf(found_value.split(",")[1]);}if(z.match(k)){found_value= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(z, 'replace', '', 1, 0)(i,""), 'replace', '', 1, 0)(b,","), 'replace', '', 1, 0)(h,",");var s=_pf(found_value.split(",")[1]);var Q=_pf(found_value.split(",")[0]);}if(typeof (s)=="undefined"){var P=null;var U=null;var C=null;z= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(z, '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 B=null;var r=null;if(z.indexOf("n")>0){P=true;B=z.indexOf("n");}if(z.indexOf("s")>0){P=false;B=z.indexOf("s");}if(z.indexOf("e")>0){U=true;r=z.indexOf("e");}if(z.indexOf("w")>0){U=false;r=z.indexOf("w");}if(B!=null&&r!=null&&r<B){this.lon_first=true;}if(z.indexOf("*")>0&&z.indexOf("'")>0&&z.indexOf("\"")>0){var z= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(z, 'replace', '', 1, 0)(new (RegExp)("[nsew'\"*]"),","), 'replace', '', 1, 0)(new (RegExp)(",+")," "), 'replace', '', 1, 0)(new (RegExp)(" +")," ");var T=z.split(" ");if(T.length>=6){var s=_pi(T[0]);if(s>=0){s+=(T[1]/60)+(T[2]/6000);}else{s-=((T[1]/60)+(T[2]/6000));}var Q=_pi(T[3]);if(Q>=0){Q+=(T[4]/60)+(T[5]/6000);}else{Q-=((T[4]/60)+(T[5]/6000));}}}if(z.indexOf("*")>0&&z.indexOf("'")>0){var z= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(z, 'replace', '', 1, 0)(new (RegExp)("[nsew'\"*]"),","), 'replace', '', 1, 0)(new (RegExp)(",+")," "), 'replace', '', 1, 0)(new (RegExp)(" +")," ");var T=z.split(" ");if(T.length>=4){var s=_pi(T[0]);if(s>=0){s+=(T[1]/60);}else{s-=(T[1]/60);}var Q=_pi(T[2]);if(Q>=0){Q+=(T[3]/60);}else{Q-=(T[3]/60);}}}if(typeof (T)=="undefined"){var z= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(z, 'replace', '', 1, 0)(new (RegExp)("[nsew'\"*]"),","), 'replace', '', 1, 0)(new (RegExp)(",+")," "), 'replace', '', 1, 0)(new (RegExp)(" +")," ");var T=z.split(" ");if(T.length>=2){var s=_pf(T[0]);var Q=_pf(T[1]);}}if(C==true){var l=s;s=Q;Q=l;}if(P==true){s=Math.abs(s);}if(P==false){s=-1*Math.abs(s);}if(U==true){Q=Math.abs(Q);}if(U==false){Q=-1*Math.abs(Q);}}if(this.validate(s,Q)){return {lat:s,lon:Q};}else{var G= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(_ge("freeform_geotagging"), 'value', '', 0, 0).toLowerCase(), 'replace', '', 1, 0)(new (RegExp)("[a-z]"),""), 'replace', '', 1, 0)(new (RegExp)("[,;*'\" ]"),"");var Z= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(_ge("freeform_geotagging"), 'value', '', 0, 0).toLowerCase(), 'replace', '', 1, 0)(new (RegExp)("[0-9]"),""), 'replace', '', 1, 0)(new (RegExp)("[,;*'\" ]"),"");if((G.length*0.7)>Z.length){return {error:"mangled format"};}else{return {error:"find location"};}}},validate:function(l,B) {if(typeof (l)=="undefined"||typeof (B)=="undefined"||typeof (l)!="number"||typeof (B)!="number"||isNaN(l)||isNaN(B)){return false;}if(Math.abs(l)>90||Math.abs(B)>180){return false;}return true;},start_editing:function() {_is_editing_geo=true;Y.U.Dom.setStyle("div_single_marker_holder","display","none");Y.U.Dom.setStyle("f_img_ch_white","display","none");Y.U.Dom.setStyle("f_img_ch_pink","display","block");_ge("geo_form_save").disabled=false;_ge("f_div_corrections_right_side").display_lat_lon(_ge("f_div_corrections_box_holder_border").map_box.ymap.getCenterLatLon());Y.U.Dom.setStyle("div_corrections_main_form_geotagged","display","none");Y.U.Dom.setStyle("div_corrections_main_form","display","block");},reset_stuff:function() {Y.U.Dom.setStyle("f_img_ch_white","display","none");Y.U.Dom.setStyle("f_img_ch_pink","display","none");_ge("f_div_corrections_box_holder_border").map_box.jump_to_last_saved_position();Y.U.Dom.setStyle("div_single_marker_holder","display","block");_is_editing_geo=false;_ge("f_div_corrections_right_side").display_lat_lon(_ge("f_div_corrections_box_holder_border").map_box.ymap.getCenterLatLon());},stop_editing:function() {_is_editing_geo=false;if(_has_geo){_ge("f_div_corrections_box_holder_border").map_box.jump_to_last_saved_position();this.reset_stuff();Y.U.Dom.setStyle("div_corrections_main_form_geotagged","display","block");Y.U.Dom.setStyle("div_corrections_main_form","display","none");Y.U.Dom.setStyle("div_corrections_search_results_clicked","display","none");Y.U.Dom.setStyle("div_corrections_search_no_results","display","none");Y.U.Dom.setStyle("div_corrections_search_results_clicked","display","none");}else{_ge("f_div_corrections_box_holder_border").hide();}},set_perms:function() {var Z=-1;for(var B=0;B<document.forms[("frm_geo_perms")].length;B++){if( _proxy_jslib_handle(document.forms[("frm_geo_perms")], (B), 0, 0).checked){Z= _proxy_jslib_handle( _proxy_jslib_handle(document.forms[("frm_geo_perms")], (B), 0, 0), 'value', '', 0, 0);}}if(Z>-1&&Z!=_use_viewgeo){var l={flickr_photos_geo_setPerms_onLoad:function(k,z,r,P) {if(k){_use_viewgeo=P.new_viewgeo;}if(_use_viewgeo==5){ _proxy_jslib_assign('', _ge("f_div_corrections_who_can_see"), 'innerHTML', '=', ("<img width=\"15\" height=\"15\" class=\"absmiddle\" src=\"/images/icon_private.gif\"/> "));}else{if(_use_viewgeo==0){ _proxy_jslib_assign('', _ge("f_div_corrections_who_can_see"), 'innerHTML', '=', ("<img width=\"15\" height=\"15\" class=\"absmiddle\" src=\"/images/icon_public.gif\"/> "));}else{ _proxy_jslib_assign('', _ge("f_div_corrections_who_can_see"), 'innerHTML', '=', ("<img width=\"15\" height=\"15\" class=\"absmiddle\" src=\"/images/icon_a_bit_private.gif\"/> "));}} _proxy_jslib_assign('', _ge("f_div_corrections_who_can_see"), 'innerHTML', '+=', (F.output.get("geotag_from_page_who_can_see_2_"+_use_viewgeo)));Y.U.Dom.setStyle("div_geo_saved_success","display","block");Y.U.Dom.setStyle("div_corrections_main_form_geotagged","display","block");Y.U.Dom.setStyle("div_geo_feedback_saving","display","none"); _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_right_side').fade_save_success()",800);}};Y.U.Dom.setStyle("div_geo_perms","display","none");Y.U.Dom.setStyle("div_geo_feedback_saving","display","block");if(Z==0){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,is_public:1,is_friend:0,is_family:0,is_contact:0,new_viewgeo:Z},l);}if(Z==1){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,is_public:0,is_friend:0,is_family:0,is_contact:1,new_viewgeo:Z},l);}if(Z==2){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,is_public:0,is_friend:1,is_family:1,is_contact:0,new_viewgeo:Z},l);}if(Z==3){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,is_public:0,is_friend:1,is_family:0,is_contact:0,new_viewgeo:Z},l);}if(Z==4){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,is_public:0,is_friend:0,is_family:1,is_contact:0,new_viewgeo:Z},l);}if(Z==5){F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,is_public:0,is_friend:0,is_family:0,is_contact:0,new_viewgeo:Z},l);}}},jump_to_position:function(l) {this.current_location_obj=l;_ge("f_div_corrections_box_holder_border").map_box.jump_to_position(this.current_location_obj);_ge("f_div_corrections_right_side").display_lat_lon(_ge("f_div_corrections_box_holder_border").map_box.ymap.getCenterLatLon());if(this.current_location_obj.title!=""&&this.current_location_obj.sub_title!=""){if(this.current_location_obj.title.toLowerCase()==this.current_location_obj.sub_title.split(",")[0].toLowerCase()){var B=this.current_location_obj.sub_title.split(",")[0];}else{var B=this.current_location_obj.title+", "+this.current_location_obj.sub_title.split(",")[0];}}else{if(this.current_location_obj.title!=""){if(this.current_location_obj.title.split(",").length==1){var B=this.current_location_obj.title;}else{if(this.current_location_obj.title.split(",")[0].toLowerCase()==this.current_location_obj.title.split(",")[1].toLowerCase()){var B=this.current_location_obj.title.split(",")[1];}else{var B=this.current_location_obj.title.split(",")[0]+", "+this.current_location_obj.title.split(",")[1];}}}else{if(this.current_location_obj.sub_title!=""){if(this.current_location_obj.sub_title.split(",").length==1){var B=this.current_location_obj.sub_title;}else{if(this.current_location_obj.sub_title.split(",")[0].toLowerCase()==this.current_location_obj.sub_title.split(",")[1]){var B=this.current_location_obj.sub_title.split(",")[1];}else{var B=this.current_location_obj.sub_title.split(",")[0]+", "+this.current_location_obj.sub_title.split(",")[1];}}}else{var B=F.output.get("a_place_with_no_name");}}} _proxy_jslib_assign('', _ge("f_div_corrections_search_results_clicked"), 'innerHTML', '=', (F.output.get("corrections_heres_a_place",B))); _proxy_jslib_assign('', _ge("div_corrections_search_no_results_display"), 'innerHTML', '=', (F.output.get("corrections_drag_around",B)));_ge("f_div_corrections_box_holder_border").map_box.map_moved=0;Y.U.Dom.setStyle("div_geo_feedback_list_locations","display","none");Y.U.Dom.setStyle("div_corrections_search_results_clicked","display","block");},save_at_marker:function() {this.current_location_obj={};this.current_location_obj.query_string="";this.current_location_obj.lat=_ge("f_div_corrections_box_holder_border").map_box.mo.YGeoPoint.Lat;this.current_location_obj.lon=_ge("f_div_corrections_box_holder_border").map_box.mo.YGeoPoint.Lon;this.current_location_obj.acc=Math.min(16,Math.max(0,17-_ge("f_div_corrections_box_holder_border").map_box.ymap.getZoomLevel()));this.save_location();},save_at_center:function() {this.current_location_obj={};this.current_location_obj.query_string="";this.current_location_obj.lat=_ge("f_div_corrections_box_holder_border").map_box.ymap.getCenterLatLon().Lat;this.current_location_obj.lon=_ge("f_div_corrections_box_holder_border").map_box.ymap.getCenterLatLon().Lon;this.current_location_obj.acc=Math.min(16,Math.max(0,17-_ge("f_div_corrections_box_holder_border").map_box.ymap.getZoomLevel()));this.save_location();},save_location:function() {var B={flickr_photos_geo_setLocation_onLoad:function(i,k,P,z) {if(i){_has_geo=true;_ge("f_div_corrections_right_side").load_new_position(z.accuracy,false);}else{try{var Z=_pi( _proxy_jslib_handle(k.documentElement, 'getElementsByTagName', '', 1, 0)("err")[0].getAttribute("code"));var h= _proxy_jslib_handle(k.documentElement, 'getElementsByTagName', '', 1, 0)("err")[0].getAttribute("msg");var r=F.output.get("api_err_generic")+" "+h;}catch(G){var r=F.output.get("unknown_err");} _proxy_jslib_assign('', _ge("div_geo_feedback_error_msg"), 'innerHTML', '=', (r));_ge("div_geo_feedback_saving").style.display="none";_ge("div_geo_feedback_error").style.display="block";}}};var l=this.current_location_obj.query_string;if(l.length>=2&&l.substr(0,2)==", "){l=l.substr(2,9999);}Y.U.Dom.setStyle("div_corrections_main_form","display","none");Y.U.Dom.setStyle("div_corrections_main_form_geotagged","display","none");Y.U.Dom.setStyle("div_geo_feedback_finding_locations","display","none");Y.U.Dom.setStyle("div_corrections_search_results_clicked","display","none");Y.U.Dom.setStyle("div_corrections_search_no_results","display","none");Y.U.Dom.setStyle("div_geo_feedback_saving","display","block");if(this.current_location_obj.acc==undefined){this.current_location_obj.acc=Math.min(16,Math.max(0,17-_ge("f_div_corrections_box_holder_border").map_box.ymap.getZoomLevel()));}F.API.callMethod("flickr.photos.geo.setLocation",{photo_id:page_photo_id,lat:this.current_location_obj.lat,lon:this.current_location_obj.lon,accuracy:this.current_location_obj.acc,query:l,provider:"user"},B,null,null,0);},load_new_position:function(B,Z) {var l={flickr_photos_geo_getLocation_onLoad:function(U,r,s,L) {if(U){if(typeof (_photo_acc)!="undefined"){_photo_acc=_pi( _proxy_jslib_handle(r.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].getAttribute("accuracy"));}_has_geo=true;var T=_pf( _proxy_jslib_handle(r.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].getAttribute("latitude"));var z=_pf( _proxy_jslib_handle(r.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].getAttribute("longitude"));var x=_pf( _proxy_jslib_handle(r.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].getAttribute("accuracy"));_use_4real_location=T+", "+z+", "+x;Y.U.Dom.setStyle("div_geo_block","display","block"); _proxy_jslib_assign('', _ge("div_taken_in"), 'innerHTML', '=', ( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(r.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].getAttribute("taken_in"), 'replace', '', 1, 0)("&lt;","<"), 'replace', '', 1, 0)("&gt;",">"), 'replace', '', 1, 0)("&#38;lt;","<"), 'replace', '', 1, 0)("&#38;gt;",">"))); _proxy_jslib_assign('', _ge("div_taken_in_links"), 'innerHTML', '=', (" (<a class=\"Plain\" onclick=\"F._corrections_box.show(true); return false\" href=\"#\">"+F.output.get("corrections_edit")+"</a> | <a class=\"Plain\" onclick=\"F._corrections_box.show(false); return false\" href=\"#\">"+F.output.get("corrections_map")+"</a>)"));var Q=/<a[^>]*>|<\/a>|<b>|<\/b>/ig;var b= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(r.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].getAttribute("taken_in"), 'replace', '', 1, 0)("&lt;","<"), 'replace', '', 1, 0)("&gt;",">"), 'replace', '', 1, 0)("&#38;lt;","<"), 'replace', '', 1, 0)("&#38;gt;",">"), 'replace', '', 1, 0)("\"\"","\""), 'replace', '', 1, 0)("Taken","taken");var P="";for(var c=0;c< _proxy_jslib_handle(r.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].childNodes.length;c++){if( _proxy_jslib_handle( _proxy_jslib_handle(r.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].childNodes, (c), 0, 0).nodeType==1&& _proxy_jslib_handle( _proxy_jslib_handle(r.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].childNodes, (c), 0, 0).getAttribute("place_id")!=null){var h= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(r.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].childNodes, (c), 0, 0).firstChild, 'nodeValue', '', 0, 0);if(P==""){P=h;}else{if(P.toLowerCase()!=h.toLowerCase()){P+=", "+h;break;}}}}_taken_in=P;if(L.check_for_other_photos){ _proxy_jslib_assign('', _ge("f_div_corrections_taken_in"), 'innerHTML', '=', (F.output.get("corrections_now_were_saying_2",_taken_in)));}else{if( _proxy_jslib_handle(page_p, ("video_thumb_src"), 0, 0)){ _proxy_jslib_assign('', _ge("f_div_corrections_taken_in"), 'innerHTML', '=', (F.output.get("corrections_weve_placed_video_2",_taken_in)));}else{ _proxy_jslib_assign('', _ge("f_div_corrections_taken_in"), 'innerHTML', '=', (F.output.get("corrections_weve_placed_photo_2",_taken_in)));}} _proxy_jslib_assign('', _ge("f_div_corrections_psst"), 'innerHTML', '=', (F.output.get("corrections_psst",_taken_in))); _proxy_jslib_assign('', _ge("div_geo_feedback_after_list"), 'innerHTML', '=', (F.output.get("corrections_never_mind_2",_taken_in)));var v= _proxy_jslib_handle(r.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].getAttribute("woeid");if(L.check_for_other_photos&&1==1){var G={flickr_photos_geo_photosForLocation_onLoad:function(d,R,i,g) {if(d){if(_pi( _proxy_jslib_handle(R.documentElement, 'getElementsByTagName', '', 1, 0)("photos")[0].getAttribute("total"))>1){if(_pi( _proxy_jslib_handle(R.documentElement, 'getElementsByTagName', '', 1, 0)("photos")[0].getAttribute("total"))==2){ _proxy_jslib_assign('', _ge("div_geo_other_photos_number"), 'innerHTML', '=', (F.output.get("corrections_other_photo_2","<strong>"+_taken_in+"</strong>")+"<br /><br />"+F.output.get("corrections_other_photo_pt_single_2",1)));}else{ _proxy_jslib_assign('', _ge("div_geo_other_photos_number"), 'innerHTML', '=', (F.output.get("corrections_other_photo_2","<strong>"+_taken_in+"</strong>")+"<br /><br />"+F.output.get("corrections_other_photo_pt_plural_2",(_pi( _proxy_jslib_handle(R.documentElement, 'getElementsByTagName', '', 1, 0)("photos")[0].getAttribute("total"))-1).pretty_num())));}Y.U.Dom.setStyle("div_geo_feedback_saving","display","none");Y.U.Dom.setStyle("div_geo_other_photos","display","block"); _proxy_jslib_assign('', _ge("pp-source_geo"), 'innerHTML', '=', ("<ul class=\"pp-list_geo\"></ul><div class=\"clear\"></div><span id=\"pp-loading_geo\"></span>"));Y.U.Dom.setStyle("pp_geo","display","block");Y.U.Dom.setStyle("f_div_corrections_map_holder","display","none");_pp_geo.apiData.lastCallParams.lat=g.lat;_pp_geo.apiData.lastCallParams.lon=g.lon;_pp_geo.apiData.lastCallParams.acc=g.accuracy;_pp_geo.apiData.lastCallParams.woe_id=g.woe_id;_pp_geo.apiData.lastCallParams.per_page=g.per_page;_pp_geo.makePhotosList(_pp_geo.parseCollection(R));}else{if( _proxy_jslib_handle(_geo_perms, ("geo_ispublic"), 0, 0)){_ge("f_div_corrections_right_side").save_pre_perms();}else{_ge("f_div_corrections_right_side").close_saving();}}}}};F.API.callMethod("flickr.photos.geo.photosForLocation",{lat:T,lon:z,accuracy:x,per_page:50,woe_id:v},G,null,null,0);}else{if( _proxy_jslib_handle(_geo_perms, ("geo_ispublic"), 0, 0)){_ge("f_div_corrections_right_side").save_pre_perms();}else{_ge("f_div_corrections_right_side").close_saving();}}}else{try{var O=_pi( _proxy_jslib_handle(r.documentElement, 'getElementsByTagName', '', 1, 0)("err")[0].getAttribute("code"));var k= _proxy_jslib_handle(r.documentElement, 'getElementsByTagName', '', 1, 0)("err")[0].getAttribute("msg");var C=F.output.get("api_err_generic")+k;}catch(E){var C=F.output.get("unknown_err");} _proxy_jslib_assign('', _ge("div_geo_feedback_error_msg"), 'innerHTML', '=', ("<strong>"+C+"</strong>"));_ge("div_geo_feedback_saving").style.display="none";_ge("div_geo_feedback_error").style.display="block";}}};F.API.callMethod("flickr.photos.geo.getLocation",{photo_id:page_photo_id,accuracy:B,breadcrumb:1,check_for_other_photos:Z},l,null,null,0);},save_pre_perms:function() {var l={flickr_photos_geo_setPerms_onLoad:function(k,z,r,P) {if(k){_use_viewgeo=P.new_viewgeo;if(_use_viewgeo==5){ _proxy_jslib_assign('', _ge("f_div_corrections_who_can_see"), 'innerHTML', '=', ("<img width=\"15\" height=\"15\" class=\"absmiddle\" src=\"/images/icon_private.gif\"/> "));}else{if(_use_viewgeo==0){ _proxy_jslib_assign('', _ge("f_div_corrections_who_can_see"), 'innerHTML', '=', ("<img width=\"15\" height=\"15\" class=\"absmiddle\" src=\"/images/icon_public.gif\"/> "));}else{ _proxy_jslib_assign('', _ge("f_div_corrections_who_can_see"), 'innerHTML', '=', ("<img width=\"15\" height=\"15\" class=\"absmiddle\" src=\"/images/icon_a_bit_private.gif\"/> "));}} _proxy_jslib_assign('', _ge("f_div_corrections_who_can_see"), 'innerHTML', '+=', (F.output.get("geotag_from_page_who_can_see_2_"+_use_viewgeo)));for(var Z=0;Z<document.forms[("frm_geo_perms")].length;Z++){if(_use_viewgeo== _proxy_jslib_handle( _proxy_jslib_handle(document.forms[("frm_geo_perms")], (Z), 0, 0), 'value', '', 0, 0)){document.forms[("frm_geo_perms")].selected=true;}else{document.forms[("frm_geo_perms")].selected=false;}}}_ge("f_div_corrections_right_side").close_saving();}};if(_geo_perms.is_public&&!_geo_perms.is_friend&&!_geo_perms.is_family&&!_geo_perms.is_contact){var B=0;}if(!_geo_perms.is_public&&!_geo_perms.is_friend&&!_geo_perms.is_family&&_geo_perms.is_contact){var B=1;}if(!_geo_perms.is_public&&_geo_perms.is_friend&&_geo_perms.is_family&&!_geo_perms.is_contact){var B=2;}if(!_geo_perms.is_public&&_geo_perms.is_friend&&!_geo_perms.is_family&&!_geo_perms.is_contact){var B=3;}if(!_geo_perms.is_public&&!_geo_perms.is_friend&&_geo_perms.is_family&&!_geo_perms.is_contact){var B=4;}if(!_geo_perms.is_public&&!_geo_perms.is_friend&&!_geo_perms.is_family&&!_geo_perms.is_contact){var B=5;}_geo_perms={};F.API.callMethod("flickr.photos.geo.setPerms",{photo_id:page_photo_id,is_public:_geo_perms.is_public,is_friend:_geo_perms.is_public,is_family:_geo_perms.is_public,is_contact:_geo_perms.is_public,new_viewgeo:B},l);},update_other_locations:function() {var l={flickr_photos_geo_batchCorrectLocation_onLoad:function(P,r,B,Z) {if(P){}else{}}};F.API.callMethod("flickr.photos.geo.batchCorrectLocation",{lat:_pp_geo.apiData.lastCallParams.lat,lon:_pp_geo.apiData.lastCallParams.lon,accuracy:_pp_geo.apiData.lastCallParams.acc,place_id:_pp_geo.apiData.lastCallParams.woe_id},l,null,null,0);this.close_saving();},close_saving:function() {this.reset_stuff();Y.U.Dom.setStyle("div_geo_feedback_saving","display","none");Y.U.Dom.setStyle("div_geo_other_photos","display","none");Y.U.Dom.setStyle("div_geo_saved_success","display","block");Y.U.Dom.setStyle("div_corrections_main_form_geotagged","display","block"); _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_right_side').fade_save_success()",800);if(_ge("pp-source_geo")){try{_ge("pp-source_geo").scrollTop=0;}catch(l){}}_ge("f_div_corrections_map_holder").style.display="block";},pre_fetch_alternatives:function() { _proxy_jslib_assign('', _ge("div_geo_feedback_list_alternative_locations_list_ul"), 'innerHTML', '=', (""));_ge("div_corrections_main_form_geotagged").style.display="none";_ge("div_geo_feedback_list_alternative_locations").style.display="none";_ge("div_geo_feedback_finding_alternative_locations").style.display="block";this.fetch_alternatives(_use_4real_location.split("|")[0].split(",")[0],_use_4real_location.split("|")[0].split(",")[1],_use_4real_location.split("|")[0].split(",")[2]);},alt_fetch_alternatives:function(B,Z,l) { _proxy_jslib_assign('', _ge("li_find_mode"), 'innerHTML', '=', ( _proxy_jslib_handle(_ge("div_geo_feedback_finding_alternative_locations"), 'innerHTML', '', 0, 0)));this.fetch_alternatives(B,Z,l);},fetch_alternatives:function(h,Z,P) {h=parseFloat(h);Z=parseFloat(Z);P=parseInt(P);if(P>0){if(P>=1&&P<=2){P=5;}if(P>=3&&P<=5){P=4;}if(P>=6&&P<=8){P=3;}if(P>=9&&P<=11){P=2;}if(P>=12&&P<=14){P=1;}if(P>=15&&P<=16){P=1;}}else{P=P*-1;}if( _proxy_jslib_handle(_place_map, (P), 0, 0)){var k= _proxy_jslib_handle(_place_map, (P), 0, 0).type;var z= _proxy_jslib_handle(_place_map, (P), 0, 0).distance;}else{if(_place_map[6]){var k=_place_map[6].type;var z=_place_map[6].distance;}else{var k=29;var z=1500;}}var G=0.056;var x=h-(G*z/8);var i=h+(G*z/8);var B=Z-(G*z/8);var T=Z+(G*z/8);var r={flickr_photos_geo_placesForBoundingBox_onLoad:function(E,L,v,b) {if(E){var U= _proxy_jslib_handle(L.documentElement, 'getElementsByTagName', '', 1, 0)("place");var c="";var C= _proxy_jslib_handle(L.documentElement, 'getElementsByTagName', '', 1, 0)("places")[0].getAttribute("place_type");for(var Q=0;Q<U.length;Q++){var O= _proxy_jslib_handle( _proxy_jslib_handle(U, (Q), 0, 0).firstChild, 'nodeValue', '', 0, 0);if(O.split(",").length>1){O=O.split(",")[0]+", "+O.split(",")[1];}c+="<li><a href=\"#\" class=\"Plain\" onclick=\"_ge('f_div_corrections_right_side').correct_location('"+ _proxy_jslib_handle(U, (Q), 0, 0).getAttribute("place_id")+"', "+C+");return false\">"+O+"</a></li>";}if(C==22){var s=-2;}if(C==7){var s=-3;}if(C==9){var s=-4;}if(C==8){var s=-5;}if(C==12){var s=-6;}if(C==29){var s=-7;}if(_ge("li_find_mode")){_ge("li_find_mode").parentNode.removeChild(_ge("li_find_mode"));}c+="<li id=\"li_find_mode\"><a href=\"#\" onclick=\"_ge('f_div_corrections_right_side').alt_fetch_alternatives('"+b.pass_params.lat+"','"+b.pass_params.lon+"','"+s+"'); return false\" class=\"Plain\">"+F.output.get("corrections_more")+"</a></li>"; _proxy_jslib_assign('', _ge("div_geo_feedback_list_alternative_locations_list_ul"), 'innerHTML', '+=', (c));_ge("div_geo_feedback_finding_alternative_locations").style.display="none";_ge("div_geo_feedback_list_alternative_locations").style.display="block";}else{if(_ge("li_find_mode")){_ge("li_find_mode").parentNode.removeChild(_ge("li_find_mode"));} _proxy_jslib_assign('', _ge("div_geo_feedback_list_alternative_locations_list_ul"), 'innerHTML', '+=', ("<li>"+F.output.get("corrections_no_more")+"</li>"));_ge("div_geo_feedback_finding_alternative_locations").style.display="none";_ge("div_geo_feedback_list_alternative_locations").style.display="block";}}};var l={lat:h,lon:Z,step:(P*-1)};F.API.callMethod("flickr.photos.geo.placesForBoundingBox",{bbox:B+","+x+","+T+","+i,placetype:k,pass_params:l},r,null,null,0);},cancel_alternatives:function() {Y.U.Dom.setStyle("div_corrections_main_form_geotagged","display","block");Y.U.Dom.setStyle("div_geo_feedback_list_alternative_locations","display","none");},correct_location:function(l,Z) {var B={flickr_photos_geo_correctLocation_onLoad:function(i,k,P,z) {if(i){if(z.place_type==22){var r=16;}if(z.place_type==7){var r=14;}if(z.place_type==9){var r=11;}if(z.place_type==8){var r=8;}if(z.place_type==12){var r=5;}if(z.place_type==29){var r=2;}_ge("f_div_corrections_right_side").load_new_position(r,true);}}};_ge("div_geo_feedback_list_alternative_locations").style.display="none";_ge("div_geo_feedback_saving").style.display="block";F.API.callMethod("flickr.photos.geo.correctLocation",{photo_id:page_photo_id,place_id:l,place_type:Z},B,null,null,0);},remove_location:function() {var l={flickr_photos_geo_removeLocation_onLoad:function(z,P,Z,r) {if(z){Y.U.Dom.setStyle("div_single_marker_holder","display","none");Y.U.Dom.setStyle("f_img_ch_pink","display","block");_is_editing_geo=true;_has_geo=false;_taken_in=""; _proxy_jslib_assign('', _ge("freeform_geotagging"), 'value', '=', ("")); _proxy_jslib_assign('', _ge("freeform_geotagging_2"), 'value', '=', ("")); _proxy_jslib_assign('', _ge("freeform_geotagging_3"), 'value', '=', ("")); _proxy_jslib_assign('', _ge("freeform_geotagging_4"), 'value', '=', (""));_ge("geo_form_save").disabled=false;for(var B=0;B<document.forms[("frm_geo_perms")].length;B++){if(_default_viewgeo== _proxy_jslib_handle( _proxy_jslib_handle(document.forms[("frm_geo_perms")], (B), 0, 0), 'value', '', 0, 0)){document.forms[("frm_geo_perms")].selected=true;}}YAHOO.util.Dom.setStyle("div_geo_removing","display","none");YAHOO.util.Dom.setStyle("div_geo_remove_success","display","block");YAHOO.util.Dom.setStyle("div_corrections_main_form","display","block");_ge("f_div_corrections_box_holder_border").map_box.drag_around_timer_id= _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_box_holder_border').map_box.get_center_point_label()",333); _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_right_side').fade_remove_success()",800);_ge("f_div_corrections_right_side").display_lat_lon(_ge("f_div_corrections_box_holder_border").map_box.ymap.getCenterLatLon()); _proxy_jslib_assign('', _ge("div_taken_in"), 'innerHTML', '=', ("")); _proxy_jslib_assign('', _ge("div_taken_in_links"), 'innerHTML', '=', ("<a class=\"Plain\" onclick=\"F._corrections_box.show(true); return false\" href=\"#\">"+F.output.get("corrections_add_location_2")+"</a>"));}else{}}};YAHOO.util.Dom.setStyle("div_geo_remove_location_confirm","display","none");YAHOO.util.Dom.setStyle("div_geo_removing","display","block");F.API.callMethod("flickr.photos.geo.removeLocation",{photo_id:page_photo_id},l,null,null,0);},display_lat_lon:function(l) { _proxy_jslib_assign('', _ge("f_div_corrections_bottombar_right"), 'innerHTML', '=', (this.make_pretty(l.Lat,l.Lon)+"<br />")); _proxy_jslib_assign('', _ge("f_div_corrections_bottombar_right"), 'innerHTML', '+=', ("("+(_pi(l.Lat*10000)/10000)+", "+(_pi(l.Lon*10000)/10000)+")")); _proxy_jslib_assign('', _ge("f_div_corrections_bottombar_right"), 'innerHTML', '+=', ("<span class=\"geo\" style=\"display:none\"><span class=\"latitude\">"+l.Lat+"</span><span class=\"longitude\">"+l.Lon+"</span></span>"));},display_drag_around:function(l) {},make_pretty:function(Z,r) {var B=this.dec_to_dms(Z);if(Z>0){B.push("N");}else{B.push("S");}var l=this.dec_to_dms(r);if(r>0){l.push("E");}else{l.push("W");}return B[0]+"&#176;"+B[1]+"'"+B[2]+"\""+B[3]+", "+l[0]+"&#176;"+l[1]+"'"+l[2]+"\""+l[3];},fade_remove_success:function() {var l=function() {var Z=function() {Y.U.Dom.setStyle("div_geo_remove_success","display","none");Y.U.Dom.setStyle("div_geo_remove_success","height","");Y.U.Dom.setStyle("div_geo_remove_success","opacity","1");var P=new (YAHOO.util.Anim)(_ge("div_geo_remove_success"),{opacity:{to:1}},0.1,YAHOO.util.Easing.easeOut);P.animate();};var r=new (YAHOO.util.Anim)(_ge("div_geo_remove_success"),{height:{to:1}},0.333,YAHOO.util.Easing.easeOut);r.onComplete.subscribe(Z);r.animate();};var B=new (YAHOO.util.Anim)(_ge("div_geo_remove_success"),{opacity:{to:0}},0.333,YAHOO.util.Easing.easeOut);B.onComplete.subscribe(l);B.animate();},fade_save_success:function() {var l=function() {var Z=function() {Y.U.Dom.setStyle("div_geo_saved_success","display","none");Y.U.Dom.setStyle("div_geo_saved_success","height","");Y.U.Dom.setStyle("div_geo_saved_success","opacity","1");var P=new (YAHOO.util.Anim)(_ge("div_geo_saved_success"),{opacity:{to:1}},0.1,YAHOO.util.Easing.easeOut);P.animate();};var r=new (YAHOO.util.Anim)(_ge("div_geo_saved_success"),{height:{to:1}},0.333,YAHOO.util.Easing.easeOut);r.onComplete.subscribe(Z);r.animate();};var B=new (YAHOO.util.Anim)(_ge("div_geo_saved_success"),{opacity:{to:0}},0.333,YAHOO.util.Easing.easeOut);B.onComplete.subscribe(l);B.animate();},dec_to_dms:function(P) {P=Math.abs(P);while(P>360){P-=360;}var r=Math.floor(P);var z=3600*(P-r);var B=Math.floor(z/60);var l=(z/60)-B;var Z=Math.round(60*l);if(Z<10){Z="0"+Z;}return new (Array)(r,B,Z);}},map_box:{ymap:null,marker_offset:{x:-27,y:-130},const_map_map:0,const_map_sat:1,const_map_hyb:2,map_mode:0,counter_id:null,drag_around_timer_id:null,label_counter:0,map_moved:0,osming:false,show:function(l) {if(typeof (YMap)=="function"){if(!_ge("div_zoom_background")){if(l){Y.U.Dom.setStyle("f_div_corrections_map_holder","width","480px");Y.U.Dom.setStyle("f_div_corrections_map","width","480px");}else{Y.U.Dom.setStyle("f_div_corrections_map_holder","width","704px");Y.U.Dom.setStyle("f_div_corrections_map","width","704px");}this.ymap=new (YMap)(_ge("f_div_corrections_map"));this.ymap.disableKeyControls();this.ymap.setMapType(YAHOO_MAP_REG);var z=YUtility.createNode("div","div_zoom_background");var i={position:"absolute",top:"4px",right:"4px",width:"24px",height:"165px"};YUtility.setStyle(z,i);var B=YUtility.createNode("img","map_zoom_background");var i={position:"absolute",top:"0px",left:"0px",width:"24px",height:"165px"};YUtility.setStyle(B,i); _proxy_jslib_assign('', B, 'src', '=', (_images_root+"/map_zoom_background.png"));B.className="trans_png";YUtility.appendNode(z,B);var B=YUtility.createNode("img","candy_map_zoom_out");var i={position:"absolute",top:"4px",left:"4px",width:"16px",height:"16px"};YUtility.setStyle(B,i); _proxy_jslib_assign('', B.style, 'cursor', '=', ((F.is_ie)?"hand":"pointer")); _proxy_jslib_assign('', B, 'src', '=', (_images_root+"/candy_map_zoom_out_default.png"));YUtility.appendNode(z,B);var B=YUtility.createNode("img","candy_map_zoom_in");var i={position:"absolute",top:"145px",left:"4px",width:"16px",height:"16px"};YUtility.setStyle(B,i); _proxy_jslib_assign('', B.style, 'cursor', '=', ((F.is_ie)?"hand":"pointer")); _proxy_jslib_assign('', B, 'src', '=', (_images_root+"/candy_map_zoom_in_default.png"));YUtility.appendNode(z,B);var B=YUtility.createNode("img","candy_map_dragger");var i={position:"absolute",top:"20px",left:"3px",width:"18px",height:"13px"};YUtility.setStyle(B,i); _proxy_jslib_assign('', B.style, 'cursor', '=', ((F.is_ie)?"hand":"pointer")); _proxy_jslib_assign('', B, 'src', '=', (_images_root+"/candy_map_zoom_drag.png"));B.className="trans_png";YUtility.appendNode(z,B);YUtility.appendNode(_ge("f_div_corrections_map"),z);F.decorate(_ge("candy_map_zoom_in"),F._map_zoom_button).button_go_go_go("in");F.decorate(_ge("candy_map_zoom_out"),F._map_zoom_button).button_go_go_go("out");var z=YUtility.createNode("div","f_div_crosshairs");var i={position:"absolute",top:"161px",left:"222px"};YUtility.setStyle(z,i);var B=YUtility.createNode("img","f_img_ch_white");var i={display:"none"};YUtility.setStyle(B,i); _proxy_jslib_assign('', B.style, 'cursor', '=', ((F.is_ie)?"hand":"pointer")); _proxy_jslib_assign('', B, 'src', '=', (_images_root+"/map_crosshair_white.png"));YUtility.appendNode(z,B);var B=YUtility.createNode("img","f_img_ch_pink");var i={display:"block"};YUtility.setStyle(B,i); _proxy_jslib_assign('', B.style, 'cursor', '=', ((F.is_ie)?"hand":"pointer")); _proxy_jslib_assign('', B, 'src', '=', (_images_root+"/map_crosshair_pink.png"));YUtility.appendNode(z,B);YUtility.appendNode(_ge("f_div_corrections_map"),z);F.decorate(_ge("f_img_ch_white"),F._map_crosshairs_button).button_go_go_go();F.decorate(_ge("f_img_ch_pink"),F._map_crosshairs_button).button_go_go_go();YEvent.Capture(this.ymap,EventsList.changeZoom,function() {_ge("f_div_corrections_box_holder_border").map_box.toggle_zoom();F.osming.check_map(this,"f_div_corrections_map");});if(l){YEvent.Capture(this.ymap,EventsList.startPan,function() {if(_ge("f_div_corrections_box_holder_border").map_box.counter_id!=null){clearTimeout(_ge("f_div_corrections_box_holder_border").map_box.counter_id);}});YEvent.Capture(this.ymap,EventsList.endPan,function() {_ge("f_div_corrections_box_holder_border").has_the_map_moved_or_what=true;_ge("f_div_corrections_box_holder_border").map_box.map_moved++;if(_ge("f_div_corrections_box_holder_border").map_box.counter_id!=null){clearTimeout(_ge("f_div_corrections_box_holder_border").map_box.counter_id);}if(_is_editing_geo||(!_has_geo&&!_is_editing_geo)){_is_editing_geo=true;Y.U.Dom.setStyle("f_img_ch_white","display","none");Y.U.Dom.setStyle("f_img_ch_pink","display","block");_ge("geo_form_save").disabled=false;_ge("f_div_corrections_right_side").display_lat_lon(this.getCenterLatLon());_ge("f_div_corrections_box_holder_border").map_box.drag_around_timer_id= _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_box_holder_border').map_box.get_center_point_label()",333);}if(_save_position){_ge("f_div_corrections_box_holder_border").map_box.counter_id= _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_box_holder_border').map_box.end_pan_delay()",1000);}F.osming.check_map(this,"f_div_corrections_map");});}else{}Y.U.Event.addListener(_ge("candy_map_dragger"),"mousedown",this.map_dragger_mouseDown,this,true);var z=YUtility.createNode("img","candy_map_type_map");var i={position:"absolute",top:"4px",right:"31px",width:"62px",height:"20px"};YUtility.setStyle(z,i); _proxy_jslib_assign('', z, 'src', '=', (_intl_images_root+"/candy_map_type_map_default.png"));YUtility.appendNode(_ge("f_div_corrections_map"),z);var z=YUtility.createNode("img","candy_map_type_hybrid");var i={position:"absolute",top:"25px",right:"31px",width:"62px",height:"20px"};YUtility.setStyle(z,i); _proxy_jslib_assign('', z, 'src', '=', (_intl_images_root+"/candy_map_type_hybrid_default.png"));YUtility.appendNode(_ge("f_div_corrections_map"),z);var z=YUtility.createNode("img","candy_map_type_sat");var i={position:"absolute",top:"46px",right:"31px",width:"62px",height:"20px"};YUtility.setStyle(z,i); _proxy_jslib_assign('', z, 'src', '=', (_intl_images_root+"/candy_map_type_sat_default.png"));YUtility.appendNode(_ge("f_div_corrections_map"),z);F.decorate(_ge("candy_map_type_map"),F._map_type_button).button_go_go_go("map");F.decorate(_ge("candy_map_type_hybrid"),F._map_type_button).button_go_go_go("hybrid");F.decorate(_ge("candy_map_type_sat"),F._map_type_button).button_go_go_go("sat");this.map_position();F.osming.check_map(_ge("f_div_corrections_box_holder_border").map_box.ymap,"f_div_corrections_map");var k=YUtility.createNode("div","div_single_marker_holder");k.style.position="absolute";if(_has_geo){k.style.display="block";Y.U.Dom.setStyle("f_img_ch_white","display","none");Y.U.Dom.setStyle("f_img_ch_pink","display","none");}else{k.style.display="none";}var Z=YUtility.createNode("div","div_single_marker");Z.style.position="absolute";Z.style.left=this.marker_offset.x+"px"; _proxy_jslib_assign('', Z.style, 'top', '=', (this.marker_offset.y+"px"));Z.style.width="102px";Z.style.height="140px"; _proxy_jslib_assign('', Z.style, 'cursor', '=', ("pointer"));YUtility.appendNode(k,Z);var r=YUtility.createNode("img","img_single_marker");r.style.position="absolute";r.style.left="0px"; _proxy_jslib_assign('', r.style, 'top', '=', ("0px"));r.style.width="102px";r.style.height="140px"; _proxy_jslib_assign('', r, 'src', '=', (_images_root+"/pop_up_pinwin_thinner.png")); _proxy_jslib_assign('', r.style, 'cursor', '=', ("pointer"));r.className="trans_png";YUtility.appendNode(Z,r);var r=YUtility.createNode("img","img_single_marker_thumb");r.style.position="absolute";r.style.left="7px"; _proxy_jslib_assign('', r.style, 'top', '=', ("7px"));r.style.width="75px";r.style.height="75px"; _proxy_jslib_assign('', r.style, 'cursor', '=', ("pointer")); _proxy_jslib_assign('', r, 'src', '=', (geo_thmb));YUtility.appendNode(Z,r);if(_use_4real_location==""){var P=new (YGeoPoint)(this.ymap.getCenterLatLon().Lat,this.ymap.getCenterLatLon().Lon);}else{var P=new (YGeoPoint)(_use_4real_location.split("|")[0].split(",")[0],_use_4real_location.split("|")[0].split(",")[1]);}if(P.Lat==0&&P.Lon==0){P.Lat=0.0001;P.Lon=-0;}this.mo=new (YCustomOverlay)(P,k);this.ov=this.ymap.addOverlay(this.mo);_ge("f_div_corrections_right_side").display_lat_lon(this.mo.YGeoPoint);_ge("f_div_corrections_box_holder_border").map_box.toggle_type();return ;}else{ _proxy_jslib_assign('', _ge("f_div_corrections_map"), 'innerHTML', '=', (""));this.show(l);return ;}}var G=document.createElement("script"); _proxy_jslib_assign('', G, 'src', '=', ("http://us.js2.yimg.com/us.js.yimg.com/lib/map/js/api/ymapapi_3_8_0_6.js"));G.type="text/javascript"; _proxy_jslib_handle(document, 'getElementsByTagName', '', 1, 0)("head")[0].appendChild(G); _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_box_holder_border').map_box.check_for_map_existing("+l+")",100);},end_pan_delay:function() {if(_ge("f_div_corrections_box_holder_border").map_box.counter_id!=null){clearTimeout(_ge("f_div_corrections_box_holder_border").map_box.counter_id);}var l={flickr_people_geo_setLocation_onLoad:function(z,P,Z,r) {}};var B=new (Object)();B.lat=_ge("f_div_corrections_box_holder_border").map_box.ymap.getCenterLatLon().Lat;B.lon=_ge("f_div_corrections_box_holder_border").map_box.ymap.getCenterLatLon().Lon;B.accuracy=Math.min(16,Math.max(0,17-_ge("f_div_corrections_box_holder_border").map_box.ymap.getZoomLevel()));B.context="last";F.API.callMethod("flickr.people.geo.setLocation",B,l,null,null,0);},get_center_point_label:function() {_ge("f_div_corrections_box_holder_border").map_box.label_counter++;var B=new (Object)();B.lat=_ge("f_div_corrections_box_holder_border").map_box.ymap.getCenterLatLon().Lat;B.lon=_ge("f_div_corrections_box_holder_border").map_box.ymap.getCenterLatLon().Lon;B.accuracy=Math.min(16,Math.max(0,17-_ge("f_div_corrections_box_holder_border").map_box.ymap.getZoomLevel()));B.label_counter=_ge("f_div_corrections_box_holder_border").map_box.label_counter;var l={flickr_geocode_reverseGeocodePoint_onLoad:function(x,h,k,G) {if(x){if(G.label_counter==_ge("f_div_corrections_box_holder_border").map_box.label_counter){var P=[];var z= _proxy_jslib_handle(h.documentElement, 'getElementsByTagName', '', 1, 0)("location")[0].childNodes;for(var r=0;r<z.length;r++){if( _proxy_jslib_handle(z, (r), 0, 0).nodeName!="#text"&& _proxy_jslib_handle(z, (r), 0, 0).nodeName!="taken_in"){if(P.length==0||(P[0]!= _proxy_jslib_handle( _proxy_jslib_handle(z, (r), 0, 0).firstChild, 'nodeValue', '', 0, 0))){P.push( _proxy_jslib_handle( _proxy_jslib_handle(z, (r), 0, 0).firstChild, 'nodeValue', '', 0, 0));}if(P.length>=2){break;}}}var Z=P.join(", "); _proxy_jslib_assign('', _ge("f_div_corrections_drag_around"), 'innerHTML', '=', (F.output.get("corrections_drag_around",Z)));if(_ge("f_div_corrections_box_holder_border").map_box.map_moved>=1){ _proxy_jslib_assign('', _ge("f_div_corrections_search_results_clicked"), 'innerHTML', '=', (F.output.get("corrections_heres_a_place",Z))); _proxy_jslib_assign('', _ge("div_corrections_search_no_results_display"), 'innerHTML', '=', (F.output.get("corrections_drag_around",Z)));}}}else{ _proxy_jslib_assign('', _ge("f_div_corrections_drag_around"), 'innerHTML', '=', (F.output.get("corrections_drag_around",F.output.get("a_place_with_no_name"))));}}};F.API.callMethod("flickr.geocode.reverseGeocodePoint",B,l,null,null,0);},check_for_map_existing:function(l) {if(typeof (YMap)=="function"){_ge("f_div_corrections_box_holder_border").map_box.show(l);}else{ _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_box_holder_border').map_box.check_for_map_existing("+l+")",100);}},jump_to_map:function() { _proxy_jslib_assign('', window, 'location', '=', ("/map?fLat="+this.ymap.getCenterLatLon().Lat+"&fLon="+this.ymap.getCenterLatLon().Lon+"&zl="+_ge("f_div_corrections_box_holder_border").map_box.ymap.getZoomLevel()));},correct_marker:function() {var l={};l.x=Y.U.Dom.getRegion("div_single_marker").left-Y.U.Dom.getRegion("f_div_corrections_map").left;l.y= _proxy_jslib_handle(Y.U.Dom.getRegion("div_single_marker"), 'top', '', 0, 0)- _proxy_jslib_handle(Y.U.Dom.getRegion("f_div_corrections_map"), 'top', '', 0, 0);l.x-=this.marker_offset.x;l.y-=this.marker_offset.y;this.mo.setYGeoPoint(this.ymap.convertXYLatLon(new (YCoordPoint)(l.x,l.y)));_ge("f_div_corrections_right_side").display_lat_lon(this.mo.YGeoPoint);Y.U.Dom.setStyle("div_single_marker","left",this.marker_offset.x+"px");Y.U.Dom.setStyle("div_single_marker","top",this.marker_offset.y+"px");},center_marker:function() {var l={};l.x=_pi((Y.U.Dom.getRegion("f_div_corrections_map").right-Y.U.Dom.getRegion("f_div_corrections_map").left)/2);l.y=_pi((Y.U.Dom.getRegion("f_div_corrections_map").bottom- _proxy_jslib_handle(Y.U.Dom.getRegion("f_div_corrections_map"), 'top', '', 0, 0))/2);this.mo.setYGeoPoint(this.ymap.convertXYLatLon(new (YCoordPoint)(l.x,l.y)));_ge("f_div_corrections_right_side").display_lat_lon(this.mo.YGeoPoint);Y.U.Dom.setStyle("div_single_marker","left",this.marker_offset.x+"px");Y.U.Dom.setStyle("div_single_marker","top",this.marker_offset.y+"px");},center_map_on_marker:function() {this.ymap.drawZoomAndCenter(this.mo.YGeoPoint,this.ymap.getZoomLevel());},center_marker_on_map:function() {this.center_marker();},jump_to_last_saved_position:function() {if(_use_4real_location==""){var l=new (YGeoPoint)(0.0001,0);this.ymap.drawZoomAndCenter(l,16);this.mo.setYGeoPoint(l);}else{var l=new (YGeoPoint)(_use_4real_location.split("|")[0].split(",")[0],_use_4real_location.split("|")[0].split(",")[1]);this.ymap.drawZoomAndCenter(l,17-_use_4real_location.split("|")[0].split(",")[2]);this.mo.setYGeoPoint(l);}Y.U.Dom.setStyle("div_single_marker","left",this.marker_offset.x+"px");Y.U.Dom.setStyle("div_single_marker","top",this.marker_offset.y+"px");_ge("f_div_corrections_right_side").display_lat_lon(this.mo.YGeoPoint);},map_position:function() {if(_use_4real_location==""){var l=new (YGeoPoint)(0,0);this.ymap.drawZoomAndCenter(l,16);}else{var l=new (YGeoPoint)(_use_4real_location.split("|")[0].split(",")[0],_use_4real_location.split("|")[0].split(",")[1]);this.ymap.drawZoomAndCenter(l,17-_use_4real_location.split("|")[0].split(",")[2]);}this.toggle_zoom();},jump_to_position:function(B) {var Z=[new (YGeoPoint)(B.bbox.split(",")[1],B.bbox.split(",")[0]),new (YGeoPoint)(B.bbox.split(",")[3],B.bbox.split(",")[2])];var l=this.ymap.getBestZoomAndCenter(Z);this.ymap.drawZoomAndCenter(new (YGeoPoint)(B.lat,B.lon),l.zoomLevel);},jump_to_lat_lon:function(l,B) {this.ymap.drawZoomAndCenter(new (YGeoPoint)(l,B),3);},set_map_type:function(B) {if(B!=this.map_mode){this.map_mode=B;if(this.map_mode==this.const_map_map){this.ymap.setMapType(YAHOO_MAP_REG);}if(this.map_mode==this.const_map_hyb){this.ymap.setMapType(YAHOO_MAP_HYB);}if(this.map_mode==this.const_map_sat){this.ymap.setMapType(YAHOO_MAP_SAT);}var l={lat:_ge("f_div_corrections_box_holder_border").map_box.ymap.getCenterLatLon().Lat,lon:_ge("f_div_corrections_box_holder_border").map_box.ymap.getCenterLatLon().Lon};if(typeof (_use_osm)!="undefined"&&_use_osm==true&&_ge("f_div_corrections_box_holder_border").map_box.ymap.getCurrentMapType()=="YAHOO_MAP"&&_ge("f_div_corrections_box_holder_border").map_box.ymap.getZoomLevel()<8&&l.lat>=39.8558502197&&l.lat<=40.0156097412&&l.lon>=116.2662734985&&l.lon<=116.4829177856){if(!_ge("f_div_corrections_box_holder_border").map_box.osming){_ge("f_div_corrections_box_holder_border").map_box.oldTileReg=YMapConfig.tileReg;YMapConfig.tileReg=["/map_openstreetmap_tile_broker.gne?t=m&","/map_openstreetmap_tile_broker.gne?t=m&"];_ge("f_div_corrections_box_holder_border").map_box.osming=true;if(_ge("f_div_osm_cc")){_ge("f_div_osm_cc").style.display="block";} _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_box_holder_border').map_box.hide_copy()","100");_ge("f_div_corrections_box_holder_border").map_box.ymap._cleanTileCache();_ge("f_div_corrections_box_holder_border").map_box.ymap._callTiles();} _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_box_holder_border').map_box.hide_copy()","100"); _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_box_holder_border').map_box.hide_copy()","800");}else{if(_ge("f_div_corrections_box_holder_border").map_box.osming==true){YMapConfig.tileReg=_ge("f_div_corrections_box_holder_border").map_box.oldTileReg;_ge("f_div_corrections_box_holder_border").map_box.osming=false;if(_ge("f_div_osm_cc")){_ge("f_div_osm_cc").style.display="none";} _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_box_holder_border').map_box.show_copy()","100"); _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_box_holder_border').map_box.show_copy()","800");_ge("f_div_corrections_box_holder_border").map_box.ymap._cleanTileCache();_ge("f_div_corrections_box_holder_border").map_box.ymap._callTiles();}}}},toggle_type:function() {if(this.map_mode==this.const_map_map){_ge("candy_map_type_map").button_disable();}else{_ge("candy_map_type_map").button_enable();}if(this.map_mode==this.const_map_hyb){_ge("candy_map_type_hybrid").button_disable();}else{_ge("candy_map_type_hybrid").button_enable();}if(this.map_mode==this.const_map_sat){_ge("candy_map_type_sat").button_disable();}else{_ge("candy_map_type_sat").button_enable();}},toggle_zoom:function() {if(this.ymap.getZoomLevel()&&_ge("candy_map_dragger")){ _proxy_jslib_assign('', _ge("candy_map_dragger").style, 'top', '=', (20+((17-this.ymap.getZoomLevel())*7)+"px"));}if(_has_geo&&!_is_editing_geo){var B=_pi(_use_4real_location.split(",")[2]);var l=Math.min(16,Math.max(0,17-_ge("f_div_corrections_box_holder_border").map_box.ymap.getZoomLevel()));if(B+2<l){Y.U.Dom.setStyle("div_single_marker_holder","display","none");}else{Y.U.Dom.setStyle("div_single_marker_holder","display","block");}}if(_is_editing_geo||(!_has_geo&&!_is_editing_geo)){_ge("f_div_corrections_box_holder_border").map_box.drag_around_timer_id= _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_box_holder_border').map_box.get_center_point_label()",333);}if(_save_position){_ge("f_div_corrections_box_holder_border").map_box.counter_id= _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('f_div_corrections_box_holder_border').map_box.end_pan_delay()",1000);}},map_dragger_mouseDown:function(l) {Y.U.Event.stopEvent(l);this._new_zoom_level=_ge("f_div_corrections_box_holder_border").map_box.ymap.getZoomLevel();this._startDragY=Y.U.Event.getPageY(l)-_pi( _proxy_jslib_handle(_ge("candy_map_dragger").style, 'top', '', 0, 0));Y.U.Event.addListener(document,"mouseup",this.map_dragger_mouseUp,this,true);Y.U.Event.addListener(document,"mousemove",this.map_dragger_mouseMove,this,true);},map_dragger_mouseUp:function(l) {Y.U.Event.stopEvent(l);Y.U.Event.removeListener(document,"mouseup",this.map_dragger_mouseUp);Y.U.Event.removeListener(document,"mousemove",this.map_dragger_mouseMove);_ge("f_div_corrections_box_holder_border").map_box.ymap.setZoomLevel(this._new_zoom_level);},map_dragger_mouseMove:function(l) {var B=(Y.U.Event.getPageY(l)-this._startDragY);this._new_zoom_level=17-(_pi(B/7)-3);if(this._new_zoom_level<1){this._new_zoom_level=1;}if(this._new_zoom_level>17){this._new_zoom_level=17;} _proxy_jslib_assign('', _ge("candy_map_dragger").style, 'top', '=', (((17-this._new_zoom_level)*7)+20+"px"));}}};F._map_zoom_button={_decotype:F._simple_button,button_go_go_go:function(l) {this.direction=l;F._map_zoom_button._decotype.button_go_go_go.apply(this);},onclick:function(B) {var l=_ge("f_div_corrections_box_holder_border").map_box.ymap.getZoomLevel();if(this.direction=="in"){l--;}if(this.direction=="out"){l++;}if(l<1){l=1;}if(l>17){l=17;}_ge("f_div_corrections_box_holder_border").map_box.ymap.setZoomLevel(l);F.stop_event_propagation(B);},ondblclick:function(l) {F.stop_event_propagation(l);}};F._map_type_button={_decotype:F._simple_button,button_go_go_go:function(l) {this.type=l;F._map_type_button._decotype.button_go_go_go.apply(this,[1]);},onclick:function(l) {F.stop_event_propagation(l);if(this.type=="map"){_ge("f_div_corrections_box_holder_border").map_box.set_map_type(_ge("f_div_corrections_box_holder_border").map_box.const_map_map);}if(this.type=="hybrid"){_ge("f_div_corrections_box_holder_border").map_box.set_map_type(_ge("f_div_corrections_box_holder_border").map_box.const_map_hyb);}if(this.type=="sat"){_ge("f_div_corrections_box_holder_border").map_box.set_map_type(_ge("f_div_corrections_box_holder_border").map_box.const_map_sat);}_ge("f_div_corrections_box_holder_border").map_box.toggle_type();},ondblclick:function(l) {F.stop_event_propagation(l);}};F._map_crosshairs_button={_decotype:F._simple_button,button_go_go_go:function() {F._map_type_button._decotype.button_go_go_go.apply(this,[0]);},onclick:function(l) {F.stop_event_propagation(l);},ondblclick:function(B) {F.stop_event_propagation(B);var l=_ge("f_div_corrections_box_holder_border").map_box.ymap.getZoomLevel()-1;if(l<1){l=1;}_ge("f_div_corrections_box_holder_border").map_box.ymap.setZoomLevel(l);_ge("f_div_corrections_box_holder_border").map_box.toggle_zoom();}};F.PhotoPicker=function() {var B=this;var l=null;this.selectedPhotos=[];this.selectedPhotosHash=[];this.addedAPIResponses=[];this.oPhotosFound=null;this.pendingRequest=false;this.apiData={currentPage:1,pages:0,lastCallParams:{page:0}};this.parseCollection=function(z) {var U= _proxy_jslib_handle(z.documentElement, 'getElementsByTagName', '', 1, 0)("photo");if(U.length==0){return ;}else{var k= _proxy_jslib_handle(z.documentElement, 'getElementsByTagName', '', 1, 0)("photos")[0];if(!k){k= _proxy_jslib_handle(z.documentElement, 'getElementsByTagName', '', 1, 0)("photoset")[0];}B.apiData.currentPage=parseInt(k.getAttribute("page"));B.apiData.pages=parseInt(k.getAttribute("pages"));var Z=[];var i,h,x,r,P,G,s;for(var T=0;T<U.length;T++){i= _proxy_jslib_handle(U, (T), 0, 0).getAttribute("id");h= _proxy_jslib_handle(U, (T), 0, 0).getAttribute("secret");x= _proxy_jslib_handle(U, (T), 0, 0).getAttribute("server");P= _proxy_jslib_handle(U, (T), 0, 0).getAttribute("farm");G= _proxy_jslib_handle(U, (T), 0, 0).getAttribute("media");s= _proxy_jslib_handle(U, (T), 0, 0).getAttribute("ispublic");r= _proxy_jslib_handle(_photo_root, 'replace', '', 1, 0)("farm","farm"+P)+x+"/"+i+"_"+h+"_s.jpg";Z.push({"id":i,"src":r,"media":G,"ispublic":s}); _proxy_jslib_assign('', global_photos, (i), '=', ( _proxy_jslib_handle(U, (T), 0, 0)));}}return Z;};this.photoItem=document.createElement("li");this.photoItem.appendChild(document.createElement("img")); _proxy_jslib_assign('',  _proxy_jslib_handle(this.photoItem, 'getElementsByTagName', '', 1, 0)("img")[0], 'src', '=', (_images_root+"/spaceball.gif")); _proxy_jslib_handle(this.photoItem, 'getElementsByTagName', '', 1, 0)("img")[0].className="pp_thumb_geo";this.photoItem.appendChild(document.createElement("span")); _proxy_jslib_handle(this.photoItem, 'getElementsByTagName', '', 1, 0)("span")[0].className="pp_close_geo";this.photoItem.appendChild(document.createElement("span")); _proxy_jslib_handle(this.photoItem, 'getElementsByTagName', '', 1, 0)("span")[1].className="pp_status_geo";this.photoItem.appendChild(document.createElement("img")); _proxy_jslib_assign('',  _proxy_jslib_handle(this.photoItem, 'getElementsByTagName', '', 1, 0)("img")[1], 'src', '=', (_images_root+"/video_play_icon_small.png.v1")); _proxy_jslib_handle(this.photoItem, 'getElementsByTagName', '', 1, 0)("img")[1].className="pp_video_geo trans_png";this.cloneItem=function() {return B.photoItem.cloneNode(true);};this.call_API=function(P,Z) {var r={flickr_photos_geo_photosForLocation_onLoad:function(h,G,k,i) {if(h){_pp_geo.setLoading(false);_pp_geo.pendingRequest=false;if(!h){alert("there was an error: "+k);return ;}var z=_pp_geo.parseCollection(G);_pp_geo.makePhotosList(z);}}};_pp_geo.pendingRequest=true;F.API.callMethod("flickr.photos.geo.photosForLocation",{lat:P.lat,lon:P.lon,accuracy:P.acc,page:P.page,per_page:P.per_page},r,null,null,0);};this.makePhotosList=function(P) {var k=_ge("pp-source_geo");if(P&&P.length){var r=document.createElement("ul");r.className="pp-list_geo";var x=null;var G=null;var Z=null;for(var z=0;z<P.length;z++){x=B.cloneItem();x.style.width="60px";x.style.height="60px";G= _proxy_jslib_handle(x, 'getElementsByTagName', '', 1, 0)("img")[0];G.id="source_"+ _proxy_jslib_handle(P, (z), 0, 0).id; _proxy_jslib_assign('', G, 'src', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(P, (z), 0, 0), 'src', '', 0, 0)));G.style.width="60px";G.style.height="60px";if( _proxy_jslib_handle(P, (z), 0, 0).id!=page_photo_id){r.appendChild(x);}}k.appendChild(r);var h=k.scrollHeight-k.offsetHeight;if(k.scrollHeight&&k.scrollTop>=h){k.scrollTop=h-1;}}};this.setLoading=function(Z,P) {var r=_ge("pp-source_geo");var z=_ge("pp-loading_geo");if(P){ _proxy_jslib_assign('', r, 'innerHTML', '=', (""));}if(Z){Y.D.addClass(_ge("pp_geo"),"pp-cursor-loading_geo");}else{Y.D.removeClass(_ge("pp_geo"),"pp-cursor-loading_geo");} _proxy_jslib_assign('',  _proxy_jslib_handle(document, 'body', '', 0, 0).style, 'cursor', '=', ((Z?"wait":"auto")));z.className=(Z?"active":"");};this.getNextPage=function() {this.setLoading(true);this.pendingRequest=true;this.apiData.lastCallParams.page=this.apiData.currentPage;this.call_API(this.apiData.lastCallParams);};this.didScroll=function() {if(this.scrollHeight&&this.scrollTop>=this.scrollHeight-this.offsetHeight-2){B.scrolledToBottom();}};this.scrolledToBottom=function() {if(!this.pendingRequest&&this.apiData.currentPage<this.apiData.pages){this.apiData.currentPage++;this.getNextPage();}};this.isSelected=function(Z) {return (typeof  _proxy_jslib_handle(B.selectedPhotosHash, (Z), 0, 0)!="undefined");};this.sourceClick=function(k) {var i=(k?k.target||k.srcElement:event.srcElement);if(i.nodeName.toLowerCase()!=""){var Z=F.find_parent_node_by_name(i,"li");}if(!Y.D.hasClass(Z,"pp_type_photo_geo")&&!Y.D.hasClass(Z,"pp_type_video_geo")){return false;}var r=(i.nodeName.toLowerCase()=="li"?i:F.find_parent_node_by_name(i,"li"));i=Y.D.getElementsByClassName("pp_thumb_geo","img",r)[0];var P=null;var G=i.nodeName.toLowerCase();if(G=="img"&&Y.D.hasClass(i,"pp_thumb_geo")){P=i.id;}else{return true;}if(B.resetMode){B.removeSelectedItems();}var z= _proxy_jslib_handle(P, 'replace', '', 1, 0)("source","target");var r=_ge(z);if(r){B.removeItem(P,z);}else{B.addItem(F.find_parent_node(_ge(P)));}B.setResetMode(false);};this.resetMode=false;this.attachEvents=function() {Y.E.addListener(_ge("pp-source_geo"),"scroll",_pp_geo.didScroll);};this.init=function() {B.attachEvents();};}; ;
_proxy_jslib_flush_write_buffers() ;