function place_menu(C,B) {var A=Y.U.Dom.getX(B);var D=Y.U.Dom.getY(B)+24;if(F.is_ie){A-=2;D-=2}C.style.left=A+"px"; _proxy_jslib_assign('', C.style, 'top', '=', (D+"px"))}var sendToBlogDialogDiv;function show_sendToBlogDialog(B) {if(!_ok_for_scrumjax_xml()){ _proxy_jslib_assign('', document, 'location', '=', ("/blog.gne?photo="+B));return }if(_ge("photo_props")){_ge("photo_props").style.display="none"}var C=_ge("photo_gne_button_blog_this");C.disable_others();if(sendToBlogDialogDiv==undefined){make_send_to_div("sendToBlog",B)}place_menu(sendToBlogDialogDiv,C);sendToBlogDialogDiv.style.display="block";if(navigator.userAgent.indexOf("Mozilla/5.0")!=-1&&navigator.userAgent.indexOf("KHTML")==-1){var A=_ge("sendToBlogDialogListDiv").offsetHeight;if(A>=220){_ge("sendToBlogDialogListDiv").style.overflow="-moz-scrollbars-vertical"}}}var sendToGroupDialogDiv;function show_sendToGroupDialog(B) {if(!_ok_for_scrumjax_xml()){ _proxy_jslib_assign('', document, 'location', '=', ("/photo_sendto_group.gne?id="+B));return }if(_ge("photo_props")){_ge("photo_props").style.display="none"}var C=_ge("photo_gne_button_send_to_group");C.disable_others();if(sendToGroupDialogDiv==undefined){make_send_to_div("sendToGroup",B)}place_menu(sendToGroupDialogDiv,C);sendToGroupDialogDiv.style.display="block";if(navigator.userAgent.indexOf("Mozilla/5.0")!=-1&&navigator.userAgent.indexOf("KHTML")==-1){var A=_ge("sendToGroupDialogListDiv").offsetHeight;if(A>=220){_ge("sendToGroupDialogListDiv").style.overflow="-moz-scrollbars-vertical"}}}var sendToSetDialogDiv;function show_sendToSetDialog(B) {if(!_ok_for_scrumjax_xml()){ _proxy_jslib_assign('', document, 'location', '=', ("/photo_sendto_set.gne?id="+B));return }if(_ge("photo_props")){_ge("photo_props").style.display="none"}var C=_ge("photo_gne_button_send_to_set");C.disable_others();if(sendToSetDialogDiv==undefined){make_send_to_div("sendToSet",B)}place_menu(sendToSetDialogDiv,C);sendToSetDialogDiv.style.display="block";if(navigator.userAgent.indexOf("Mozilla/5.0")!=-1&&navigator.userAgent.indexOf("KHTML")==-1){var A=_ge("sendToSetDialogListDiv").offsetHeight;if(A>=220){_ge("sendToSetDialogListDiv").style.overflow="-moz-scrollbars-vertical"}}}var printDialogDiv;function show_printDialog(A) {if(!_ok_for_scrumjax_xml()){ _proxy_jslib_assign('', document, 'location', '=', ("/photo_print.gne?id="+A));return }if(_ge("photo_props")){_ge("photo_props").style.display="none"}var B=_ge("photo_gne_button_print");B.disable_others();if(printDialogDiv==undefined){make_send_to_div("print",A)}place_menu(printDialogDiv,B);printDialogDiv.style.display="block"}function hide_printDialog() {hide_send_to_div(printDialogDiv,_ge("photo_gne_button_print"));var A=_ge("print_form");if(A&&A.clear){A.clear()}}function hide_sendToSetDialog() {hide_send_to_div(sendToSetDialogDiv,_ge("photo_gne_button_send_to_set"),_ge("sendToSetDialogFormDiv"));var A=_ge("new_set_form"); _proxy_jslib_assign('', A.set_title, 'value', '=', ("")); _proxy_jslib_assign('', A.set_description, 'value', '=', (""))}function hide_sendToGroupDialog() {hide_send_to_div(sendToGroupDialogDiv,_ge("photo_gne_button_send_to_group"))}function hide_sendToBlogDialog() {hide_send_to_div(sendToBlogDialogDiv,_ge("photo_gne_button_blog_this"))}hide_send_to_div=function(D,C,B) {C.enable_others();C.lock_down=0;C.handle_mouseout();D.style.display="none";window.should_I_ignore_stuff_because_of_button_action=0; _proxy_jslib_assign('', _ge( _proxy_jslib_handle(D.id, 'replace', '', 1, 0)("Div","")+"HeaderDiv"), 'innerHTML', '=', (D.get_click_a_text()));var A=_ge( _proxy_jslib_handle(D.id, 'replace', '', 1, 0)("Div","")+"ListDiv");if(B&&B.style.display=="block"){A.style.display="block";B.style.display="none"}};make_send_to_div=function(G,D) {var I=G+"Dialog";var N=I+"Div";if(G=="sendToSet"){var J="set";var L=F.output.get("photo_what_set");var C=F.output.get("photo_what_set_plural");var B=49;var H="flickr.photosets.getList";var M=F.output.get("photo_create_new_one",N)}else{if(G=="sendToGroup"){var J="group";var L=F.output.get("photo_what_group");var C=F.output.get("photo_what_group_plural");var B=54;var H="flickr.groups.pools.getGroups";var M=F.output.get("photo_dont_belong")}else{if(G=="sendToBlog"){var J="blog";var L=F.output.get("photo_what_blog");var C=F.output.get("photo_what_blog_plural");var B=48;var H="flickr.blogs.getList";var M=F.output.get("photo_configure_blog_now")}else{if(G=="print"){var J="print";var L=F.output.get("photo_what_print");var C=F.output.get("photo_what_print_plural");var B=58;var H="";var M=""}else{return }}}}var A= _proxy_jslib_assign('', window, (N), '=', (document.createElement("div")));A.id=N;A.style.position="absolute";A.style.padding="0 0px 0px 0px";A.style.border="1px solid #999";A.style.borderWidth="0 1px 1px 1px";A.style.fontFamily="arial";A.style.fontSize="12px";A.style.textAlign="left";A.style.backgroundColor="#fff";A.style.width="250px";A.style.overflow="visible";if(G=="print"){A.style.width="270px";var K='<div style="border:1px solid #999; border-width:1px 0 0 0;height:1px; margin-left:'+B+'px; font-size:1px;"></div>';K+='<div id="'+I+'HeaderDiv" style="text-align:center; padding:3px 0 3px 0;">'+F.output.get("photo_loading_print_options")+"</div>";K+='<div id="'+I+'ListWrapperDiv" style="display:none; background-color:#fff; padding:4px 2px 4px 2px; border-bottom: 1px solid #ddd; border-top: 1px solid #ddd;">';K+='<div id="'+I+'ListDiv" style="padding-right:2px; max-height:450px; overflow:auto;"></div>';K+="</div>";K+='<div id="'+I+'BottomDiv" style="margin:0px; display:none; background-color:#f7f7f7; font-family:arial; font-size:11px; padding:13px 13px 8px 13px;">';K+="<!--"+F.output.get("photo_printing_services_provided_by");K+='<br><img src="'+_images_root+'/icon_cart.gif" width="16" height="16" border="0" style="border:0; float:right; display:block;"><br clear="all">';K+="--></div>"}else{var K='<div style="border:1px solid #999; border-width:1px 0 0 0;height:1px; margin-left:'+B+'px; font-size:1px;"></div>';if(J=="set"){K+='<div id="'+I+'HeaderDiv" style="text-align:center; padding:3px 0 3px 0;">'+F.output.get("photo_loading_what_set")+"</div>"}if(J=="group"){K+='<div id="'+I+'HeaderDiv" style="text-align:center; padding:3px 0 3px 0;">'+F.output.get("photo_loading_what_group")+"</div>"}if(J=="blog"){K+='<div id="'+I+'HeaderDiv" style="text-align:center; padding:3px 0 3px 0;">'+F.output.get("photo_loading_what_blog")+"</div>"}if(J=="print"){K+='<div id="'+I+'HeaderDiv" style="text-align:center; padding:3px 0 3px 0;">'+F.output.get("photo_loading_what_print")+"</div>"}K+='<div style="display:none; background-color:#fff; padding:4px 2px 4px 2px; border-bottom: 1px solid #ddd; border-top: 1px solid #ddd;">';K+='<div id="'+I+'ListDiv" style="padding-right:2px; max-height:220px; overflow:auto;"></div>';K+='	<div id="'+I+'FormDiv" style="margin:10px; display:none; height:200px">';if(G=="sendToSet"){K+='<form id="new_set_form" onsubmit="_ge(\''+N+"').create_new_set(); return false;\">";K+=F.output.get("photo_title")+'<br><input type="text" name="set_title" style="width:220px;"><br><br>';K+=F.output.get("photo_description")+'<br><textarea type="text" name="set_description" style="width:220px; height:105px;"></textarea><br>';K+='<input type="button" class="Butt" value="'+F.output.get("photo_create_new_set")+'" onclick="_ge(\''+N+'\').create_new_set(); this.blur();" style="margin:5px 0 0 0;">';K+="</form>"}K+="</div>";K+="</div>";K+='<div id="'+I+'BottomDiv" style="margin:3px; display:none; text-align:center;">';K+='<a href="" onclick="hide_'+I+'(); return false;">'+F.output.get("cancel")+"</a>";K+="</div>"} _proxy_jslib_assign('', A, 'innerHTML', '=', (K)); _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(A);A.get_click_a_text=function() {var O="";if(G=="sendToSet"){if(user_can_create_sets){O+=F.output.get("photo_choose_a_set_or","_ge('"+N+"').show_new_set_form();return false;")}else{O+=F.output.get("photo_choose_a_set")}}else{if(G=="print"){O=F.output.get("photo_choose_a_size")}else{if(J=="set"){O=F.output.get("photo_choose_a_what_set")}if(J=="group"){O=F.output.get("photo_choose_a_what_group")}if(J=="blog"){O=F.output.get("photo_choose_a_what_blog")}if(J=="print"){O=F.output.get("photo_choose_a_what_print")}}}return O};A.show_new_set_form=function() {_ge(I+"ListDiv").parentNode.style.display="block"; _proxy_jslib_assign('', _ge(I+"HeaderDiv"), 'innerHTML', '=', (F.output.get("photo_create_new_set_ups")));_ge(I+"ListDiv").style.display="none";_ge(I+"FormDiv").style.display="block";_ge("new_set_form").set_title.focus()};A.create_new_set=function() {var O=_ge("new_set_form");var Q= _proxy_jslib_handle(O.set_title, 'value', '', 0, 0);var P= _proxy_jslib_handle(O.set_description, 'value', '', 0, 0);if(Q==""){alert(F.output.get("photo_must_enter_set_title"));return }this.send_to_action(null,Q,"create",P)};A.send_to_action=function(Q,V,R,X,T) {var S=_ge("photo_notes");if(G=="sendToGroup"&&R=="add"&&! _proxy_jslib_handle(global_photos, (D), 0, 0).isPublic&&!T){ _proxy_jslib_handle(window, ("hide_"+I), 1, 0)();var O=function() {A.send_to_action(Q,V,R,X,1)};var W=F.output.get("photo_private_photo_to_group",V);S.start_comming(W,1,1,F.output.get("yes_up"),O,1,F.output.get("no_up"),null);return }deja_view_uh_huh();if(G=="print"){var P=F.output.get("photo_adding_prints_to_cart")}else{if(R=="remove"){var P="";if(J=="set"){P=F.output.get("photo_removing_photo_from_what_set")}if(J=="group"){P=F.output.get("photo_removing_photo_from_what_group")}if(J=="blog"){P=F.output.get("photo_removing_photo_from_what_blog")}}else{if(R=="create"){var P="";if(J=="set"){P=F.output.get("photo_creating_new_what_set")}if(J=="group"){P=F.output.get("photo_creating_new_what_group")}if(J=="blog"){P=F.output.get("photo_creating_new_what_blog")}}else{var P="";if(J=="set"){P=F.output.get("photo_adding_photo_to_what_set")}if(J=="group"){P=F.output.get("photo_adding_photo_to_what_group")}if(J=="blog"){P=F.output.get("photo_adding_photo_to_what_blog")}}}} _proxy_jslib_handle(window, ("hide_"+I), 1, 0)();this.id_dealing_with=Q;this.title_dealing_with=V;if(G=="sendToSet"){if(R=="create"){F.API.callMethod("flickr.photosets.create",{title:V,description:X,primary_photo_id:D},A)}else{if(R=="remove"){F.API.callMethod("flickr.photosets.removePhoto",{photoset_id:Q,photo_id:D},A)}else{F.API.callMethod("flickr.photosets.addPhoto",{photoset_id:Q,photo_id:D},A)}}}else{if(G=="sendToGroup"){if(R=="remove"){F.API.callMethod("flickr.groups.pools.remove",{group_id:Q,photo_id:D},A)}else{F.API.callMethod("flickr.groups.pools.add",{group_id:Q,photo_id:D},A)}}else{if(G=="sendToBlog"){var U=_ge("blog_form"); _proxy_jslib_assign('', U.blog, 'value', '=', (Q));U.submit();return }else{if(G=="print"){A.addToCart_responses_expected=page_print_orderA.length;A.addToCart_responses=0;A.addToCart_error_count=0;A.addToCart_problem_product_ids=[];A.addToCart_cart_url="";A.addToCart_last_error="";A.send_another_printing_product()}else{return }}}}if(S&&S.start_comming){S.start_comming(P)}};A.send_another_printing_product=function() {var O= _proxy_jslib_handle(page_print_orderA, (A.addToCart_responses), 0, 0).split(":");var P={provider_id:page_printing_provider,photo_ids:D,product_id: _proxy_jslib_handle(O[0], 'replace', '', 1, 0)("prod",""),quantity:O[1]};F.API.callMethod("flickr.printing.addToCart",P,A)};A.flickr_printing_addToCart_onLoad=function(X,W,V,Q) {A.addToCart_responses++;if(X){A.addToCart_cart_url= _proxy_jslib_handle( _proxy_jslib_handle(W.documentElement, 'getElementsByTagName', '', 1, 0)("cart")[0].firstChild, 'nodeValue', '', 0, 0)}else{A.addToCart_error_count++;A.addToCart_problem_product_ids.push(Q.product_id);if(V){A.addToCart_last_error=V}else{A.addToCart_last_error=F.output.get("unknown_err")}}if(A.addToCart_responses!=A.addToCart_responses_expected){A.send_another_printing_product();return }var T=_ge("photo_notes");writeDebug("div.addToCart_responses "+A.addToCart_responses+" "+A.addToCart_error_count);if(A.addToCart_responses>A.addToCart_error_count){if(A.addToCart_error_count>0){var R=F.output.get("photo_adding_some_errors", _proxy_jslib_handle(global_photos, (D), 0, 0).title,A.addToCart_error_count, _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(A.addToCart_last_error.truncate_with_ellipses(400), 'replace', '', 1, 0)("&","[wbr]&"), 'replace', '', 1, 0)("/","/[wbr]"), 'replace', '', 1, 0)("=","=[wbr]").escape_for_display_and_wrap(), 'replace', '', 1, 0)("[wbr]","<wbr>"))}else{var R=F.output.get("photo_added_prints_to_cart", _proxy_jslib_handle(global_photos, (D), 0, 0).title,A.addToCart_cart_url)}R+='<ul style="padding-left:20px;">';for(var S=0;S<page_print_orderA.length;S++){var P= _proxy_jslib_handle(page_print_orderA, (S), 0, 0).split(":");if(F.array_index_of(A.addToCart_problem_product_ids, _proxy_jslib_handle(A.productsO, (P[0]), 0, 0).id)>-1){R+='<li style="color:red;"><b>'+0+"</b> @ "+ _proxy_jslib_handle(A.productsO, (P[0]), 0, 0).id+" "+ _proxy_jslib_handle(A.productsO, (P[0]), 0, 0).name+"</li>"}else{R+="<li><b>"+P[1]+"</b> @ "+ _proxy_jslib_handle(A.productsO, (P[0]), 0, 0).name+" <nobr>("+format_price(P[1]*( _proxy_jslib_handle( _proxy_jslib_handle(A.productsO, (P[0]), 0, 0).price, 'replace', '', 1, 0)(".","")))+")</nobr></li>"}}R+="</ul>";R+='<form id="print_cart_form"><input type="button" id="print_ok_button" class="Butt" value="'+F.output.get("photo_continue_browsing")+'" style="margin:5px 0 10px 0;"><br>'+F.output.get("photo_or_are_you_ready")+'<br><input type="button" id="print_cart_button" class="Butt" value="'+F.output.get("photo_proceed")+'" style="margin:5px 0 10px 0;"></form><div id="print_cart_prompt"><img src="'+_images_root+'/icon_cart.gif" width="16" height="16" border="0" style="margin:0 6px 20px 0; border:0; float:left; display:block;"><div>'+F.output.get("photo_get_to_cart")+"</div></div>";T.start_comming(R,1,0,F.output.get("photo_go_to_cart"),1,F.output.get("close_up"),null);var U=_ge("print_ok_button");if(navigator.userAgent.indexOf("KHTML")==-1){U.focus()}U.onclick=function() {T.stop_comming();this.blur()};var O=_ge("print_cart_button");O.onclick=function() {T.stop_comming();this.blur(); _proxy_jslib_assign('', document, 'location', '=', (A.addToCart_cart_url))}}else{alert(F.output.get("photo_errors_adding_prints")+" "+A.addToCart_last_error);if(T&&T.stop_comming){T.stop_comming(1)}}};A.flickr_photosets_removePhoto_onLoad=A.flickr_groups_pools_remove_onLoad=function(U,T,S) {var P=_ge("photo_notes");var O=_ge("add_to_"+J+"_"+this.id_dealing_with+"_div");var Q=_ge("add_to_"+J+"_"+this.id_dealing_with+"_td");if(U||S.indexOf("not in pool")!=-1||S.indexOf("not in set")!=-1){if(O){O.make_me_for_adding()}if(P&&P.p_id&&G=="sendToSet"){var R=F.output.get("photo_removed_from_set", _proxy_jslib_handle(global_photos, (D), 0, 0).ownersUrl,this.id_dealing_with,this.title_dealing_with);remove_context_widget("set",this.id_dealing_with);F.API.callMethod(H,{},A)}else{if(P&&P.p_id&&G=="sendToGroup"){var R=F.output.get("photo_removed_from_pool",this.id_dealing_with,this.title_dealing_with);remove_context_widget("pool",this.id_dealing_with)}}P.start_comming(R,1,1,F.output.get("ok"))}else{alert(F.output.get("api_err_generic")+" "+S);if(P&&P.stop_comming){P.stop_comming(1)}}};A.flickr_photosets_addPhoto_onLoad=A.flickr_groups_pools_add_onLoad=function(X,W,T,P) {var S=_ge("photo_notes");var V=_ge("add_to_"+J+"_"+this.id_dealing_with+"_div");var Q=_ge("add_to_"+J+"_"+this.id_dealing_with+"_td");if(X||T.indexOf("already in pool")!=-1||T.indexOf("already in set")!=-1||T.indexOf("Your Photo has been added to the Pending Queue for this Pool")!=-1){if(V){V.make_me_for_removing()}if(S&&S.p_id&&G=="sendToSet"){var R=F.output.get("photo_added_to_set", _proxy_jslib_handle(global_photos, (D), 0, 0).ownersUrl,this.id_dealing_with,this.title_dealing_with);add_context_widget("set",this.id_dealing_with,D)}else{if(S&&S.p_id&&G=="sendToGroup"){if(T.indexOf("Your Photo has been added to the Pending Queue for this Pool")!=-1){var R=F.output.get("photo_added_to_pool_pending",this.id_dealing_with,this.title_dealing_with)}else{var R=F.output.get("photo_added_to_pool",this.id_dealing_with,this.title_dealing_with)}add_context_widget("pool",this.id_dealing_with,D,(T.indexOf("Your Photo has been added to the Pending Queue for this Pool")!=-1)?true:false)}}var U=function() {V.confirm_remove()};S.start_comming(R,1,1,F.output.get("ok"),null,1,F.output.get("undo"),U)}else{if(!W){alert(F.output.get("api_err_generic")+" "+T);if(S&&S.stop_comming){S.stop_comming(1)}return }var O= _proxy_jslib_handle(W.documentElement, 'getElementsByTagName', '', 1, 0)("err")[0];if(O&&O.getAttribute("code")=="5"&&J=="group"){this.flickr_groups_getInfo_onLoad=function(g,f,c,e) {var b= _proxy_jslib_handle(f.documentElement, 'getElementsByTagName', '', 1, 0)("throttle")[0];var Z=b.getAttribute("count");var a=b.getAttribute("mode");if(a=="disabled"){var d=F.output.get("photo_adding_disabled",this.title_dealing_with)}else{if(a=="ever"){if(Z*1>1){var d=F.output.get("photo_limits_1",Z,this.title_dealing_with,Z)}else{var d=F.output.get("photo_limits_2",Z,this.title_dealing_with,Z)}}else{if(Z*1>1){var d=F.output.get("photo_limits_3_"+a,Z,this.title_dealing_with,Z)}else{var d=F.output.get("photo_limits_4_"+a,Z,this.title_dealing_with,Z)}}}d+="<br><br>"+F.output.get("photo_see_group_for_info",_site_root,this.id_dealing_with,this.title_dealing_with);S.start_comming(d,1,1)};F.API.callMethod("flickr.groups.getInfo",{group_id:this.id_dealing_with},this)}else{if(O&&O.getAttribute("code")=="4"&&J=="group"){S.start_comming(F.output.get("photo_max_groups",global_group_limit,this.title_dealing_with),1,1)}else{if(O&&O.getAttribute("code")=="6"&&J=="group"){S.start_comming(F.output.get("photo_max_groups",global_group_limit,this.title_dealing_with),1,1)}else{if(O&&O.getAttribute("code")=="7"&&J=="group"){S.start_comming(F.output.get("photo_added_to_pool_already_pending",global_group_limit,this.title_dealing_with),1,1);if(V){V.make_me_for_removing()}}else{if(O&&O.getAttribute("code")=="8"&&J=="group"){this.pool_restrictions_fragment_onLoad=function(c,Z,b) {var a=F.output.get("photo_not_added_to_pool_restrictions",this.id_dealing_with,this.title_dealing_with);a+=restrictions_html='<ul class="batch_edit_pool_restrictions">'+Z+"</ul>";a+=""+F.output.get("photo_see_group_for_info",_site_root,this.id_dealing_with,this.title_dealing_with);S.start_comming(a,1,1)};F.fragment_getter.get("/fragment_groups_pool_restrictions.gne",{nsid:this.id_dealing_with},this,"pool_restrictions_fragment_onLoad")}else{alert(F.output.get("api_err_generic")+" "+T);if(S&&S.stop_comming){S.stop_comming(1)}}}}}}}};A.flickr_photosets_create_onLoad=function(T,S,R) {var P=_ge("photo_notes");if(T){var O= _proxy_jslib_handle(S.documentElement, 'getElementsByTagName', '', 1, 0)("photoset")[0];if(P&&P.p_id&&G=="sendToSet"){var Q=F.output.get("photo_added_to_set2",O.getAttribute("url"),this.title_dealing_with);add_context_widget("set",O.getAttribute("id"),D)}P.start_comming(Q,1,1,F.output.get("ok"),null);F.API.callMethod(H,{new_set_id_passthrough:O.getAttribute("id")},A)}else{alert(F.output.get("api_err_generic")+" "+R);if(P&&P.stop_comming){P.stop_comming(1)}}};A.flickr_photosets_getList_onLoad=A.flickr_blogs_getList_onLoad=A.flickr_groups_pools_getGroups_onLoad=function(V,O,Z,o) {if(!V){alert(F.output.get("api_err_generic")+" "+Z)}var j=1;var T=1;if(G=="sendToSet"){var b= _proxy_jslib_handle(O.documentElement, 'getElementsByTagName', '', 1, 0)("photoset");user_can_create_sets=( _proxy_jslib_handle(O.documentElement, 'getElementsByTagName', '', 1, 0)("photosets")[0].getAttribute("cancreate")=="1")?1:0; _proxy_jslib_assign('', _ge(I+"HeaderDiv"), 'innerHTML', '=', (this.get_click_a_text()))}else{if(G=="sendToGroup"){var b= _proxy_jslib_handle(O.documentElement, 'getElementsByTagName', '', 1, 0)("group");j= _proxy_jslib_handle(O.documentElement, 'getElementsByTagName', '', 1, 0)("groups")[0].getAttribute("pages")*1;T= _proxy_jslib_handle(O.documentElement, 'getElementsByTagName', '', 1, 0)("groups")[0].getAttribute("page")*1}else{if(G=="sendToBlog"){var b= _proxy_jslib_handle(O.documentElement, 'getElementsByTagName', '', 1, 0)("blog")}else{return }}}if(b.length==0){if(G=="sendToSet"){A.show_new_set_form()}else{ _proxy_jslib_assign('', _ge(I+"BottomDiv"), 'innerHTML', '=', ("<br>"+M+"<br><br>"+ _proxy_jslib_handle(_ge(I+"BottomDiv"), 'innerHTML', '', 0, 0)+""));_ge(I+"HeaderDiv").style.display="none"}}else{if(T==1){ _proxy_jslib_assign('', _ge(I+"ListDiv"), 'innerHTML', '=', (""))}var q=_page_timer.add("before collection iteration");for(var k=0;k<b.length;k++){_page_timer.add("before handle one");var n= _proxy_jslib_handle(b, (k), 0, 0);var m=n.getAttribute("id");if(G=="sendToSet"){var a="contextDiv_set"+m;var P="set";var f= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(O.documentElement, 'getElementsByTagName', '', 1, 0)("title"), (k), 0, 0).firstChild, 'nodeValue', '', 0, 0);var d=n.getAttribute("server");var W=Math.ceil(d/1000);var e= _proxy_jslib_handle(_photo_root, 'replace', '', 1, 0)("http://farm","http://farm"+W);var S=e+d+"/"+n.getAttribute("primary")+"_"+n.getAttribute("secret")+"_s.jpg";var X=25;var Q=25}else{if(G=="sendToGroup"){var a="contextDiv_pool"+m;var P="pool";var f=n.getAttribute("name");var d=n.getAttribute("iconserver");var S=_images_root+"/buddyicon.jpg";if(d&&d!="0"){var W=Math.ceil(d/1000);var e= _proxy_jslib_handle(_photo_root, 'replace', '', 1, 0)("http://farm","http://farm"+W);S=e+d+"/buddyicons/"+n.getAttribute("id")+".jpg"}var X=24;var Q=24}else{if(G=="sendToBlog"){var a="";var P="";var f=n.getAttribute("name");var S=_images_root+"/spaceball.gif";var X=20;var Q=2}}}var R=(k==0||(F.is_ie))?"0px":"-2px";var c=make_menu_item(J,m,f,R,S,Q,X,I);_ge(I+"ListDiv").appendChild(c);var l=false;if(G=="sendToGroup"){for(var h=0;h<in_groupsA.length;h++){if( _proxy_jslib_handle(in_groupsA, (h), 0, 0).nsid==m&&( _proxy_jslib_handle(in_groupsA, (h), 0, 0).status==1|| _proxy_jslib_handle(in_groupsA, (h), 0, 0).status==2)){l=true}}}if(G=="sendToGroup"&&l){c.make_me_for_removing()}else{if(G=="sendToSet"&&(_ge(a)&&_ge(a).style.display=="block"||nextprev_currentContextID==P+m)||o.new_set_id_passthrough==m){c.make_me_for_removing()}else{c.make_me_for_adding()}}_page_timer.add("after handle one")}_page_timer.add("after collection iteration");if(T<j){o.page=T+1;F.API.callMethod(o.method,o,this);return }_ge(I+"ListDiv").parentNode.style.display="block";if(F.is_ie){_ge(I+"ListDiv").style.height="auto";var U=_ge(I+"ListDiv").offsetHeight;if(U&&U>220){_ge(I+"ListDiv").style.height="220px"}} _proxy_jslib_assign('', _ge(I+"HeaderDiv"), 'innerHTML', '=', (A.get_click_a_text()))}_ge(I+"BottomDiv").style.display="block";_page_timer.dump(q)};A.flickr_printing_getProducts_onLoad=function(Q,O,T,f) {if(!Q){alert(F.output.get("api_err_generic")+" "+T)}calculate_photo_props(D);var X= _proxy_jslib_handle(global_photos, (D), 0, 0);var W= _proxy_jslib_handle(O.documentElement, 'getElementsByTagName', '', 1, 0)("product");if(W.length==0){hide_printDialog();return false}else{window.page_print_prices={};A.productsO={};for(var c=0;c<W.length;c++){var d= _proxy_jslib_handle(W, (c), 0, 0);var V=d.getAttribute("id");var a=d.getAttribute("price");var h=d.getAttribute("name");var b=d.getAttribute("description");var S=d.getAttribute("minresx")*1;var R=d.getAttribute("minresy")*1;var Z=d.getAttribute("aspect")*1;var P=d.getAttribute("panorama")*1;var e=0;if(X.huge){if(F.array_index_of(global_huge_photo_print_ids,V)>-1){e=1}}else{if(F.array_index_of(global_wallet_photo_print_ids,V)>-1){e=1}}if(X.square){if(F.array_index_of(global_square_photo_print_ids,V)>-1){e=1}}if(X.dig_dims){if(F.array_index_of(global_dig_photo_print_ids,V)>-1){e=1}}else{if(F.array_index_of(global_reg_photo_print_ids,V)>-1){e=1}}writeDebug("min rec size:"+S+"x"+R+" size:"+X.o_w+"x"+X.o_h);if(Z==1){var U=(Math.min(X.o_w,X.o_h)>=S)?1:0}else{var U=(Math.max(X.o_w,X.o_h)>=Math.max(S,R)&&Math.min(X.o_w,X.o_h)>=Math.min(S,R))?1:0}writeDebug("recommended:"+U); _proxy_jslib_assign('', A.productsO, ("prod"+V), '=', ({id:V,name: _proxy_jslib_handle(h, 'replace', '', 1, 0)("Digital Aspect",""),description:b,price:a,recommended:U,show:e,minresx:S,minresy:R})); _proxy_jslib_assign('', page_print_prices, ("prod"+V), '=', ( _proxy_jslib_handle(a, 'replace', '', 1, 0)(".","")))}}A.show_printing_products()};A.flickr_printing_setPrefs_onLoad=function(R,Q,O,P) {if(R){F.API.callMethod("flickr.printing.getProviders",{country_code:page_printing_country_code},A)}else{alert(F.output.get("api_err_generic")+" "+O)}};A.flickr_printing_getProviders_onLoad=function(S,R,O,Q) {if(S){var P= _proxy_jslib_handle(R.documentElement, 'getElementsByTagName', '', 1, 0)("provider");if(P.length==0){page_printing_provider=0}else{page_printing_provider=P[0].getAttribute("id")}if(!page_printing_provider||page_printing_provider=="0"){A.show_no_providers()}else{A.show_printing_products()}}else{alert(F.output.get("api_err_generic")+" "+O)}};A.show_print_screen_changing=function(O) { _proxy_jslib_assign('', _ge(I+"HeaderDiv"), 'innerHTML', '=', ("<br>"+O+"<br><br>"));_ge(I+"ListDiv").parentNode.style.display="none"};A.set_country_select=function(R) {if(!R){R=0}var P=_ge("country");if(!P){return }for(var O=0;O<P.options.length;O++){var Q= _proxy_jslib_handle(P.options, (O), 0, 0);if(R== _proxy_jslib_handle(Q, 'value', '', 0, 0)){P.selectedIndex=O;return }}};A.show_no_providers=function() { _proxy_jslib_assign('', _ge(I+"HeaderDiv"), 'innerHTML', '=', (F.output.get("photo_apologize")));_ge(I+"HeaderDiv").style.display="none";_ge(I+"ListWrapperDiv").style.border="0px solid red";_ge("choose_a_country_div").style.display="none";if(A.no_providers_text==undefined){A.no_providers_text= _proxy_jslib_handle(_ge("no_providers_div"), 'innerHTML', '', 0, 0)}var O=function(P) {P= _proxy_jslib_handle(P, 'replace', '', 1, 0)("REP_COUNTRY",page_printing_country_name);return P}; _proxy_jslib_assign('', _ge("no_providers_div"), 'innerHTML', '=', (O(A.no_providers_text)));_ge("no_providers_div").style.display="block";_ge(I+"ListDiv").parentNode.style.display="block"};A.show_country_form=function() { _proxy_jslib_assign('', _ge(I+"HeaderDiv"), 'innerHTML', '=', (F.output.get("photo_first_things_first")));_ge(I+"HeaderDiv").style.display="none";_ge(I+"ListWrapperDiv").style.border="0px solid red";_ge("no_providers_div").style.display="none";_ge("print_form").style.display="none";A.set_country_select(page_printing_country_code);var O=_ge("country_submit");var P=_ge("country_form");if(P){P.onsubmit=O.onclick=function() {var R=P.country.selectedIndex;if( _proxy_jslib_handle( _proxy_jslib_handle(P.country.options, (R), 0, 0), 'value', '', 0, 0)==0){return false}A.show_print_screen_changing(F.output.get("photo_setting_country"));page_printing_country_code= _proxy_jslib_handle( _proxy_jslib_handle(P.country.options, (R), 0, 0), 'value', '', 0, 0);page_printing_country_name= _proxy_jslib_handle(P.country.options, (R), 0, 0).text;F.API.callMethod("flickr.printing.setPrefs",{country_code:page_printing_country_code},A)};var Q=_ge("country");Q.onchange=function() {if(navigator.userAgent.indexOf("KHTML")==-1){O.focus()}}}_ge("choose_a_country_div").style.display="block";_ge(I+"ListDiv").parentNode.style.display="block";if(P){if(navigator.userAgent.indexOf("KHTML")==-1){Q.focus()}}};A.show_all_printing_products=function() {printDialogDiv.style.display="none";for(p in A.productsO){var O= _proxy_jslib_handle(A.productsO, (p), 0, 0);if(O.show){continue}_ge("prod_"+O.id+"_tr").style.display=(F.is_ie)?"block":"table-row";if(!O.recommended){_ge("print_not_rec_tr").style.display=(F.is_ie)?"block":"table-row"}}show_printDialog(D)};A.show_printing_products=function() {if(A.productsO==undefined){F.API.callMethod("flickr.printing.getProducts",{provider_id:page_printing_provider},A);return } _proxy_jslib_assign('', _ge(I+"HeaderDiv"), 'innerHTML', '=', (A.get_click_a_text()));_ge(I+"HeaderDiv").style.display="block";_ge("choose_a_country_div").style.display="none";_ge("no_providers_div").style.display="none";var R=_ge("print_product_tr");var S=R.parentNode;var X=function(b,a) {var d=a.description+" "+F.output.get("photo_we_recommend",a.minresx,a.minresy);global_js_tip_count++;var c=F.get_tip_html(d,"js_tooltip_"+global_js_tip_count,"tip_print_menu");b= _proxy_jslib_handle(b, 'replace', '', 1, 0)("REP_TIP",c);b= _proxy_jslib_handle(b, 'replace', '', 1, 0)("REP_NAME",a.name);b= _proxy_jslib_handle(b, 'replace', '', 1, 0)("REP_PRODUCT","prod"+a.id);b= _proxy_jslib_handle(b, 'replace', '', 1, 0)("REP_PRICE",a.price);return b};for(p in A.productsO){var U= _proxy_jslib_handle(A.productsO, (p), 0, 0);var V=document.createElement("tr");V.id="prod_"+U.id+"_tr";if(!U.show){V.style.display="none"}var Q=document.createElement("td");Q.className="print_dropdown_td"; _proxy_jslib_assign('', Q, 'innerHTML', '=', (X( _proxy_jslib_handle(R.childNodes[0], 'innerHTML', '', 0, 0),U)));V.appendChild(Q);var P=document.createElement("td");P.className=(U.recommended)?"print_item_td":"print_item_notrec_td"; _proxy_jslib_assign('', P, 'innerHTML', '=', (X( _proxy_jslib_handle(R.childNodes[1], 'innerHTML', '', 0, 0),U)));V.appendChild(P);var O=document.createElement("td");O.className=(U.recommended)?"print_price_td":"print_price_notrec_td"; _proxy_jslib_assign('', O, 'innerHTML', '=', (X( _proxy_jslib_handle(R.childNodes[2], 'innerHTML', '', 0, 0),U)));V.appendChild(O);if(U.recommended){S.insertBefore(V,_ge("print_not_rec_tr"))}else{if(U.show){_ge("print_not_rec_tr").style.display=(F.is_ie)?"block":"table-row"}S.appendChild(V)}}var T=_ge("print_cancel");var Z=_ge("print_add");var W=_ge("print_form");W.clear=function() {for(var a=0;a<W.elements.length;a++){if( _proxy_jslib_handle(W.elements, (a), 0, 0).type=="select-one"){ _proxy_jslib_handle(W.elements, (a), 0, 0).selectedIndex=0}}update_print_prices()};page_print_orderA=[];T.onclick=hide_printDialog;Z.onclick=function() {page_print_orderA=[];for(var a=0;a<W.elements.length;a++){if( _proxy_jslib_handle(W.elements, (a), 0, 0).type=="select-one"){if( _proxy_jslib_handle( _proxy_jslib_handle(W.elements, (a), 0, 0), 'value', '', 0, 0)*1>0){writeDebug("print_form.elements[i].value "+ _proxy_jslib_handle( _proxy_jslib_handle(W.elements, (a), 0, 0), 'value', '', 0, 0));page_print_orderA.push( _proxy_jslib_handle(W.elements, (a), 0, 0).name+":"+ _proxy_jslib_handle( _proxy_jslib_handle(W.elements, (a), 0, 0), 'value', '', 0, 0))}}}if(page_print_orderA.length>0){A.send_to_action(D,"cart","add")}return false};if(_ge("change_country_link2")){_ge("change_country_link2").onclick=function() {A.show_country_form();return false}}if(_ge("more_print_options")){_ge("more_print_options").onclick=function() {this.style.display="none";A.show_all_printing_products();return false}}_ge("print_form").style.display="block";_ge(I+"ListDiv").parentNode.style.display="block"};A.print_fragment_onLoad=function(Q,O,P) { _proxy_jslib_assign('', _ge(I+"ListDiv"), 'innerHTML', '=', (O));if(page_printing_provider&&page_printing_provider!="0"){A.show_printing_products()}else{if(page_printing_country_code!=""){A.show_no_providers()}else{A.show_country_form()}}};if(G=="print"){var E={photo_id:D};if(page_qoop_url!=undefined){E.qoop_url=page_qoop_url}if(page_hp_url!=undefined){E.hp_url=page_hp_url}if(page_tinyprints_url!=undefined){E.tinyprints_url=page_tinyprints_url}F.fragment_getter.get("/photo_print_fragment.gne",E,A,"print_fragment_onLoad")}else{F.API.callMethod(H,{},A)}};make_menu_item=function(J,G,B,A,D,C,L,H) {var I=(F.is_ie)?217:220;var K=document.createElement("DIV");K.id="add_to_"+J+"_"+G+"_div";K.style.marginTop=A;K.highlight=function() {this.style.backgroundColor="#0063DC";_ge("add_to_"+J+"_"+G+"_td").style.color="#fff"};K.unhighlight=function() {this.style.backgroundColor="transparent";_ge("add_to_"+J+"_"+G+"_td").style.color="#0063DC"};K.add_action=function() { _proxy_jslib_handle(window, (H+"Div"), 0, 0).send_to_action(G,B,"add")};K.remove_action=function() { _proxy_jslib_handle(window, (H+"Div"), 0, 0).send_to_action(G,B,"remove")};K.confirm_remove=function() { _proxy_jslib_handle(window, ("hide_"+H), 1, 0)();var M=function() {K.remove_action()};var N=_ge("photo_notes");N.start_comming(F.output.get("photo_are_you_sure",B),1,1,F.output.get("yes_up"),M,1,F.output.get("cancel"),null)};K.make_me_for_removing=function() {this.unhighlight(); _proxy_jslib_assign('', this.style, 'cursor', '=', ("default"));_ge("add_to_"+J+"_"+G+"_td").style.color="#999";if(J=="set"){remove_link='<a title="'+F.output.get("photo_remove_from_set", _proxy_jslib_handle( _proxy_jslib_handle(B, 'replace', '', 1, 0)("<","&lt;"), 'replace', '', 1, 0)('"',"&quot;"))+'" class="remove_thing" href="" onclick="_ge(\''+K.id+"').confirm_remove();return false;\">[X]</a>"}else{if(J=="group"){remove_link='<a title="'+F.output.get("photo_remove_from_pool", _proxy_jslib_handle( _proxy_jslib_handle(B, 'replace', '', 1, 0)("<","&lt;"), 'replace', '', 1, 0)('"',"&quot;"))+'" class="remove_thing" href="" onclick="_ge(\''+K.id+"').confirm_remove();return false;\">[X]</a>"}} _proxy_jslib_assign('', _ge("add_to_"+J+"_"+G+"_td"), 'innerHTML', '=', (B.truncate_with_ellipses(25)+" "+remove_link));this.onmouseout=null;this.onmouseover=null;this.onclick=null};K.make_me_for_adding=function() {this.unhighlight(); _proxy_jslib_assign('', this.style, 'cursor', '=', ((F.is_ie)?"hand":"pointer"));_ge("add_to_"+J+"_"+G+"_td").style.color="#0063DC"; _proxy_jslib_assign('', _ge("add_to_"+J+"_"+G+"_td"), 'innerHTML', '=', ("<span>"+B.truncate_with_ellipses(31)+"</span>"));this.onmouseout=this.unhighlight;this.onmouseover=this.highlight;this.onclick=this.add_action};var E="";E+='<table border="0" cellspacing="0" cellpadding="0" width="'+I+'"><tr>';E+='<td valign="top" style="padding:0; width:'+(C+7)+'px;">';E+='<img src="'+D+'" width="'+C+'" height="'+L+'" style="border:0; display:block; margin: 2px 0 2px 2px;"></td>';E+='<td id="add_to_'+J+"_"+G+'_td">';E+="</td></tr></table>"; _proxy_jslib_assign('', K, 'innerHTML', '=', (E));return K};remove_context_widget=function(I,C) {if(I=="pool"){for(var A=0;A<in_groupsA.length;A++){if( _proxy_jslib_handle(in_groupsA, (A), 0, 0).nsid==C){ _proxy_jslib_handle(in_groupsA, (A), 0, 0).status=0;break}}}var G=_ge("contextDiv_"+I+C);if(G){G.style.display="none";if(nextprev_currentContextID==I+C){var E=_ge("nextprev_button_stream"+global_nsid);if(E&&!E.isOpen){E.handle_click()}}var B=_ge("other_contexts_p");var D=Y.U.Dom.getElementsByClassName("contextDiv","DIV");var H=0;for(var A=0;A<D.length;A++){if( _proxy_jslib_handle(D, (A), 0, 0).style.display=="block"&& _proxy_jslib_handle(D, (A), 0, 0).parentNode==B.parentNode){H++;break}}if(!H){B.style.display="none"}}};add_context_widget=function(J,A,D,C) {if(C==null){C=false}if(J=="pool"){var I=false;for(var G=0;G<in_groupsA.length;G++){if( _proxy_jslib_handle(in_groupsA, (G), 0, 0).nsid==A){ _proxy_jslib_handle(in_groupsA, (G), 0, 0).status=(C)?2:1;I=true;break}}if(!I){in_groupsA.push(new (in_groupsObj)(A,(C)?2:1))}}if(C==true){return }var E=_ge("contextDiv_"+J+A);var B=_ge("other_contexts_p");B.style.display="block";if(E){E.style.display="block";if(nextprev_currentContextID==J+A){var H=_ge("nextprev_button_stream"+global_nsid);if(H&&H.isOpen){H.handle_mouseup();H.handle_mouseout()}}}else{B.add_context_widget=function(O,L,N) {if(L==""){return }if(L.indexOf('id="contextLink_"')>0){return }var K=document.createElement("div");K.id="contextDiv_"+J+A;K.style.display="block"; _proxy_jslib_assign('', K, 'innerHTML', '=', (L));var M= _proxy_jslib_handle(this.parentNode, 'getElementsByTagName', '', 1, 0)("DIV");if(M.length>0){this.parentNode.insertBefore(K,M[0])}else{this.parentNode.appendChild(K)}F.decorate(_ge("nextprev_button_"+J+A),F._nextprev_button).button_go_go_go(J,A,D)};F.fragment_getter.get("/photo_context_fragment.gne",{photo_id:D,context_type:J,context_id:A},B,"add_context_widget")}};increment_print_dropdown=function(D) {var A=_ge(D);var B=A.selectedIndex;B++;if(B>=A.options.length){for(var C=0;C<10;C++){A.options.length++; _proxy_jslib_assign('',  _proxy_jslib_handle(A.options, (A.options.length-1), 0, 0), 'value', '=', ( _proxy_jslib_handle(A.options, (A.options.length-1), 0, 0).text=A.options.length-1))}}A.selectedIndex=B;update_print_prices(D)};decrement_print_dropdown=function(C) {var A=_ge(C);var B=A.selectedIndex;B--;if(B<0){return }A.selectedIndex=B;update_print_prices(C)};format_price=function(A) {var B=A/100;if(B==0){B="0.00"}else{if(B<1){B= _proxy_jslib_handle(B, 'toString', '', 1, 0)()}}dpA= _proxy_jslib_handle(B, 'toString', '', 1, 0)().split(".");if(dpA.length==1){B= _proxy_jslib_handle(B, 'toString', '', 1, 0)()+".00"}else{if(dpA[1].length==1){B= _proxy_jslib_handle(B, 'toString', '', 1, 0)()+"0"}}B="$ "+B;return B};update_print_prices=function(G) {var A=_ge("print_form");var E=_ge("price_print_total_td");var C=0;for(var B=0;B<A.elements.length;B++){if( _proxy_jslib_handle(A.elements, (B), 0, 0).type=="select-one"){if( _proxy_jslib_handle( _proxy_jslib_handle(A.elements, (B), 0, 0), 'value', '', 0, 0)*1>0){var D= _proxy_jslib_handle(page_print_prices, ( _proxy_jslib_handle(A.elements, (B), 0, 0).name), 0, 0);C=C+(D* _proxy_jslib_handle( _proxy_jslib_handle(A.elements, (B), 0, 0), 'value', '', 0, 0))}}}var H=format_price(C);if(C>0){H="<nobr><b>"+H+"</b></nobr>";if(A.last_total!=C){anim_do_blink_pink(E)}}else{E.style.color="rgb(0, 0, 0)"} _proxy_jslib_assign('', E, 'innerHTML', '=', (H));A.last_total=C};var place_notes_text_div=function(B) {if(!F.is_ie){return }var A=_ge("photo_notes");if(A){A.place_notes_text_div();_set_single_shadow_height(_ge("notes_text_table"))}return };var adjust_textarea_height=function(A) {return ; _proxy_jslib_assign('', temp_div, 'innerHTML', '=', ( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(A, 'value', '', 0, 0), 'replace', '', 1, 0)("<","&lt;"), 'replace', '', 1, 0)("\n","<br>")+"g"));A.style.height=(temp_div.offsetHeight)+"px";return ;if(A.scrollHeight>A.clientHeight){A.style.height=A.scrollHeight}};function show_notes_initially() {if(window.should_I_ignore_stuff_because_of_button_action||window.should_I_ignore_stuff_because_of_editable_div_action){return }var A=_ge("photo_notes");if(A&&A.p_id){A.shown_initially=1;A.style.visibility="visible";if(!A.tried_to_show_before_shown_initially){A.go_away_in_a_bit()}}}function calculate_photo_props(A) {var D= _proxy_jslib_handle(global_photos, (A), 0, 0);if(!D){return }var B=Math.max(D.o_w,D.o_h);var C=Math.min(D.o_w,D.o_h);D.aspect=B/C;D.panorama=(D.aspect>=2)?1:0;D.dig_dims=(D.aspect<1.36)?1:0;D.square=(D.aspect>0.96&&D.aspect<1.04)?1:0;D.small=(B<=1024)?1:0;D.huge=(C>=3000&&B>=4500)?1:0;if(writeDebug){writeDebug("aspect "+D.aspect)}if(writeDebug){writeDebug("panorama "+D.panorama)}if(writeDebug){writeDebug("dig_dims "+D.dig_dims)}if(writeDebug){writeDebug("square "+D.square)}if(writeDebug){writeDebug("small "+D.small)}if(writeDebug){writeDebug("huge "+D.huge)}}function ok_accept(A,B) {_ge("div_invite_confirm_"+A).style.display="none";_ge("div_invite_confirm_loading_"+A).style.display="block";var C={flickr_groups_invite_photo_accept_onLoad:function(L,K,H,J) {if(L){add_context_widget("pool",B,page_photo_id,false);_ge("div_invite_confirm_"+A).style.display="none";_ge("div_invite_confirm_loading_"+A).style.display="none";_ge("div_invite_confirm_hooray_"+A).style.display="block";in_groupsA.push(new (in_groupsObj)(B,1));var E=_ge("add_to_group_"+B+"_div");if(E){E.make_me_for_removing()}}else{var G= _proxy_jslib_handle(K.documentElement, 'getElementsByTagName', '', 1, 0)("err")[0];if(G){var I=G.getAttribute("msg");if(photo_notes&&photo_notes.stop_comming){photo_notes.stop_comming(1)}photo_notes.start_comming(F.output.get("api_err_generic")+" "+I.escape_for_display(),1,1);_ge("div_invite_confirm_"+A).style.display="block";_ge("div_invite_confirm_loading_"+A).style.display="none"}}}};var D=new (Object)();D.user_id=global_nsid;D.photo_id=page_photo_id;D.comment_id=A;D.group_id=B;F.API.callMethod("flickr.groups.invite.photo.accept",D,C,null,null,0)}function no_deny(A,B) {_ge("div_invite_confirm_"+A).style.display="none";var C={flickr_groups_invite_photo_decline_onLoad:function(K,J,G,I) {if(K){}else{var E= _proxy_jslib_handle(J.documentElement, 'getElementsByTagName', '', 1, 0)("err")[0];if(E){var H=E.getAttribute("msg");if(photo_notes&&photo_notes.stop_comming){photo_notes.stop_comming(1)}photo_notes.start_comming(F.output.get("api_err_generic",G.escape_for_display()),1,1)}}}};var D=new (Object)();D.user_id=global_nsid;D.photo_id=page_photo_id;D.comment_id=A;D.group_id=B;F.API.callMethod("flickr.groups.invite.photo.decline",D,C,null,null,0)}function admin_group_obj(A,C,B) {this.nsid=A;this.title=C;this.status=B}function new_admin_group_obj(A,C,B) {this.nsid=A;this.title=C;this.status=B}F._admin_group_loader={admin_group_loader_go_go_go:function() {this.old_group_nsid=null;this.old_group_title=null;this.old_comment_block="";this.first_time=true;this.style.display="block";this.admin_groups=new (Array)();F.decorate(_ge("a_group_loader"),F.admin_group_invite_clicker);F.decorate(_ge("div_invite_list_loading"),F.admin_group_loading);F.decorate(_ge("div_invite_dropdown"),F.admin_group_dropdown_div).admin_group_dropdown_div_go_go_go();var A=false;if(_ge("hdn_group_invite")&& _proxy_jslib_handle(_ge("hdn_group_invite"), 'value', '', 0, 0).length>0){_ge("div_invite_loader").admin_groups=JSON.parse( _proxy_jslib_handle(_ge("hdn_group_details"), 'value', '', 0, 0));var C=_ge("div_invite_loader").admin_groups;_ge("slct_invite_to_group").options[0]=new (Option)(F.output.get("photo_select_a_group"),"");_ge("slct_invite_to_group").options[1]=new (Option)("--------------","");for(var B=0;B<C.length;B++){if( _proxy_jslib_handle(C, (B), 0, 0).status=="1"){ _proxy_jslib_assign('', _ge("slct_invite_to_group").options, (B+2), '=', (new (Option)( _proxy_jslib_handle(C, (B), 0, 0).title, _proxy_jslib_handle(C, (B), 0, 0).nsid)))}else{ _proxy_jslib_assign('', _ge("slct_invite_to_group").options, (B+2), '=', (new (Option)( _proxy_jslib_handle(C, (B), 0, 0).title+" ("+F.output.get("photo_already_invited")+")",""))); _proxy_jslib_handle(_ge("slct_invite_to_group").options, (B+2), 0, 0).style.color="silver"} _proxy_jslib_handle(_ge("slct_invite_to_group").options, (B+2), 0, 0).id= _proxy_jslib_handle(C, (B), 0, 0).status;if( _proxy_jslib_handle(C, (B), 0, 0).nsid== _proxy_jslib_handle(_ge("hdn_group_invite"), 'value', '', 0, 0)){ _proxy_jslib_handle(_ge("slct_invite_to_group").options, (B+2), 0, 0).selected=true;_ge("div_invite_loader").old_group_nsid= _proxy_jslib_handle(C, (B), 0, 0).nsid;_ge("div_invite_loader").old_group_title= _proxy_jslib_handle(C, (B), 0, 0).title;A=true}}}if(A){_ge("div_pre_invite").style.display="none";_ge("div_invite_list_loading").style.display="none";_ge("div_invite_dropdown").style.display="block";_ge("chk_invite_to_group").checked=true}},load_groups:function() {_ge("div_invite_list_loading").load_admin_groups()},set_invite:function(C) {var A=F.output.get("page_photo_hi_im_admin",_site_root,this.old_group_nsid,this.old_group_title);if(C>=0&& _proxy_jslib_handle(this.admin_groups, (C), 0, 0).status=="1"){var B=F.output.get("page_photo_hi_im_admin",_site_root, _proxy_jslib_handle(this.admin_groups, (C), 0, 0).nsid, _proxy_jslib_handle(this.admin_groups, (C), 0, 0).title);this.old_group_nsid= _proxy_jslib_handle(this.admin_groups, (C), 0, 0).nsid;this.old_group_title= _proxy_jslib_handle(this.admin_groups, (C), 0, 0).title}if( _proxy_jslib_handle(_ge("message"), 'value', '', 0, 0).indexOf(A)>=0&&C<0){ _proxy_jslib_assign('', _ge("message"), 'value', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(_ge("message"), 'value', '', 0, 0), 'replace', '', 1, 0)(A,"")))}else{if( _proxy_jslib_handle(_ge("message"), 'value', '', 0, 0).indexOf(A)>=0){ _proxy_jslib_assign('', _ge("message"), 'value', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(_ge("message"), 'value', '', 0, 0), 'replace', '', 1, 0)(A,B)));this.old_comment_block= _proxy_jslib_handle(_ge("message"), 'value', '', 0, 0)}else{if( _proxy_jslib_handle(_ge("message"), 'value', '', 0, 0)==this.old_comment_block|| _proxy_jslib_handle(_ge("message"), 'value', '', 0, 0)==""){ _proxy_jslib_assign('', _ge("message"), 'value', '=', (B));this.old_comment_block= _proxy_jslib_handle(_ge("message"), 'value', '', 0, 0)}else{if(this.first_time){ _proxy_jslib_assign('', _ge("message"), 'value', '=', (B+String.fromCharCode(13)+String.fromCharCode(13)+ _proxy_jslib_handle(_ge("message"), 'value', '', 0, 0)));this.old_comment_block= _proxy_jslib_handle(_ge("message"), 'value', '', 0, 0)}}}} _proxy_jslib_assign('', _ge("message"), 'value', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(_ge("message"), 'value', '', 0, 0), 'replace', '', 1, 0)("undefined","")));this.first_time=false;if(C>=0&& _proxy_jslib_handle(this.admin_groups, (C), 0, 0).status=="1"){ _proxy_jslib_assign('', _ge("hdn_group_invite"), 'value', '=', ( _proxy_jslib_handle(this.admin_groups, (C), 0, 0).nsid)); _proxy_jslib_assign('', _ge("hdn_group_old_nsid"), 'value', '=', ( _proxy_jslib_handle(this.admin_groups, (C), 0, 0).nsid)); _proxy_jslib_assign('', _ge("hdn_group_old_title"), 'value', '=', ( _proxy_jslib_handle(this.admin_groups, (C), 0, 0).title))}else{ _proxy_jslib_assign('', _ge("hdn_group_invite"), 'value', '=', ("")); _proxy_jslib_assign('', _ge("hdn_group_old_nsid"), 'value', '=', ("")); _proxy_jslib_assign('', _ge("hdn_group_old_title"), 'value', '=', (""))}}};F.admin_group_invite_clicker={onclick:function() {_ge("div_pre_invite").style.display="none";_ge("div_invite_loader").load_groups();return false}};F.admin_group_loading={load_admin_groups:function() {var A={flickr_groups_getAdministeredGroups_onLoad:function(M,L,J,G) {if(M){_ge("div_invite_list_loading").admin_groups=new (Array)();var C= _proxy_jslib_handle(L, 'getElementsByTagName', '', 1, 0)("group");for(var H=0;H<C.length;H++){var I= _proxy_jslib_handle(C, (H), 0, 0).getAttribute("nsid");var K= _proxy_jslib_handle(C, (H), 0, 0).getAttribute("title");var E= _proxy_jslib_handle(C, (H), 0, 0).getAttribute("able_to_invite_photo");var D=new (new_admin_group_obj)(I,K,E);_ge("div_invite_loader").admin_groups.push(D)}if(_ge("div_invite_loader").admin_groups.length>0){_ge("div_invite_dropdown").render_dropdown(); _proxy_jslib_assign('', _ge("hdn_group_details"), 'value', '=', (JSON.stringify(_ge("div_invite_loader").admin_groups)));return }}_ge("div_invite_list_loading").style.display="none";_ge("div_pre_invite").style.display="block"}};if(_ge("div_invite_loader").admin_groups.length==0){this.style.display="block";var B=new (Object)();B.user_id=global_nsid;B.photo_id=page_photo_id;F.API.callMethod("flickr.groups.getAdministeredGroups",B,A,null,null,0)}else{_ge("div_invite_dropdown").render_dropdown()}}};F.admin_group_dropdown_div={admin_group_dropdown_div_go_go_go:function() {F.decorate(_ge("chk_invite_to_group"),F.chk_invite_to_group);F.decorate(_ge("slct_invite_to_group"),F.slct_invite_to_group);if(_ge("slct_invite_to_group")&&_ge("hdn_group_details")){ _proxy_jslib_assign('', _ge("slct_invite_to_group"), 'innerHTML', '=', ( _proxy_jslib_handle(_ge("hdn_group_details"), 'value', '', 0, 0)))}},render_dropdown:function() {var B=_ge("div_invite_loader").admin_groups;if(B.length==0){_ge("div_pre_invite").style.display="block";_ge("div_invite_list_loading").style.display="none";this.style.display="none";return }_ge("div_pre_invite").style.display="none";_ge("div_invite_list_loading").style.display="none";_ge("slct_invite_to_group").options.length=0;_ge("slct_invite_to_group").options[0]=new (Option)(F.output.get("photo_select_a_group"),"");_ge("slct_invite_to_group").options[1]=new (Option)("--------------","");for(var A=0;A<B.length;A++){if( _proxy_jslib_handle(B, (A), 0, 0).status=="1"){ _proxy_jslib_assign('', _ge("slct_invite_to_group").options, (A+2), '=', (new (Option)( _proxy_jslib_handle(B, (A), 0, 0).title, _proxy_jslib_handle(B, (A), 0, 0).nsid)))}else{ _proxy_jslib_assign('', _ge("slct_invite_to_group").options, (A+2), '=', (new (Option)( _proxy_jslib_handle(B, (A), 0, 0).title+" ("+F.output.get("photo_already_invited")+")",""))); _proxy_jslib_handle(_ge("slct_invite_to_group").options, (A+2), 0, 0).style.color="silver"} _proxy_jslib_handle(_ge("slct_invite_to_group").options, (A+2), 0, 0).id= _proxy_jslib_handle(B, (A), 0, 0).status}_ge("chk_invite_to_group").checked=true;this.style.display="block"}};F.chk_invite_to_group={onchange:function() {if(!this.checked){_ge("div_pre_invite").style.display="block";_ge("div_invite_list_loading").style.display="none";_ge("div_invite_dropdown").style.display="none"; _proxy_jslib_assign('', _ge("hdn_group_invite"), 'value', '=', (""));_ge("slct_invite_to_group").options.selectedIndex=0;var A=F.output.get("page_photo_hi_im_admin",_site_root,_ge("div_invite_loader").old_group_nsid,_ge("div_invite_loader").old_group_title);if( _proxy_jslib_handle(_ge("message"), 'value', '', 0, 0).indexOf(A)>=0){ _proxy_jslib_assign('', _ge("message"), 'value', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(_ge("message"), 'value', '', 0, 0), 'replace', '', 1, 0)(A,"")))}}},onclick:function() {this.onchange()}};F.slct_invite_to_group={onchange:function() {this.check_value()},onkeyup:function() {this.check_value()},check_value:function() {_ge("div_invite_loader").set_invite(this.selectedIndex-2)}};function script_has_loaded() {}F.picnik={loadSwfObjJs:function() {if(!this.swfJsWritten){this.loadJs(page_p.swfObjSrc);this.swfJsWritten=true}return(window.SWFObject)?true:false},loadUrlkitJs:function() {if(!this.urlkiJsWritten){this.loadJs(picnik_urlkit_path);this.urlJsWritten=true}},loadJs:function(B) {var A=document.createElement("script"); _proxy_jslib_assign('', A, 'src', '=', (B));A.type="text/javascript"; _proxy_jslib_handle(document, 'getElementsByTagName', '', 1, 0)("head")[0].appendChild(A);writeDebug("picnik js source: "+ _proxy_jslib_handle(A, 'src', '', 0, 0))},initSwf:function() {if(!this.p_div){this.header_height=35;this.p_div=document.createElement("div");this.p_div.id="picnik-div";var H=document.createElement("div");H.id="picnik-div-header";H.style.height=this.header_height+"px";var C=document.createElement("div");C.id="picnik-div-header-inner";H.appendChild(C);var E=_ge("FlickrLogo").parentNode.cloneNode(true);try{E.firstChild.id="FlickrLogo2"; _proxy_jslib_assign('', E.style, 'background', '=', ("none"))}catch(G){}C.appendChild(E);var B=document.createElement("span");var D=document.createTextNode(F.output.get("picnik_mode"));B.appendChild(D);C.appendChild(B);this.p_swf_cont=document.createElement("div");this.p_swf_cont.id="picnik-cont";this.p_swf_cont.style.height=(Y.U.Dom.getViewportHeight()-this.header_height)+"px";this.p_div.appendChild(H);this.p_div.appendChild(this.p_swf_cont);this.p_div.style.height=Math.max( _proxy_jslib_handle(document, 'body', '', 0, 0).offsetHeight, _proxy_jslib_handle(document, 'body', '', 0, 0).scrollHeight)+"px";this.p_div.style.width="100%";this.p_div.style.position="absolute"; _proxy_jslib_assign('', this.p_div.style, 'top', '=', ("0px"));this.p_div.style.left="0px"; _proxy_jslib_handle(document, 'getElementsByTagName', '', 1, 0)("body")[0].appendChild(this.p_div);var A=deconcept.SWFObjectUtil.getPlayerVersion();if(A.major<9){Y.U.Dom.addClass(this.p_swf_cont,"picnik_no_flash"); _proxy_jslib_assign('', this.p_swf_cont, 'innerHTML', '=', (F.output.get("picnik_no_flash")))}else{this.writeSwf()}}else{this.writeSwf(); _proxy_jslib_assign('', this.p_div.style, 'top', '=', ("0px"));this.p_div.style.left="0px"}Y.U.Event.addListener(window,"resize",this.resize,this)},writeSwf:function() {var A=new (SWFObject)(picnik_swf_path,"picnik","100%","100%","9.0.28","#ffffff",true);A.addParam("allowFullScreen","true");A.addParam("allowScriptAccess","always");A.addVariable("serverurl","http://www.picnik.com");A.addVariable("loglevel","30");A.addVariable("lite","true");A.addVariable("host","Flickr lite");A.addVariable("authservice","Flickr");A.addVariable("userid",global_nsid);A.addVariable("token",picnik_token);A.addVariable("_ss_itemid",page_photo_id);A.addVariable("_ss_setid",picnik_set_id);if( _proxy_jslib_handle(A, 'write', '', 1, 0)(this.p_swf_cont)){var B=new (SWFMacMouseWheel)(A)}F.changes_count=true},go_go_go:function() {if(picnik_token){this.show()}else{F.fragment_getter.get("/photo_picnik_auth_fragment.gne",{},this,"fragment_onLoad")}},fragment_onLoad:function(E,B,D) {this.lightBoxBg=_ge("contactChangerBackground");this.lightBox=document.createElement("div");this.lightBox.style.position="absolute";var A=500;var C=290;this.lightBox.style.width=A+"px";this.lightBox.style.height=C+"px"; _proxy_jslib_assign('', this.lightBox.style, 'top', '=', (((Y.U.Dom.getViewportHeight()/2)-(C/2))-30));this.lightBox.style.left=(Y.U.Dom.getViewportWidth()/2)-(A/2);this.lightBox.style.zIndex=20001;this.lightBoxBg.style.display="block"; _proxy_jslib_handle(document, 'getElementsByTagName', '', 1, 0)("body")[0].appendChild(this.lightBox); _proxy_jslib_assign('', this.lightBox, 'innerHTML', '=', (B))},resize:function(B,A) {A.p_div.style.height=Math.max( _proxy_jslib_handle(document, 'body', '', 0, 0).offsetHeight, _proxy_jslib_handle(document, 'body', '', 0, 0).scrollHeight)+"px";A.p_swf_cont.style.height=(Y.U.Dom.getViewportHeight()-A.header_height)+"px"},show:function() {if(this.loadSwfObjJs()){this.initSwf();this.loadUrlkitJs()}else{ _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)(function() {F.picnik.show()},300)}},doAuth:function() {window.page_always_post_fragment_requests=true;F.fragment_getter.get("/services/auth/picnik.gne",{magic_cookie:global_auth_hash},this,"digestAuthResponse")},digestAuthResponse:function(success,responseText,params) {var rsp=eval(_proxy_jslib_proxify_js(("("+responseText+")"), 0, 0) );this.lightBox.style.display="none";this.lightBoxBg.style.display="none";if(rsp.picnik_auth.stat){picnik_token=rsp.picnik_auth.token;this.go_go_go()}else{F.photo_confirm_msg.add(1,F.output.get("picnik_auth_fail"))}},cancelAuth:function() {this.lightBoxBg.style.display="none";this.lightBox.style.display="none";F.photo_confirm_msg.add(1,F.output.get("picnik_cancel_auth"))},its_raining:function(A) {writeDebug("1) its_raining response: "+A);F.changes_count=false;if(A){if(A==page_photo_id){ _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'replace', '', 1, 0)(page_p.url+"?editreplace=1")}else{ _proxy_jslib_assign('',  _proxy_jslib_handle(window, 'location', '', 0, 0), 'href', '=', (page_p.ownersUrl+A+"/?eOrig="+page_photo_id))}}else{_ge("Main").style.display="";_ge("MainFooterClear").style.display="";_ge("FooterWrapper").style.display=""; _proxy_jslib_assign('', this.p_div.style, 'top', '=', ("-9999px"));this.p_div.style.left="-9999px";F.photo_confirm_msg.add(1,F.output.get("picnik_cancel_edit"))}}};F.photo_confirm_msg={add:function(A,D) {this.remove();var B=document.createElement("p");B.id="photo_confirm_msg_p";B.className=(A)?"Confirm":"Problem";if(D){ _proxy_jslib_assign('', B, 'innerHTML', '=', (D))}var C=_ge("Photo");C.parentNode.insertBefore(B,C)},remove:function() {var A=_ge("photo_confirm_msg_p");if(A){A.parentNode.removeChild(A)}}};F._photo_notes={get_note_ratio:function() {if(window.page_note_ratio){return window.page_note_ratio}return 1},notes_go_go_go:function(J,B,E) {var H=this;this.hex_colors={yellow:"#ffffd3",green:"#d0fdaf"};this.isOver=this.editing=this.dragging=0;this.hide_while_dragging=0;this.which_note=null;this.p_id=J;this.rotate_version=E;this.snag_it=1;this.thumb_url=B+"?cb="+new (Date)().getTime();var C=_ge("photoImgDiv"+J);C.onmouseover=function() {H.onmouseover()};C.onmouseout=function(M) {var L=_get_event_src(M);if(window.should_I_ignore_stuff_because_of_button_action||window.should_I_ignore_stuff_because_of_editable_div_action||global_comm_div.comming){return }_ge("photo_notes").hide_tim= _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('photo_notes').take_her_away('photo_div.onmouseout timer');",200)};var A=_ge("notes_text_div");A.style.zIndex="1000";A.style.display="none";A.style.width="220px";A.style.position="relative";if(!F.border_radius){var G='<table id="notes_text_table" cellpadding="0" cellspacing="0" border="0" style="padding:0px;background-color:transparent"><tr><td><img width="3" height="3" src="'+_images_root+'/spaceout.gif" class="f-note-yellow-sprite fs-tl"></td><td class="td_note_yeller"></td><td><img width="3" height="3" src="'+_images_root+'/spaceout.gif" class="f-note-yellow-sprite fs-tr"></td></tr><tr><td class="td_note_yeller"></td><td class="td_note_yeller" style="padding:3px"><span id="notes_text_span" style="font-family:arial; font-size:12px;"></span><form id="notes_text_form"><input type="hidden" name="magic_cookie" value="'+global_auth_hash+'" /><textarea onkeydown="_limit_textarea(this, 300); _ge(\'photo_notes\').check_note_for_prop()" onkeyup="place_notes_text_div(); adjust_textarea_height(this); _limit_textarea(this, 300); _ge(\'photo_notes\').check_note_for_prop()" id="notes_text_area" rows='+1+'; style="overflow:visible; width: 200px; font-family:arial; font-size:12px; padding:0px; border:0px inset #e9e9ae; background-color:#ffffd3;" wrap="virtual"></textarea></form></td><td class="td_note_yeller"></td></tr><tr><td><img width="3" height="3" src="'+_images_root+'/spaceout.gif" class="f-note-yellow-sprite fs-bl"></td><td class="td_note_yeller"></td><td><img width="3" height="3" src="'+_images_root+'/spaceout.gif" class="f-note-yellow-sprite fs-br"></td></tr></table><form id="notes_text_buttons_form"><input type="button" class="Butt" value="'+F.output.get("save")+'" onclick="_ge(\'photo_notes\').save_editing(); this.blur();" style="margin:5px 5px 0 0;"><input type="button" class="CancelButt" value="'+F.output.get("cancel")+'" onclick="_ge(\'photo_notes\').cancel_editing(); this.blur();" style="margin:5px 5px 0 0;"><input type="button" class="CancelButt" value="'+F.output.get("deletee")+'" id="delete_note_button" onclick="_ge(\'photo_notes\').delete_note(); this.blur();" style="margin:5px 5px 0 0;"></form><div id="temp_div" style="visibility:hidden;"></div>'}else{var G='<div id="notes_text_table" style="padding:0px;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding:1px;background-color:#ffffd3;display:inline-block;display:table"><div class="td_note_yeller" style="padding:3px"><span id="notes_text_span" style="font-family:arial; font-size:12px;"></span><form id="notes_text_form"><input type="hidden" name="magic_cookie" value="'+global_auth_hash+'" /><textarea onkeydown="_limit_textarea(this, 300); _ge(\'photo_notes\').check_note_for_prop()" onkeyup="place_notes_text_div(); adjust_textarea_height(this); _limit_textarea(this, 300); _ge(\'photo_notes\').check_note_for_prop()" id="notes_text_area" rows='+1+'; style="overflow:visible; width: 212px; font-family:arial; font-size:12px; padding:0px; border:0px inset #e9e9ae; background-color:#ffffd3;" wrap="virtual"></textarea></form></div></div><form id="notes_text_buttons_form"><input type="button" class="Butt" value="'+F.output.get("save")+'" onclick="_ge(\'photo_notes\').save_editing(); this.blur();" style="margin:5px 5px 0 0;"><input type="button" class="CancelButt" value="'+F.output.get("cancel")+'" onclick="_ge(\'photo_notes\').cancel_editing(); this.blur();" style="margin:5px 5px 0 0;"><input type="button" class="CancelButt" value="'+F.output.get("deletee")+'" id="delete_note_button" onclick="_ge(\'photo_notes\').delete_note(); this.blur();" style="margin:5px 5px 0 0;"></form><div id="temp_div" style="visibility:hidden;"></div>'} _proxy_jslib_assign('', A, 'innerHTML', '=', (G));var D=_ge("notes_text_table");D.onmouseover=function() {if(H.editing){return }if(H.which_note){clearTimeout(H.which_note.hide_timmy)}};D.onmouseout=function(L) {if(H.editing){return }if(H.which_note){H.which_note.handle_mouseout()}};D.onmouseup=function(M) {if(H.editing){return }var L=_get_event_src(M);if(L&&_el_is_in_a_link(L)){return }if(H.which_note&&H.which_note.can_edit){H.which_note.editing=1;H.which_note.change_display();H.start_editing_one(H.which_note)}};var I=_ge("notes_text_area");if(!F.is_ie||navigator.userAgent.indexOf("Opera")!=-1){I.style.height="58px"}window.temp_div=_ge("temp_div");temp_div.style.width=I.style.width;var K=_ge("rotate_div");K.style.zIndex="1003";K.style.display="none";if(!F.border_radius){var G='<table id="rotate_table" cellpadding="0" cellspacing="0" border="0" style="width:218px; padding:0px;"><tr><td width="3"><img width="3" height="3" src="'+_images_root+'/spaceout.gif" class="f-rotate-sprite fs-tl"></td><td class="td_note_white"></td><td width="3"><img width="3" height="3" src="'+_images_root+'/spaceout.gif" class="f-rotate-sprite fs-tr"></td></tr><tr><td class="td_note_white"></td><td class="td_note_white" style="padding:0px; height:155px"><span id="rotate_span" style="font-family:arial; font-size:12px;"></span></td><td class="td_note_white"></td></tr><tr><td><img width="3" height="3" src="'+_images_root+'/spaceout.gif" class="f-rotate-sprite fs-bl"></td><td class="td_note_white"></td><td><img width="3" height="3" src="'+_images_root+'/spaceout.gif" class="f-rotate-sprite fs-br"></td></tr></table>'}else{var G='<div id="rotate_table" style="width:218px;background:#fff;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding:1px"><div class="td_note_white" style="padding:0px;text-align:center;margin-top:3px"><span id="rotate_span" style="font-family:arial; font-size:12px;"></span></div></div>'} _proxy_jslib_assign('', K, 'innerHTML', '=', (G));_make_comm_div("1002");global_comm_div.button_cancel.onclick_plus=global_comm_div.button_ok.onclick_plus=function() {_ge("photo_notes").stop_comming()};window.hide_rotate_div=function() {H.hide_rotate_div()};window.save_rotation=function(L) {H.save_rotation(L)};this.restack_notes()},onmouseover:function() {clearTimeout(this.hide_tim);if(!this.shown_initially){this.tried_to_show_before_shown_initially=1;return }if(window.should_I_ignore_stuff_because_of_button_action||window.should_I_ignore_stuff_because_of_editable_div_action||global_comm_div.comming){return }this.isOver=1;this.change_display()},go_away_in_a_bit:function() {this.hide_tim= _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('photo_notes').take_her_away('go_away_in_a_bit');",3000)},restack_notes:function() {var G=function(A) {return A.box.w*A.box.h};var C=function(I,H) {var A=G(I);var J=G(H);return(A<J)?1:((A>J)?-1:0)};var B= _proxy_jslib_handle(global_photos, (this.p_id), 0, 0).notesA;B.sort(C);for(var D=0;D<B.length;D++){var E=_ge("photo_note_"+ _proxy_jslib_handle(B, (D), 0, 0).id);if(E){this.appendChild(F.prepare_for_insertion(E))}}},take_her_away:function(A) {clearTimeout(this.hide_tim);if(this.editing||global_comm_div.comming||this.dragging){return }this.isOver=0;this.stop_showing_one("take_her_away "+A);this.change_display()},show_rotate_div:function(D) {var C=_ge("rotate_div");if(C.style.display!="none"){return }C.style.display="block";C.style.visibility="hidden";global_single_shadow_div.style.visibility="hidden";this.button_acting=D;var A=_pi((this.get_image_w()-_pi(_ge("rotate_table").offsetWidth))/2);var G=_pi((this.get_image_h()-150)/2);if(G<10){G=10}if(A<10){A=10}C.style.marginLeft=A+"px";C.style.marginTop=G+"px";var B="/apps/rotate/rotate.swf?cancel_str="+escape_utf8(F.output.get("cancel_up"))+"&ok_str="+escape_utf8(""+F.output.get("ok")+"  ")+"&thumb_url="+this.thumb_url+"&v="+this.rotate_version+"&cb="+new (Date)().getTime();this.take_her_away("show_rotate_div");window.should_I_ignore_stuff_because_of_button_action=1;if(!this.rotate_swf_html){var E='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';E+='WIDTH="212" HEIGHT="145" id="photo" ALIGN="">';E+='<PARAM NAME=movie VALUE="'+B+'"><PARAM NAME=quality VALUE=high>';E+="<PARAM NAME=bgcolor VALUE=#ffffff>";E+='<EMBED src="'+B+'" quality=high bgcolor=#ffffff  WIDTH="212" HEIGHT="145" NAME="photo"';E+=' ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>';this.rotate_swf_html=E}if(navigator.userAgent.indexOf("KHTML")!=-1){this.insert_rotate_swf_and_show_tim= _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('photo_notes').insert_rotate_swf_and_show()",50)}else{if( _proxy_jslib_handle(_ge("rotate_span"), 'innerHTML', '', 0, 0)==""){this.insert_rotate_swf_and_show()}else{C.style.visibility="visible";global_single_shadow_div.style.visibility="visible"}}global_single_shadow_div.style.display="block";_set_single_shadow_x(A);_set_single_shadow_y(G);_set_single_shadow_height(_ge("rotate_table"));_set_single_shadow_width(_ge("rotate_table"))},insert_rotate_swf_and_show:function() { _proxy_jslib_assign('', _ge("rotate_span"), 'innerHTML', '=', (this.rotate_swf_html));_ge("rotate_div").style.visibility="visible";_set_single_shadow_height(_ge("rotate_table"));global_single_shadow_div.style.visibility="visible"},hide_rotate_div:function() {_ge("rotate_div").style.display="none";global_single_shadow_div.style.display="none";window.should_I_ignore_stuff_because_of_button_action=0;if(this.button_acting){this.button_acting.enable_others()}},save_rotation:function(A) {this.hide_rotate_div();if(A=="-90"){A=270}if(A=="-180"){A=180}this.start_comming(F.output.get("photo_notes_rotate"));var B={photo_id:this.p_id,degrees:A};F.API.callMethod("flickr.photos.transform.rotate",B,this)},flickr_photos_transform_rotate_onLoad:function(C,B,A) {if(C){ _proxy_jslib_assign('', document, 'location', '=', (page_current_url+"?rotated=1&cb="+new (Date)().getTime()))}else{alert(F.output.get("api_err_generic")+" "+A);this.stop_comming()}},make_note_this_color:function(A) {var D=(this.last_note_color)?this.last_note_color:"yellow";if(D==A){return }if(F.border_radius){_ge("notes_text_table").style.backgroundColor= _proxy_jslib_handle(this.hex_colors, (A), 0, 0)}_ge("notes_text_area").style.backgroundColor= _proxy_jslib_handle(this.hex_colors, (A), 0, 0);var C=null;if(!F.border_radius){C= _proxy_jslib_handle(this, 'getElementsByTagName', '', 1, 0)("td");var E= _proxy_jslib_handle(this, 'getElementsByTagName', '', 1, 0)("IMG");for(var B=0;B<E.length;B++){if( _proxy_jslib_handle(E, (B), 0, 0).className){Y.D.removeClass( _proxy_jslib_handle(E, (B), 0, 0),"f-note-"+D+"-sprite");Y.D.addClass( _proxy_jslib_handle(E, (B), 0, 0),"f-note-"+A+"-sprite")}}}else{C= _proxy_jslib_handle(this, 'getElementsByTagName', '', 1, 0)("div")}for(var B=0;B<C.length;B++){if( _proxy_jslib_handle(C, (B), 0, 0).className=="td_note_yeller"){ _proxy_jslib_handle(C, (B), 0, 0).style.backgroundColor= _proxy_jslib_handle(this.hex_colors, (A), 0, 0)}}this.last_note_color=A},start_showing_one:function(C) {clearTimeout(this.hide_tim);if(this.which_note){clearTimeout(this.which_note.hide_timmy)}if(this.which_note!=C){this.stop_showing_one()}this.make_note_this_color(C.use_color);var B=C.render_text_for_display();if(!C.from_owner){B+='  - <a href="/photos/'+C.author+'"><i>'+C.author_name+"</i></a>"} _proxy_jslib_assign('', _ge("notes_text_span"), 'innerHTML', '=', (B));this.which_note=C;var A=_ge("notes_text_area");if(this.editing){_ge("notes_text_span").style.display="none";_ge("notes_text_form").style.display="block";_ge("notes_text_buttons_form").style.display="block";if(this.which_note.id=="photo_note_temp"){_ge("delete_note_button").style.display="none"}else{_ge("delete_note_button").style.display="inline"}if(C!=this.which_note|| _proxy_jslib_handle(A, 'value', '', 0, 0)==""){ _proxy_jslib_assign('', A, 'value', '=', (C.saved_txt));adjust_textarea_height(A)}}else{_ge("notes_text_span").style.display="inline";_ge("notes_text_form").style.display="none";_ge("notes_text_buttons_form").style.display="none"}_ge("notes_text_div").style.display="block";global_single_shadow_div.style.display="block";_set_single_shadow_height(_ge("notes_text_table"));_set_single_shadow_width(_ge("notes_text_table"));this.place_notes_text_div();if(this.editing){A.focus();A.select()}},check_note_for_prop:function() {if(_ge("photo_props")&&typeof (page_p)!="undefined"&&page_p.isOwner&&page_p.isOwner==true){var A=_ge("notes_text_area");if( _proxy_jslib_handle(A, 'value', '', 0, 0)=="ho ho ho beard"|| _proxy_jslib_handle(A, 'value', '', 0, 0)=="ho ho ho hat"){if(_ge("photo_prop_"+this.which_note.note_id)&&_ge("photo_prop_"+this.which_note.note_id).style.display=="none"){if( _proxy_jslib_handle(A, 'value', '', 0, 0)=="ho ho ho beard"){ _proxy_jslib_assign('', _ge("photo_prop_img_"+this.which_note.note_id), 'src', '=', (_images_root+"/prop_santa_beard.png"));_ge("photo_prop_"+this.which_note.note_id).style.display="block"}if( _proxy_jslib_handle(A, 'value', '', 0, 0)=="ho ho ho hat"){ _proxy_jslib_assign('', _ge("photo_prop_img_"+this.which_note.note_id), 'src', '=', (_images_root+"/prop_santa_hat.png"));_ge("photo_prop_"+this.which_note.note_id).style.display="block"}}}else{if(_ge("photo_prop_"+this.which_note.note_id)&&_ge("photo_prop_"+this.which_note.note_id).style.display=="block"){ _proxy_jslib_assign('', _ge("photo_prop_img_"+this.which_note.note_id), 'src', '=', (_images_root+"/spaceball.gif"));_ge("photo_prop_"+this.which_note.note_id).style.display="none"}}}},place_notes_text_div:function(G,E) {var B=_ge("notes_text_div");if(G&&E){var A=G;var H=E+this.which_note.get_note_h()+5}else{if(this.editing){var C=0;var D=200}else{var C=100;var D=200}var A=_pi(this.which_note.style.left);var H=_pi( _proxy_jslib_handle(this.which_note.style, 'top', '', 0, 0))+this.which_note.get_note_h()+5;if(H+B.offsetHeight>this.get_image_h()+C){H=_pi( _proxy_jslib_handle(this.which_note.style, 'top', '', 0, 0))-B.offsetHeight-10;if(F.is_ie&&navigator.userAgent.indexOf("Opera")==-1){H+=15}}if(H<-D){H=_pi( _proxy_jslib_handle(this.which_note.style, 'top', '', 0, 0))+this.which_note.get_note_h()+5}}B.style.left=A+"px"; _proxy_jslib_assign('', B.style, 'top', '=', (H+"px"));_set_single_shadow_x(A);_set_single_shadow_y(H)},stop_showing_one:function(A) {_ge("notes_text_div").style.display="none";global_single_shadow_div.style.display="none";if(this.which_note){this.which_note.isOver=0;this.which_note.change_display()}},start_dragging_one:function() {this.dragging=1;window.should_I_ignore_stuff_because_note_editing=1},start_editing_one:function(A) {this.editing=1;this.dragging=0;window.should_I_ignore_stuff_because_note_editing=1;this.start_showing_one(A)},hide_notes_text_div:function() {_ge("notes_text_div").style.display="none";global_single_shadow_div.style.display="none"},refresh_notes:function() {if(_ok_for_scrumjax_xml()){var A={photo_id:this.p_id};F.API.callMethod("flickr.photos.getInfo",A,this)}else{ _proxy_jslib_assign('', document, 'location', '=', (page_current_url+"?changednotes=1&cb="+new (Date)().getTime()))}},flickr_photos_getInfo_onLoad:function(E,B,J,U) {if(E){var M= _proxy_jslib_handle(global_photos, (this.p_id), 0, 0).notesA=[];var S={};var O= _proxy_jslib_handle(B.documentElement, 'getElementsByTagName', '', 1, 0)("owner")[0].getAttribute("nsid");var K= _proxy_jslib_handle(B.documentElement, 'getElementsByTagName', '', 1, 0)("note");for(var L=0;L<K.length;L++){var G= _proxy_jslib_handle( _proxy_jslib_handle(K, (L), 0, 0).firstChild, 'nodeValue', '', 0, 0);var V= _proxy_jslib_handle(K, (L), 0, 0).getAttribute("x")*this.get_note_ratio();var T= _proxy_jslib_handle(K, (L), 0, 0).getAttribute("y")*this.get_note_ratio();var X= _proxy_jslib_handle(K, (L), 0, 0).getAttribute("w")*this.get_note_ratio();var D= _proxy_jslib_handle(K, (L), 0, 0).getAttribute("h")*this.get_note_ratio();var Q= _proxy_jslib_handle(K, (L), 0, 0).getAttribute("id");var R= _proxy_jslib_handle(K, (L), 0, 0).getAttribute("author");var W= _proxy_jslib_handle(K, (L), 0, 0).getAttribute("authorname"); _proxy_jslib_assign('', S, (Q), '=', (Q));M.push({id:Q,box:{x:V,y:T,w:X,h:D}});var N=_ge("photo_note_"+Q);if(N){N.refresh_info(Q,V,T,X,D,G);if(_ge("photo_props")&&typeof (page_p)!="undefined"&&page_p.ownerNsid&&page_p.ownerNsid==R){if(!_ge("photo_prop_"+Q)){var Z=document.createElement("DIV");Z.className="photo_prop";Z.id="photo_prop_"+Q;Z.style.left=(V+3)+"px"; _proxy_jslib_assign('', Z.style, 'top', '=', ((T+3)+"px"));Z.style.width=(X-4)+"px";Z.style.height=(D-4)+"px";if(G=="ho ho ho beard"||G=="ho ho ho hat"){Z.style.display="block"}else{Z.style.display="none"}var I=document.createElement("IMG");I.className="trans_png";I.id="photo_prop_img"+Q;I.style.width=(X-4)+"px";I.style.height=(D-4)+"px";if(G=="ho ho ho beard"){ _proxy_jslib_assign('', I, 'src', '=', (_images_root+"/prop_santa_beard.png"))}else{if(G=="ho ho ho hat"){ _proxy_jslib_assign('', I, 'src', '=', (_images_root+"/prop_santa_hat.png"))}else{ _proxy_jslib_assign('', I, 'src', '=', (_images_root+"/spaceball.gif"))}}Z.appendChild(F.prepare_for_insertion(I));_ge("photo_props").appendChild(F.prepare_for_insertion(Z))}}}else{var H=(global_nsid==R|| _proxy_jslib_handle(global_photos, (this.p_id), 0, 0).isOwner)?1:0;var C=(O==R);this.create_note(Q,V,T,X,D,G,H,C,W,R)}}for(var P=this.childNodes.length-1;P>=0;P--){if( _proxy_jslib_handle(this.childNodes, (P), 0, 0).className=="photo_note"){if(! _proxy_jslib_handle(S, ( _proxy_jslib_handle(this.childNodes, (P), 0, 0).note_id), 0, 0)){F.remove_el( _proxy_jslib_handle(this.childNodes, (P), 0, 0),this)}}}this.restack_notes()}else{alert(F.output.get("api_err_generic")+" "+J)}if(global_comm_div.comming){this.stop_comming()}if(_ge("photo_prop_temp")){F.remove_el(_ge("photo_prop_temp"),_ge("photo_props"))}},start_pulsing:function() {var B=_ge("button_pulser");if(!B){var A=document.createElement("IMG");A.width=32;A.height=15; _proxy_jslib_assign('', A, 'src', '=', (_images_root+"/pulser2.gif"));A.style.border="0";A.border="0";B=document.createElement("DIV");B.id="button_pulser";B.style.position="absolute";B.style.backgroundColor="white";if(global_intl_lang=="en-us"){B.style.padding="4px 12px"}else{B.style.padding="4px 0px"}B.appendChild(A); _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(B)}var C=_ge("button_bar");B.style.left=Y.U.Dom.getX(C)+"px"; _proxy_jslib_assign('', B.style, 'top', '=', (Y.U.Dom.getY(C)+"px"));B.style.display="block"},stop_pulsing:function() {if(_ge("button_pulser")){_ge("button_pulser").style.display="none"}},start_comming:function(C,G,L,E,B,K,H,I,D) {if(D){F.eb_broadcast("stewart_pause_if_need_to_hide_video")}else{F.eb_broadcast("stewart_pause")}window.should_I_ignore_stuff_because_note_editing=1;this.style.visibility="hidden";var J=function() {var M=_pi((_ge("photo_notes").get_w()-_pi(global_comm_div.table.offsetWidth))/2);if(M<10){M=10}return M};var A=function() {var M=_pi((_ge("photo_notes").get_h()-global_comm_div.table.offsetHeight)/2);if(M<10){M=10}return M};global_comm_div.start_comming(C,J,A,G,L,E,B,K,H,I)},stop_comming:function(A) {window.should_I_ignore_stuff_because_note_editing=0;global_comm_div.stop_comming();if(!A){this.style.visibility="visible"}F.eb_broadcast("stewart_play_if_was_playing")},start_adding_note:function() {if(this.editing){alert(F.output.get("photo_notes_one_note"));return }this.empty_notes_text_area();this.onmouseover();var A=this.create_note("temp",20,20,50,50,F.output.get("photo_notes_add_notes_here"),1, _proxy_jslib_handle(global_photos, (this.p_id), 0, 0).isOwner,"","");A.start_editing();this.start_editing_one(A)},create_note:function(O,K,I,L,C,B,A,N,D,G) {var J=document.createElement("DIV");J.className="photo_note";J.id="photo_note_"+O;J.style.left=(K)+"px"; _proxy_jslib_assign('', J.style, 'top', '=', ((I)+"px"));var H='<div class="photo_note_box_div"><div class="photo_note_box_inner_div">';H+='<div class="photo_note_box_inner_inner_div"><div style="width:'+(L-4)+"px; height:"+(C-4)+'px;">';H+='</div></div></div></div><div class="photo_note_text_div"></div>'; _proxy_jslib_assign('', J, 'innerHTML', '=', (H));this.appendChild(J);F.decorate(J,F._photo_note).note_go_go_go(O,A,N,D,G,B);if(_ge("photo_props")&&typeof (page_p)!="undefined"&&page_p.isOwner&&page_p.isOwner==true){if(_ge("photo_prop_temp")){F.remove_el(_ge("photo_prop_temp"),_ge("photo_props"))}var E=document.createElement("DIV");E.className="photo_prop";E.id="photo_prop_"+O;E.style.left=(K+3)+"px"; _proxy_jslib_assign('', E.style, 'top', '=', ((I+3)+"px"));E.style.width=(L-4)+"px";E.style.height=(C-4)+"px";if(B=="ho ho ho beard"||B=="ho ho ho hat"){E.style.display="block"}else{E.style.display="none"}var M=document.createElement("IMG");M.className="trans_png";M.id="photo_prop_img_"+O;M.style.width=(L-4)+"px";M.style.height=(C-4)+"px"; _proxy_jslib_assign('', M, 'src', '=', (_images_root+"/spaceball.gif"));if(B=="ho ho ho beard"){ _proxy_jslib_assign('', M, 'src', '=', (_images_root+"/prop_santa_beard.png"))}else{if(B=="ho ho ho hat"){ _proxy_jslib_assign('', M, 'src', '=', (_images_root+"/prop_santa_hat.png"))}else{ _proxy_jslib_assign('', M, 'src', '=', (_images_root+"/spaceball.gif"))}}E.appendChild(F.prepare_for_insertion(M));_ge("photo_props").appendChild(F.prepare_for_insertion(E))}return J},delete_note:function() {deja_view_uh_huh();this.which_note.stop_editing(0);this.editing=0;this.stop_showing_one();this.empty_notes_text_area();this.start_comming(F.output.get("photo_notes_deleting"));if(_ge("photo_prop_"+this.which_note.note_id)&&_ge("photo_props")){F.remove_el(_ge("photo_prop_"+this.which_note.note_id),_ge("photo_props"))}var A={note_id:this.which_note.note_id};F.API.callMethod("flickr.photos.notes.delete",A,this)},flickr_photos_notes_delete_onLoad:function(C,B,A) {if(!C&&(!A||A.indexOf("not found")==-1)){alert(F.output.get("api_err_generic")+" "+A);this.stop_comming()}this.refresh_notes()},cancel_editing:function() {this.which_note.stop_editing(1);this.editing=0;window.should_I_ignore_stuff_because_note_editing=0;this.stop_showing_one();this.empty_notes_text_area();if(this.which_note.id=="photo_note_temp"){F.remove_el(this.which_note,this);if(_ge("photo_prop_temp")&&_ge("photo_props")){F.remove_el(_ge("photo_prop_temp"),_ge("photo_props"))}}},empty_notes_text_area:function() { _proxy_jslib_assign('', _ge("notes_text_area"), 'value', '=', (""))},save_editing:function() {var A=_ge("notes_text_area");if( _proxy_jslib_handle(A, 'value', '', 0, 0)==""){A.focus();A.select();return }deja_view_uh_huh();this.which_note.stop_editing(0);this.editing=0;this.stop_showing_one();if(this.which_note.id=="photo_note_temp"){this.start_comming(F.output.get("photo_notes_saving_note"));var B={photo_id:this.p_id,note_x:this.which_note.get_note_x()/this.get_note_ratio(),note_y:this.which_note.get_note_y()/this.get_note_ratio(),note_w:(this.which_note.get_note_w())/this.get_note_ratio(),note_h:(this.which_note.get_note_h())/this.get_note_ratio(),note_text: _proxy_jslib_handle(A, 'value', '', 0, 0)};F.API.callMethod("flickr.photos.notes.add",B,this);F.remove_el(this.which_note,this)}else{this.start_comming(F.output.get("saving"));var B={note_id:this.which_note.note_id,note_x:this.which_note.get_note_x()/this.get_note_ratio(),note_y:this.which_note.get_note_y()/this.get_note_ratio(),note_w:(this.which_note.get_note_w())/this.get_note_ratio(),note_h:(this.which_note.get_note_h())/this.get_note_ratio(),note_text: _proxy_jslib_handle(A, 'value', '', 0, 0)};F.API.callMethod("flickr.photos.notes.edit",B,this)}this.empty_notes_text_area()},flickr_photos_notes_add_onLoad:function(C,B,A) {if(C){this.refresh_notes()}else{alert(F.output.get("api_err_generic")+" "+A);this.stop_comming();if(_ge("photo_prop_temp")){F.remove_el(_ge("photo_prop_temp"),_ge("photo_props"))}}},flickr_photos_notes_edit_onLoad:function(C,B,A) {if(C){this.refresh_notes()}else{alert(F.output.get("api_err_generic")+" "+A);this.stop_comming()}},flickr_test_echo_onLoad:function(C,B,A) {if(!C){alert(F.output.get("api_err_generic")+" "+A);this.stop_comming()}},get_w:function() {return _ge("photoImgDiv"+this.p_id).offsetWidth},get_h:function() {return _ge("photoImgDiv"+this.p_id).offsetHeight},get_image_w:function() {var B=_ge("photoImgDiv"+this.p_id);var A= _proxy_jslib_handle(B, 'getElementsByTagName', '', 1, 0)("img");if(A[0]&&A[0].width){return A[0].width}else{return 0}},get_image_h:function() {var B=_ge("photoImgDiv"+this.p_id);var A= _proxy_jslib_handle(B, 'getElementsByTagName', '', 1, 0)("img");if(A[0]&&A[0].height){return A[0].height}else{return 0}},change_display:function() {if(this.isOver){this.style.visibility="visible";if(_ge("photo_props")){_ge("photo_props").style.display=""}}else{this.style.visibility="hidden"}}};F._photo_note={note_go_go_go:function(D,A,C,H,E,G) {var B=this;this.note_id=D;this.can_edit=A;this.author_name=H;this.author=E;this.from_owner=C;this.use_color=(this.from_owner)?"yellow":"green";this.isOver=0;this.editing=0;this.isDragging=0;this.resize_box_size=8;this.last_rendered_txt="";this.box_div=this.childNodes[0];this.innermost_div=this.box_div.childNodes[0].childNodes[0].childNodes[0];if(F.is_ie){this.innermost_div.style.backgroundColor="#fff";this.innermost_div.style.filter="alpha(opacity:0)"}this.text_div=this.childNodes[1];this.saved_txt=G;this.saved_x=_pi(this.style.left);this.saved_y=_pi( _proxy_jslib_handle(this.style, 'top', '', 0, 0));this.saved_w=_pi(this.innermost_div.style.width);this.saved_h=_pi(this.innermost_div.style.height);this.appendChild(this.make_resize_div("nw"));this.appendChild(this.make_resize_div("ne"));this.appendChild(this.make_resize_div("sw"));this.appendChild(this.make_resize_div("se"));Y.U.Event.addListener(this.box_div,"mouseover",this.handle_mouseover,this,true);Y.U.Event.addListener(this.box_div,"mouseout",this.handle_mouseout,this,true);if(this.can_edit){Y.U.Event.addListener(this.box_div,"mousedown",this.handle_mousedown,this,true); _proxy_jslib_assign('', this.box_div.style, 'cursor', '=', ((F.is_ie)?"hand":"pointer"))}},make_resize_div:function(D) {var C="resize_"+D+"_div";var A=this;var B=document.createElement("DIV");B.style.position="absolute";B.style.display="none"; _proxy_jslib_assign('', B.style, 'cursor', '=', (D+"-resize")); _proxy_jslib_assign('', B.style, 'top', '=', ((D=="ne"||D=="nw")?"0px":(this.get_note_h()-this.resize_box_size)+"px"));B.style.left=(D=="sw"||D=="nw")?"0px":(this.get_note_w()-this.resize_box_size)+"px";B.style.backgroundColor="#fff"; _proxy_jslib_assign('', B, 'innerHTML', '=', ('<div style="border:1px solid black"><div style="width:'+(this.resize_box_size-2)+"px; height:"+(this.resize_box_size-2)+'px; background-color:#fff; font-size:1px"></div></div>'));B.onmousedown=function(E) {E||(E=window.event);A.start_dragging_resize(E,D)};B.note=this; _proxy_jslib_assign('', this, (C), '=', (B));return  _proxy_jslib_handle(this, (C), 0, 0)},render_text_for_display:function() {var A=this.saved_txt;if(this.last_saved_txt!=this.saved_txt){A=_hyperlink(A);A=A.trim().nl2br();this.last_saved_txt=this.saved_txt;this.last_rendered_txt=A}return this.last_rendered_txt},start_dragging_resize:function(I,G) {I||(I=window.event);var C="resize_"+G+"_div";var L= _proxy_jslib_handle(this, (C), 0, 0);_ge("photo_notes").start_dragging_one();_disable_select();L.lastClientX=I.clientX;L.lastClientY=I.clientY;if(G=="se"){var K=_pi(L.style.left);var J=_pi( _proxy_jslib_handle(L.style, 'top', '', 0, 0));var E=I.clientX-K+this.resize_box_size;var B=E+_ge("photo_notes").get_image_w()-_pi(this.style.left)-(this.resize_box_size*2);var D=I.clientY-J+this.resize_box_size;var A=D+_ge("photo_notes").get_image_h()-_pi( _proxy_jslib_handle(this.style, 'top', '', 0, 0))-(this.resize_box_size*2)}else{if(G=="sw"){var K=_pi(this.style.left);var J=_pi( _proxy_jslib_handle(L.style, 'top', '', 0, 0));var E=I.clientX-K;var B=E+K+this.get_note_w()-(this.resize_box_size*2);var D=I.clientY-J+this.resize_box_size;var A=D+_ge("photo_notes").get_image_h()-_pi( _proxy_jslib_handle(this.style, 'top', '', 0, 0))-(this.resize_box_size*2)}else{if(G=="nw"){var K=_pi(this.style.left);var J=_pi( _proxy_jslib_handle(this.style, 'top', '', 0, 0));var E=I.clientX-K;var B=E+K+this.get_note_w()-(this.resize_box_size*2);var D=I.clientY-J;var A=D+J+this.get_note_h()-(this.resize_box_size*2)}else{if(G=="ne"){var K=_pi(L.style.left);var J=_pi( _proxy_jslib_handle(this.style, 'top', '', 0, 0));var E=I.clientX-K+this.resize_box_size;var B=E+_ge("photo_notes").get_image_w()-_pi(this.style.left)-(this.resize_box_size*2);var D=I.clientY-J;var A=D+J+this.get_note_h()-(this.resize_box_size*2)}}}}this.isDragging=1;this.change_display();var H=this;document.dragee=L;document.onmouseup=function(M) {if(document.dragee){H.stop_dragging_resize()}document.dragee=null};document.onmousemove=function(P) {P||(P=window.event);if(_ge("photo_notes").hide_while_dragging){_ge("photo_notes").hide_notes_text_div()}var R=Math.min(Math.max(P.clientX,E),B);var Q=Math.min(Math.max(P.clientY,D),A);if(G=="se"){var U=_pi(L.style.left);var T=_pi( _proxy_jslib_handle(L.style, 'top', '', 0, 0));var O=U+(R-L.lastClientX);var N=T+(Q-L.lastClientY);L.style.left=O+"px"; _proxy_jslib_assign('', L.style, 'top', '=', (N+"px"));H.innermost_div.style.width=(_pi(L.style.left)+H.resize_box_size-4)+"px";H.innermost_div.style.height=(_pi( _proxy_jslib_handle(L.style, 'top', '', 0, 0))+H.resize_box_size-4)+"px";H.resize_ne_div.style.left=L.style.left; _proxy_jslib_assign('', H.resize_sw_div.style, 'top', '=', ( _proxy_jslib_handle(L.style, 'top', '', 0, 0)))}else{if(G=="sw"){var U=_pi(H.style.left);var T=_pi( _proxy_jslib_handle(L.style, 'top', '', 0, 0));var O=U+(R-L.lastClientX);var N=T+(Q-L.lastClientY);H.style.left=O+"px"; _proxy_jslib_assign('', L.style, 'top', '=', (N+"px"));H.innermost_div.style.width=(_pi(H.innermost_div.style.width)+U-O)+"px";H.innermost_div.style.height=(_pi( _proxy_jslib_handle(L.style, 'top', '', 0, 0))+H.resize_box_size-4)+"px";H.resize_ne_div.style.left=H.resize_se_div.style.left=(_pi(H.innermost_div.style.width)-H.resize_box_size+4)+"px"; _proxy_jslib_assign('', H.resize_se_div.style, 'top', '=', ( _proxy_jslib_handle(L.style, 'top', '', 0, 0)))}else{if(G=="nw"){var U=_pi(H.style.left);var T=_pi( _proxy_jslib_handle(H.style, 'top', '', 0, 0));var O=U+(R-L.lastClientX);var N=T+(Q-L.lastClientY);H.style.left=O+"px"; _proxy_jslib_assign('', H.style, 'top', '=', (N+"px"));H.innermost_div.style.width=(_pi(H.innermost_div.style.width)+U-O)+"px";H.innermost_div.style.height=(_pi(H.innermost_div.style.height)+T-N)+"px";H.resize_sw_div.style.left=L.style.left; _proxy_jslib_assign('', H.resize_ne_div.style, 'top', '=', ( _proxy_jslib_handle(L.style, 'top', '', 0, 0))); _proxy_jslib_assign('', H.resize_se_div.style, 'top', '=', ( _proxy_jslib_assign('', H.resize_sw_div.style, 'top', '=', ((_pi(H.innermost_div.style.height)-H.resize_box_size+4)+"px"))));H.resize_se_div.style.left=H.resize_ne_div.style.left=(_pi(H.innermost_div.style.width)-H.resize_box_size+4)+"px"}else{if(G=="ne"){var U=_pi(L.style.left);var T=_pi( _proxy_jslib_handle(H.style, 'top', '', 0, 0));var O=U+(R-L.lastClientX);var N=T+(Q-L.lastClientY);L.style.left=O+"px"; _proxy_jslib_assign('', H.style, 'top', '=', (N+"px"));H.innermost_div.style.width=(_pi(L.style.left)+H.resize_box_size-4)+"px";H.innermost_div.style.height=(_pi(H.innermost_div.style.height)+T-N)+"px";H.resize_se_div.style.left=L.style.left; _proxy_jslib_assign('', H.resize_se_div.style, 'top', '=', ( _proxy_jslib_assign('', H.resize_sw_div.style, 'top', '=', ((_pi(H.innermost_div.style.height)-H.resize_box_size+4)+"px"))))}}}}L.lastClientX=R;L.lastClientY=Q;var M=_ge("photo_prop_"+H.note_id);var S=_ge("photo_prop_img_"+H.note_id);if(M&&S){ _proxy_jslib_assign('', M.style, 'top', '=', (_pi( _proxy_jslib_handle(H.style, 'top', '', 0, 0))+2));M.style.left=_pi(H.style.left)+2;M.style.width=H.innermost_div.style.width;M.style.height=H.innermost_div.style.height;S.style.width=H.innermost_div.style.width;S.style.height=H.innermost_div.style.height}if(!_ge("photo_notes").hide_while_dragging){_ge("photo_notes").place_notes_text_div()}Y.E.stopEvent(P);return false}},stop_dragging_resize:function() {_enable_select();if(!this.isDragging){return }document.onmousemove=null;_ge("photo_notes").start_editing_one(this);this.isDragging=0;this.change_display()},show_resize_divs:function() {this.resize_nw_div.style.display=this.resize_ne_div.style.display=this.resize_sw_div.style.display=this.resize_se_div.style.display="block"},hide_resize_divs:function() {this.resize_nw_div.style.display=this.resize_ne_div.style.display=this.resize_sw_div.style.display=this.resize_se_div.style.display="none"},get_note_w:function() {return _pi(this.innermost_div.style.width)+4},get_note_h:function() {return _pi(this.innermost_div.style.height)+4},get_note_x:function() {return _pi(this.style.left)},get_note_y:function() {return _pi( _proxy_jslib_handle(this.style, 'top', '', 0, 0))},handle_mouseover:function() {if(_ge("photo_notes").editing||global_comm_div.comming||_ge("photo_notes").dragging){return }this.isOver=1;this.change_display();_ge("photo_notes").start_showing_one(this)},handle_mouseout:function() {if(this.id=="photo_note_temp"){return }clearTimeout(this.hide_timmy);this.hide_timmy= _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("_ge('"+this.id+"').take_another_little_piece_of_my_heart('Photo_Note_EXT.onmouseout');",200)},take_another_little_piece_of_my_heart:function() {if(_ge("photo_notes").editing||global_comm_div.comming||_ge("photo_notes").dragging){return }this.isOver=0;this.change_display();_ge("photo_notes").stop_showing_one()},start_editing:function() {if(this.editing){return }this.isOver=1;this.editing=1;this.change_display()},stop_editing:function(A) {this.editing=0;if(A){this.style.left=this.saved_x+"px"; _proxy_jslib_assign('', this.style, 'top', '=', (this.saved_y+"px"));this.innermost_div.style.width=this.saved_w+"px";this.innermost_div.style.height=this.saved_h+"px"; _proxy_jslib_assign('', this.resize_nw_div.style, 'top', '=', ( _proxy_jslib_assign('', this.resize_ne_div.style, 'top', '=', ("0px")))); _proxy_jslib_assign('', this.resize_sw_div.style, 'top', '=', ( _proxy_jslib_assign('', this.resize_se_div.style, 'top', '=', ((this.get_note_h()-this.resize_box_size)+"px"))));this.resize_nw_div.style.left=this.resize_sw_div.style.left="0px";this.resize_ne_div.style.left=this.resize_se_div.style.left=(this.get_note_w()-this.resize_box_size)+"px";_ge("photo_notes").start_showing_one(this);var C=_ge("photo_prop_"+this.note_id);var B=_ge("photo_prop_img_"+this.note_id);if(C&&B){ _proxy_jslib_assign('', C.style, 'top', '=', (_pi( _proxy_jslib_handle(this.style, 'top', '', 0, 0))+2));C.style.left=_pi(this.style.left)+2;C.style.width=this.innermost_div.style.width;C.style.height=this.innermost_div.style.height;B.style.width=this.innermost_div.style.width;B.style.height=this.innermost_div.style.height}}this.change_display()},handle_mousedown:function(A) {A||(A=window.event);if(!_ge("photo_notes").editing&&!global_comm_div.comming&&!_ge("photo_notes").dragging){this.start_editing()}if(((!_ge("photo_notes").editing&&!_ge("photo_notes").dragging)||_ge("photo_notes").which_note==this&&!this.isDragging)&&!global_comm_div.comming){this.start_dragging(A)}},stop_dragging:function() {_enable_select();if(!this.isDragging){return }document.onmousemove=null;_ge("photo_notes").start_editing_one(this);this.isDragging=0;this.change_display()},start_dragging:function(G) {G||(G=window.event);_ge("photo_notes").start_dragging_one();_disable_select();var B=_pi(this.style.left);var I=_pi( _proxy_jslib_handle(this.style, 'top', '', 0, 0));this.lastClientX=G.clientX;this.lastClientY=G.clientY;var A=G.clientX-B;var E=A+_ge("photo_notes").get_image_w()-this.get_note_w();var H=G.clientY-I;var D=H+_ge("photo_notes").get_image_h()-this.get_note_h();this.isDragging=1;this.change_display();var C=this;document.dragee=this;document.onmouseup=function(J) {if(document.dragee){C.stop_dragging()}document.dragee=null};var C=this;document.onmousemove=function(N) {N||(N=window.event);if(_ge("photo_notes").hide_while_dragging){_ge("photo_notes").hide_notes_text_div()}var K=_pi(C.style.left);var Q=_pi( _proxy_jslib_handle(C.style, 'top', '', 0, 0));var M=Math.min(Math.max(N.clientX,A),E);var L=Math.min(Math.max(N.clientY,H),D);var J=K+(M-C.lastClientX);var P=Q+(L-C.lastClientY);C.style.left=J+"px"; _proxy_jslib_assign('', C.style, 'top', '=', (P+"px"));C.lastClientX=M;C.lastClientY=L;if(!_ge("photo_notes").hide_while_dragging){_ge("photo_notes").place_notes_text_div()}var O=_ge("photo_prop_"+C.note_id);if(O){ _proxy_jslib_assign('', O.style, 'top', '=', (_pi( _proxy_jslib_handle(C.style, 'top', '', 0, 0))+2+"px"));O.style.left=_pi(C.style.left)+2+"px"}};Y.E.stopEvent(G);return false},refresh_info:function(B,D,C,G,A,E) {this.note_id=B;this.id="photo_note_"+B;this.style.left=(D)+"px"; _proxy_jslib_assign('', this.style, 'top', '=', ((C)+"px"));this.innermost_div.style.width=(G-4)+"px";this.innermost_div.style.height=(A-4)+"px";this.saved_txt=E;this.saved_x=_pi(this.style.left);this.saved_y=_pi( _proxy_jslib_handle(this.style, 'top', '', 0, 0));this.saved_w=_pi(this.innermost_div.style.width);this.saved_h=_pi(this.innermost_div.style.height)},change_display:function() {var B=this.box_div.childNodes[0];var A=B.childNodes[0];B.style.borderStyle="solid";A.style.borderStyle="solid";this.box_div.style.left= _proxy_jslib_assign('', this.box_div.style, 'top', '=', ("0px"));this.box_div.style.borderWidth="0";this.hide_resize_divs();if(this.editing){this.show_resize_divs();A.style.borderStyle="dashed";B.style.borderStyle="dashed"}else{if(this.isOver){this.box_div.style.left= _proxy_jslib_assign('', this.box_div.style, 'top', '=', ("-1px"));this.box_div.style.borderWidth="1px"}}}};F._photo_button_bar={bar_go_go_go:function(O,S) {var x= _proxy_jslib_handle(this, 'getElementsByTagName', '', 1, 0)("img");var v=Y.U.Dom.getElementsByClassName("photo_gne_button","a",this);for(var n=0;n<v.length;n++){Photo_Gne_button_action_check( _proxy_jslib_handle(v, (n), 0, 0).id);var j= _proxy_jslib_handle(v, (n), 0, 0).id.split("photo_gne_button_").join("");var p=(j=="add_to_faves")?"a_fave":j;var a= _proxy_jslib_handle(v, (n), 0, 0).getAttribute("title");var Q= _proxy_jslib_handle(v, (n), 0, 0).getAttribute("title_off");Q=(Q)?Q:a;var N=(j=="add_to_faves"&&S)?1:0;if(j=="print"&& _proxy_jslib_handle(v, (n), 0, 0).className.indexOf("prints_")>-1){j="prints";}F.decorate( _proxy_jslib_handle(v, (n), 0, 0),F._photo_button).button_go_go_go(O,j,p,N,a,Q);}}};F._photo_button={button_go_go_go:function(n,Q,N,j,S,a) {this.lock_down=0;this.p_id=n; _proxy_jslib_assign('', this.style, 'cursor', '=', ((F.is_ie)?"hand":"pointer"));F.make_new_mouse_tip(this);this.base_name=Q;this.base_class_name="sprite-";if(Q=="add_note"&&!_ok_for_scrumjax()){this.style.display="none";return ;}this.on=[];this.on._className=this.base_class_name+Q+"_grey";this.on_over=[];this.on_over._className=this.base_class_name+Q+"_color";this.on_down=[];this.on_down._className=this.base_class_name+Q+"_color_down";if(Q=="send_to_group"||Q=="send_to_set"||Q=="print"||Q=="prints"||Q=="blog_this"){this.on_locked=[];this.on_locked._className=this.base_class_name+Q+"_color button_locked";}this.off=[];this.off._className=this.base_class_name+N+"_grey";this.off_over=[];this.off_over._className=this.base_class_name+N+"_color";this.off_down=[];this.off_down._className=this.base_class_name+N+"_color_down";this.isOver=this.isDown=0;this.isOff=(j)?1:0;this.title_on=S;this.title_off=a;if(this.isOff){this.change_src();F.change_mouse_tip_txt(this,a);}Y.U.Event.addListener(this,"mouseover",this.handle_mouseover);Y.U.Event.addListener(this,"mouseout",this.handle_mouseout);Y.U.Event.addListener(this,"click",this.handle_click);Y.U.Event.addListener(this,"mousedown",this.handle_mousedown);this.prints_action=this.print_action;},handle_mouseover:function(N) {if(window.should_I_ignore_stuff_because_note_editing||window.should_I_ignore_stuff_because_tash_editing||window.should_I_ignore_stuff_because_of_editable_div_action){return ;}this.isOver=1;this.change_src();},handle_mouseout:function(N) {this.isOver=0;if(!this.lock_down){this.isDown=0;}this.change_src();},handle_mousedown:function(Q) {if(window.should_I_ignore_stuff_because_note_editing||window.should_I_ignore_stuff_because_tash_editing||window.should_I_ignore_stuff_because_of_editable_div_action){return ;}if(this.is_disabled){this.enable_others();this.enable_self();}this.isDown=1;this.isOver=1;var N=_ge("photo_notes");if(this.base_name!="rotate"&&N&&N.hide_rotate_div){N.hide_rotate_div();}if(this.base_name!="print"&&printDialogDiv){hide_printDialog();}if(this.base_name!="send_to_set"&&sendToSetDialogDiv){hide_sendToSetDialog();}if(this.base_name!="send_to_group"&&sendToGroupDialogDiv){hide_sendToGroupDialog();}if(this.base_name!="blog_this"&&sendToBlogDialogDiv){hide_sendToBlogDialog();}},handle_click:function(N) {if(window.should_I_ignore_stuff_because_note_editing||window.should_I_ignore_stuff_because_tash_editing||window.should_I_ignore_stuff_because_of_editable_div_action){return ;}if(this.is_disabled){return ;}var Q= _proxy_jslib_handle(this, (this.base_name+"_action"), 1, 0)();this.isOver=1;if(Q==1){this.isDown=1;this.lock_down=1;}else{this.isDown=0;}this.change_src();},disable_others:function() {var j=Y.U.Dom.getElementsByClassName("photo_gne_button","IMG");for(var Q=0;Q<j.length;Q++){if( _proxy_jslib_handle(j, (Q), 0, 0).base_name!=this.base_name){ _proxy_jslib_handle(j, (Q), 0, 0).disable_self();}}var N=_ge("photo_notes");if(N&&N.take_her_away){N.take_her_away("disable_others");}window.should_I_ignore_stuff_because_of_button_action=1;F.eb_broadcast("stewart_pause");},enable_others:function() {var Q=Y.U.Dom.getElementsByClassName("photo_gne_button","IMG");for(var N=0;N<Q.length;N++){if( _proxy_jslib_handle(Q, (N), 0, 0).base_name!=this.base_name){ _proxy_jslib_handle(Q, (N), 0, 0).enable_self();}}window.should_I_ignore_stuff_because_of_button_action=0;F.eb_broadcast("stewart_play_if_was_playing");},disable_self:function() {this.is_disabled=1; _proxy_jslib_assign('', this.style, 'cursor', '=', ("default"));},enable_self:function() {this.is_disabled=0; _proxy_jslib_assign('', this.style, 'cursor', '=', ((F.is_ie)?"hand":"pointer"));},change_src:function() {if(this.is_disabled){return ;}if(this.lock_down){this.className=this.on_locked._className;}else{if(this.isOff){if(this.isDown){this.className=this.off_down._className;}else{if(this.isOver){this.className=this.off_over._className;}else{this.className=this.off._className;}}}else{if(this.isDown){this.className=this.on_down._className;}else{if(this.isOver){this.className=this.on_over._className;}else{this.className=this.on._className;}}}}},delete_action:function() { _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("if (confirm('"+F.output.get("photo_buttons_are_you_sure")+"'))  document.location = global_photos['"+this.p_id+"'].deleteUrl;",50);return 0;},rotate_action:function() {var N=_ge("photo_notes");if(N&&N.show_rotate_div){this.disable_others();N.show_rotate_div(this);}return 0;},send_to_set_action:function() {if(_ok_for_scrumjax_xml()){if(this.lock_down){hide_sendToSetDialog();return 0;}else{show_sendToSetDialog(this.p_id);return 1;}}else{ _proxy_jslib_assign('', document, 'location', '=', ("/photo_sendto_set.gne?id="+this.p_id));}return 0;},print_action:function() {if(_ok_for_scrumjax_xml()){if(this.lock_down){hide_printDialog();return 0;}else{show_printDialog(this.p_id);return 1;}}else{ _proxy_jslib_assign('', document, 'location', '=', ("/photo_print.gne?id="+this.p_id));}return 0;},send_to_group_action:function() {if(_ok_for_scrumjax_xml()){if(this.lock_down){hide_sendToGroupDialog();return 0;}else{show_sendToGroupDialog(this.p_id);return 1;}}else{ _proxy_jslib_assign('', document, 'location', '=', ("/photo_sendto_group.gne?id="+this.p_id));}return 0;},blog_this_action:function() {if(_ok_for_scrumjax_xml()){if(this.lock_down){hide_sendToBlogDialog();return 0;}else{show_sendToBlogDialog(this.p_id);return 1;}}else{ _proxy_jslib_assign('', document, 'location', '=', ("/blog.gne?photo="+this.p_id));}return 0;},add_note_action:function() {var N=_ge("photo_notes");if(N&&N.start_adding_note){N.start_adding_note();}return 0;},add_tash_action:function() {window.should_I_ignore_stuff_because_tash_editing=1;if(!_ge("photo_tash")&&page_photo_id!=null){var N=document.createElement("DIV");N.id="photo_tash";_ge("photoImgDiv"+page_photo_id).appendChild(N);F.decorate(N,photo_tash).go_go_go();}_ge("photo_tash").show();return 0;},zoom_action:function() { _proxy_jslib_assign('', document, 'location', '=', ( _proxy_jslib_handle(_ge("photo_gne_button_zoom"), 'href', '', 0, 0)));var N;return 0;},embed_action:function() { _proxy_jslib_assign('', document, 'location', '=', ( _proxy_jslib_handle(_ge("photo_gne_button_embed"), 'href', '', 0, 0)));return 0;},edit_photo_action:function() {if(typeof (_is_picnik_basket)!="undefined"){F.picnik_2.go_go_go();}else{F.picnik.go_go_go();}},add_to_faves_action:function() {var Q=_ge("photo_notes");var N=_ge("fave_form");if(this.isOff){if(_ok_for_scrumjax()){F.API.callMethod("flickr.favorites.remove",{photo_id:this.p_id},this);if(window.disable_stewart){if(Q&&Q.start_comming){Q.start_comming(F.output.get("photo_buttons_removing"),null,null,null,null,null,null,null,1);}}else{if(Q&&Q.start_pulsing){Q.start_pulsing();}}}else{if(N){ _proxy_jslib_assign('', N, 'action', '=', (page_current_url)); _proxy_jslib_assign('', N.faveremove, 'value', '=', (1));N.submit();}}}else{if(_ok_for_scrumjax()){F.API.callMethod("flickr.favorites.add",{photo_id:this.p_id},this);if(window.disable_stewart){if(Q&&Q.start_comming){Q.start_comming(F.output.get("photo_buttons_adding"),null,null,null,null,null,null,null,1);}}else{if(Q&&Q.start_pulsing){Q.start_pulsing();}}}else{if(N){ _proxy_jslib_assign('', N, 'action', '=', (page_current_url)); _proxy_jslib_assign('', N.faveadd, 'value', '=', (1));N.submit();}}}return 0;},flickr_favorites_add_onLoad:function(a,j,Q) {var N=_ge("photo_notes");this.isOff=!this.isOff;this.change_src();F.change_mouse_tip_txt(this,this.title_off);if(window.disable_stewart){if(N&&N.stop_comming){N.stop_comming(1);}}else{if(N&&N.stop_pulsing){N.stop_pulsing();}}},flickr_favorites_remove_onLoad:function(a,j,Q) {var N=_ge("photo_notes");this.isOff=!this.isOff;this.change_src();F.change_mouse_tip_txt(this,this.title_on);if(window.disable_stewart){if(N&&N.stop_comming){N.stop_comming(1);}}else{if(N&&N.stop_pulsing){N.stop_pulsing();}}}};var Photo_Gne_button_action_check=function(Q) {try{if(Q=="photo_gne_button_add_tash"){if(!_ge("photo_tash")&&page_photo_id!=null){ _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)(function() {var j=document.createElement("DIV");j.id="photo_tash";_ge("photoImgDiv"+page_photo_id).appendChild(j);F.decorate(j,photo_tash).go_go_go();},2000);}}}catch(N){}};function tagrs_showForm() {_ge("tagadderlink").style.display="none";_ge("tagadder").style.display="block";_ge("addtagbox").focus();tagrs_startAutoComplete()}function tagrs_startAutoComplete() {if(_ge("tagSuggestions")&&window.TagCompleteWidget){new (TagCompleteWidget)(_ge("addtagbox"),_ge("tagSuggestions"),global_nsid).completer.startLoading()}tagrs_startAutoComplete=function() {}}function tagrs_hideForm() {tagrs_clearForm();_ge("tagadderlink").style.display="block";_ge("tagadder").style.display="none"}function tagrs_clearForm() { _proxy_jslib_assign('', document.forms.tagadderform.tag, 'value', '=', (""))}function tagrs_addTag(B,A) {if(!_ok_for_scrumjax_xml()){return true}if(A==""){return false}deja_view_uh_huh();tagrs_clearForm();var C=_ge("tagadder");C.flickr_photos_addTags_onLoad=function(J,I,H) {if(J){F.API.callMethod("flickr.photos.getInfo",{photo_id:B},this)}else{var D=F.output.get("tagrs_tag_not_added");var G= _proxy_jslib_handle(I.documentElement, 'getElementsByTagName', '', 1, 0)("err");if(G){G=G[0];if(G.getAttribute("code")=="2"){D=F.output.get("tagrs_max_limit",global_tag_limit,global_tag_limit)}else{if(G[0].getAttribute("msg")){D+=" "+G[0].getAttribute("msg")}}}var E=_ge("photo_notes");if(E&&E.start_comming){alert(D)}else{alert(D)}}};F.API.callMethod("flickr.photos.addTags",{photo_id:B,tags:A},C);return false}function tagrs_rebuildTagsHTML(G,H,A,I,C,B,E) {var D='<div id="tagdiv'+H+'"><a class="globe" onMouseOver="this.childNodes[0].src=\''+_images_root+"/icon_globe_over.gif';\" onMouseOut=\"this.childNodes[0].src='"+_images_root+'/icon_globe.gif\';" href="/photos/tags/'+A+'/" title="'+F.output.get("tagrs_click_icon_all_public",A)+'"><img src="'+_images_root+'/icon_globe.gif" width="16" height="16" class="icon" alt="'+F.output.get("tagrs_click_icon_all_public",A)+'" /></a> ';if(_tagged_by){if(B){D+='<a class="Plain" href="'+ _proxy_jslib_handle(global_photos, (G), 0, 0).ownersUrl+"tags/"+A+'/" title="'+F.output.get("tagged_by_you")+'">'+I.escape_for_display()+"</a>"}else{if(C!=""){D+='<a class="Plain" href="'+ _proxy_jslib_handle(global_photos, (G), 0, 0).ownersUrl+"tags/"+A+'/" title="'+F.output.get("tagged_by_user",C.escape_for_display())+'">'+I.escape_for_display()+"</a>"}else{D+='<a class="Plain" href="'+ _proxy_jslib_handle(global_photos, (G), 0, 0).ownersUrl+"tags/"+A+'/" title="'+F.output.get("tagged_by_someone")+'">'+I.escape_for_display()+"</a>"}}}else{D+='<a class="Plain" href="'+ _proxy_jslib_handle(global_photos, (G), 0, 0).ownersUrl+"tags/"+A+'/">'+I.escape_for_display()+"</a>"}if(E){D+='\r\n\t\t\t\t\t\t&nbsp;<a href="'+ _proxy_jslib_handle(global_photos, (G), 0, 0).url+"?magic_cookie="+global_auth_hash+"&deletetag="+H+'" title="'+F.output.get("tagrs_delete_this_tag")+'" class="Grey" onclick="return tagrs_removeTag(\''+G+"', '"+H+"', '"+A+"', '"+ _proxy_jslib_handle(I.escape_for_display(), 'replace', '', 1, 0)("'","\\'")+"')\">[x]</a>"}D+="</div>";return D;tagrs_setPopularUsed(A)}function tagrs_removeTag(E,B,A,D) {if(window.confirm(F.output.get("tagrs_are_you_sure_delete",D.escape_for_display()))){deja_view_uh_huh();if(!_ok_for_scrumjax_xml()){return true}var C=_ge("tagadder");C.flickr_photos_removeTag_onLoad=function(K,J,I) {if(K){tagrs_removedTag(E,B,A)}else{var G=F.output.get("tagrs_tag_not_deleted");var H= _proxy_jslib_handle(J.documentElement, 'getElementsByTagName', '', 1, 0)("err");if(H&&H[0].getAttribute("msg")){G+=" "+H[0].getAttribute("msg")}alert(G)}};F.API.callMethod("flickr.photos.removeTag",{tag_id:B},C);return false}else{return false}}function tagrs_removedTag(B,D,J) {_ge("tagdiv"+D).style.display="none";var C=0;var H=0;if(_ge("thetags")){var G= _proxy_jslib_handle(_ge("thetags"), 'getElementsByTagName', '', 1, 0)("div").length;for(var E=0;E<G;E++){if( _proxy_jslib_handle( _proxy_jslib_handle(_ge("thetags"), 'getElementsByTagName', '', 1, 0)("div"), (E), 0, 0).style.display!="none"){C++}}}if(_ge("themachinetags")){var G= _proxy_jslib_handle(_ge("themachinetags"), 'getElementsByTagName', '', 1, 0)("div").length;for(var E=0;E<G;E++){if( _proxy_jslib_handle( _proxy_jslib_handle(_ge("themachinetags"), 'getElementsByTagName', '', 1, 0)("div"), (E), 0, 0).style.display!="none"){H++}}}tagrs_toggle_displays(C,H);tagrs_setPopularUnUsedIfNotInInput(J);var I=tagrs_whereIsThisTagInHere( _proxy_jslib_handle(global_photos, (B), 0, 0).tagsA,J);for(var A=0;A<I.length;A++){ _proxy_jslib_handle(global_photos, (B), 0, 0).tagsA.splice( _proxy_jslib_handle(I, (A), 0, 0),1); _proxy_jslib_handle(global_photos, (B), 0, 0).tags_rawA.splice( _proxy_jslib_handle(I, (A), 0, 0),1)}}function tagrs_clearTags() { _proxy_jslib_assign('', _ge("thetags"), 'innerHTML', '=', (""))}function tagrs_updatePopularList(C) {if(!_ok_for_scrumjax_xml()){return false}var I=_ge("addtagbox");var H=F.get_tags_from_input_str( _proxy_jslib_handle(I, 'value', '', 0, 0));var D=( _proxy_jslib_handle(global_photos, (C), 0, 0)&& _proxy_jslib_handle(global_photos, (C), 0, 0).tagsA)? _proxy_jslib_handle(global_photos, (C), 0, 0).tagsA:[];var B=( _proxy_jslib_handle(global_photos, (C), 0, 0)&& _proxy_jslib_handle(global_photos, (C), 0, 0).tags_rawA)? _proxy_jslib_handle(global_photos, (C), 0, 0).tags_rawA:[];for(var J=0;J<tagrs_popularA.length;J++){var K= _proxy_jslib_handle(tagrs_popularA, (J), 0, 0);var E=tagrs_whereIsThisTagInHere(D,K);var A=tagrs_whereIsThisTagInHere(B,K);var G=tagrs_whereIsThisTagInHere(H,K);if(E.length==0&&A.length==0&&G.length==0){tagrs_setPopularUnUsed(K)}else{tagrs_setPopularUsed(K)}} _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)("tagrs_updatePopularList('"+C+"')",200)}tagrs_popularA=[];function tagrs_showPopular(C,B) {if(!_ok_for_scrumjax_xml()){return false}var A=_ge("addtagbox");var D=F.get_tags_from_input_str( _proxy_jslib_handle(A, 'value', '', 0, 0));C=(C==undefined)?20:C;var E=_ge("tagpopular");global_nsid; _proxy_jslib_assign('', E, 'innerHTML', '=', ("<i>"+F.output.get("loading")+"</i>"));E.flickr_tags_getListUserPopular_onLoad=function(L,K,J) {if(L){tagrs_popularA=[];var O= _proxy_jslib_handle(K.documentElement, 'getElementsByTagName', '', 1, 0)("tag");if(O.length==0){var M=F.output.get("tagrs_no_tags_yet")}else{var M=F.output.get("tagrs_click_a_tag");for(var N=0;N<O.length;N++){var G= _proxy_jslib_handle(O, (N), 0, 0);var P= _proxy_jslib_handle(G.firstChild, 'nodeValue', '', 0, 0);tagrs_popularA.push(P);M+=' <a href="#" id="popTags'+P+'" onclick="tagrs_toggleTagInInput(\''+P+"', '"+B+"'); return false;\">"+P+"</a>"}if(O.length>C){M+='<br><br><a href="#" onclick="tagrs_showPopular('+(C+20)+", '"+B+"');return false;\">"+F.output.get("tagrs_get_more_your_tags")+'</a> | <a href="#" onclick="tagrs_showPopular('+(C+2000)+", '"+B+"');return false;\">"+F.output.get("tagrs_get_all_your_tags")+"</a>"}} _proxy_jslib_assign('', this, 'innerHTML', '=', (M));tagrs_updatePopularList(B)}else{var I=F.output.get("tagrs_tags_not_loaded");var H= _proxy_jslib_handle(K.documentElement, 'getElementsByTagName', '', 1, 0)("err");if(H&&H[0].getAttribute("msg")){I+=" "+H[0].getAttribute("msg")}alert(I)}};F.API.callMethod("flickr.tags.getListUserPopular",{count:C+1},E)}function tagrs_setPopularUsed(A) {var B=_ge("popTags"+A);if(!B){return }B.className="tagrsUsed"}function tagrs_setPopularUnUsed(A) {var B=_ge("popTags"+A);if(!B){return }B.className="tagrsUnUsed"}function tagrs_setPopularUnUsedIfNotInInput(A) {var C=_ge("popTags"+A);if(!C){return }var B=_ge("addtagbox");var D=F.get_tags_from_input_str( _proxy_jslib_handle(B, 'value', '', 0, 0));var E=tagrs_whereIsThisTagInHere(D,A);if(E.length>0){return }tagrs_setPopularUnUsed(A)}function tagrs_toggleTagInInput(B,C) {var D=( _proxy_jslib_handle(global_photos, (C), 0, 0)&& _proxy_jslib_handle(global_photos, (C), 0, 0).tagsA)? _proxy_jslib_handle(global_photos, (C), 0, 0).tagsA:[];var H=_ge("addtagbox");var E=F.get_tags_from_input_str( _proxy_jslib_handle(H, 'value', '', 0, 0));var K=tagrs_whereIsThisTagInHere(E,B);if(K.length==0){if(tagrs_whereIsThisTagInHere(D,B).length==0){E.unshift(B)}tagrs_setPopularUsed(B)}else{for(var A=0;A<K.length;A++){E.splice( _proxy_jslib_handle(K, (A), 0, 0),1)}tagrs_setPopularUnUsed(B)}var G=_ge("popTags"+B);if(G){G.blur()}var I="";for(var J=0;J<E.length;J++){I+=( _proxy_jslib_handle(E, (J), 0, 0).indexOf(" ")==-1)? _proxy_jslib_handle(E, (J), 0, 0):'"'+ _proxy_jslib_handle(E, (J), 0, 0)+'"';if(J+1<E.length){I+=" "}} _proxy_jslib_assign('', H, 'value', '=', (I))}function tagrs_whereIsThisTagInHere(G,E) {var C=[];for(var D=0;D<G.length;D++){var B= _proxy_jslib_handle(G, (D), 0, 0);if(E.toLowerCase()== _proxy_jslib_handle(B, 'replace', '', 1, 0)(" ","").toLowerCase()){C.unshift(D)}}return C}function tagrs_toggle_displays(B,A) {if(!B&&!A){_ge("thetags").style.display="block";if(_ge("machine_tag_toggle")){_ge("machine_tag_toggle").style.display="none"}if(_ge("themachinetags")){_ge("themachinetags").style.display="none"}}if(B&&!A){_ge("thetags").style.display="block";if(_ge("machine_tag_toggle")){_ge("machine_tag_toggle").style.display="none"}if(_ge("themachinetags")){_ge("themachinetags").style.display="none"}}if(!B&&A){_ge("thetags").style.display="none";if(_ge("machine_tag_toggle")){_ge("machine_tag_toggle").style.display="none"}if(_ge("themachinetags")){_ge("themachinetags").style.display="block"}if(_ge("machine_tag_toggle_show")){_ge("machine_tag_toggle_show").style.display="none"}if(_ge("machine_tag_toggle_hide")){_ge("machine_tag_toggle_hide").style.display="none"}}if(B&&A&&_old_machine_tags!=A){_old_machine_tags=A;_ge("thetags").style.display="block";if(_ge("machine_tag_toggle")){_ge("machine_tag_toggle").style.display="block"}if(_ge("themachinetags")){_ge("themachinetags").style.display="block"}if(_ge("machine_tag_toggle_show")){_ge("machine_tag_toggle_show").style.display="none"}if(_ge("machine_tag_toggle_hide")){_ge("machine_tag_toggle_hide").style.display="block"}}if(_ge("span_machine_tags_show_count")){ _proxy_jslib_assign('', _ge("span_machine_tags_show_count"), 'innerHTML', '=', (A))}if(_ge("span_machine_tags_hide_count")){ _proxy_jslib_assign('', _ge("span_machine_tags_hide_count"), 'innerHTML', '=', (A))}}function tagrs_toggle_machine_tags() {if(_ge("machine_tag_toggle_show")&&_ge("machine_tag_toggle_hide")){if(_ge("machine_tag_toggle_show").style.display=="none"){tagrs_hide_machine_tags()}else{tagrs_show_machine_tags()}}return false}function tagrs_show_machine_tags() {if(_ge("machine_tag_toggle_show")){_ge("machine_tag_toggle_show").style.display="none"}if(_ge("machine_tag_toggle_hide")){_ge("machine_tag_toggle_hide").style.display="block"}if(_ge("themachinetags")){_ge("themachinetags").style.display="block"}}function tagrs_hide_machine_tags() {if(_ge("machine_tag_toggle_show")){_ge("machine_tag_toggle_show").style.display="block"}if(_ge("machine_tag_toggle_hide")){_ge("machine_tag_toggle_hide").style.display="none"}if(_ge("themachinetags")){_ge("themachinetags").style.display="none"}}function tagrs_writePopularLink(A) {if(!_ok_for_scrumjax_xml()){return } _proxy_jslib_handle(document, 'write', '', 1, 0)('<div style="margin-top:5px; font-size:12px" id="tagpopular"><a style="text-decoration: none;" href="#" onclick="tagrs_showPopular(20, \''+A+"');return false;\">"+F.output.get("tagrs_choose_from_tags")+"</a></div>");var B=_ge("tagadder");if(B){B.flickr_photos_getInfo_onLoad=function(L,J,G) {if(L){var N= _proxy_jslib_handle(J.documentElement, 'getElementsByTagName', '', 1, 0)("tag");_rebuild_tags_for_photos(A,N);var C= _proxy_jslib_handle(global_photos, (A), 0, 0);var I="";var E="";var D=0;var K=0;var H=new (RegExp)("^(.+):(.+)=(.+)$");for(var M=0;M<C.tagsA.length;M++){if(H.test( _proxy_jslib_handle(C.tags_rawA, (M), 0, 0))&&_ge("themachinetags")){K++;E+=tagrs_rebuildTagsHTML(A, _proxy_jslib_handle(C.tags_idA, (M), 0, 0), _proxy_jslib_handle(C.tagsA, (M), 0, 0), _proxy_jslib_handle(C.tags_rawA, (M), 0, 0), _proxy_jslib_handle(C.tags_nameA, (M), 0, 0), _proxy_jslib_handle(C.tags_isOwnerA, (M), 0, 0), _proxy_jslib_handle(C.tags_canDeleteA, (M), 0, 0))}else{D++;I+=tagrs_rebuildTagsHTML(A, _proxy_jslib_handle(C.tags_idA, (M), 0, 0), _proxy_jslib_handle(C.tagsA, (M), 0, 0), _proxy_jslib_handle(C.tags_rawA, (M), 0, 0), _proxy_jslib_handle(C.tags_nameA, (M), 0, 0), _proxy_jslib_handle(C.tags_isOwnerA, (M), 0, 0), _proxy_jslib_handle(C.tags_canDeleteA, (M), 0, 0))}}tagrs_toggle_displays(D,K); _proxy_jslib_assign('', _ge("thetags"), 'innerHTML', '=', (I));if(_ge("themachinetags")){ _proxy_jslib_assign('', _ge("themachinetags"), 'innerHTML', '=', (E))}}else{alert("info not got")}}}if(window.deja_view_should_refresh){ _proxy_jslib_assign('', _ge("thetags"), 'innerHTML', '=', ("...<br>"))}}function machine_tag_toggle_init() {var D=0;var C=0;if(_ge("thetags")){var B= _proxy_jslib_handle(_ge("thetags"), 'getElementsByTagName', '', 1, 0)("div").length;for(var A=0;A<B;A++){if( _proxy_jslib_handle( _proxy_jslib_handle(_ge("thetags"), 'getElementsByTagName', '', 1, 0)("div"), (A), 0, 0).style.display!="none"){D++}}}if(_ge("themachinetags")){var B= _proxy_jslib_handle(_ge("themachinetags"), 'getElementsByTagName', '', 1, 0)("div").length;for(var A=0;A<B;A++){if( _proxy_jslib_handle( _proxy_jslib_handle(_ge("themachinetags"), 'getElementsByTagName', '', 1, 0)("div"), (A), 0, 0).style.display!="none"){C++}}}if(!D&&!C){_ge("thetags").style.display="block";if(_ge("machine_tag_toggle")){_ge("machine_tag_toggle").style.display="none"}if(_ge("themachinetags")){_ge("themachinetags").style.display="none"}}if(D&&!C){_ge("thetags").style.display="block";if(_ge("machine_tag_toggle")){_ge("machine_tag_toggle").style.display="none"}if(_ge("themachinetags")){_ge("themachinetags").style.display="none"}}if(!D&&C){_ge("thetags").style.display="none";if(_ge("machine_tag_toggle")){_ge("machine_tag_toggle").style.display="none"}if(_ge("themachinetags")){_ge("themachinetags").style.display="block"}if(_ge("machine_tag_toggle_show")){_ge("machine_tag_toggle_show").style.display="none"}if(_ge("machine_tag_toggle_hide")){_ge("machine_tag_toggle_hide").style.display="none"}}if(D&&C){_ge("thetags").style.display="block";if(_ge("machine_tag_toggle")){_ge("machine_tag_toggle").style.display="block"}if(_ge("themachinetags")){_ge("themachinetags").style.display="none"}if(_ge("machine_tag_toggle_show")){_ge("machine_tag_toggle_show").style.display="block"}if(_ge("machine_tag_toggle_hide")){_ge("machine_tag_toggle_hide").style.display="none"}}};var nextprev_currentContextLink;var nextprev_currentContextID;nextprev_toggle_set=function(B,A) {if(!_ok_for_scrumjax()){return true}var D=_ge("nextprev_tr_set"+B);if(D.style.display=="none"){var C=nextprev_expand("set",B);if(!C.ready){C.flickr_photosets_getContext_onLoad=C.handleRsp;F.API.callMethod("flickr.photosets.getContext",{photoset_id:B,photo_id:A},C)}}else{nextprev_collapse("set",B)}return false};nextprev_toggle_pool=function(B,A) {if(!_ok_for_scrumjax()){return true}var D=_ge("nextprev_tr_pool"+B);if(D.style.display=="none"){var C=nextprev_expand("pool",B);if(!C.ready){C.flickr_groups_pools_getContext_onLoad=C.handleRsp;F.API.callMethod("flickr.groups.pools.getContext",{group_id:B,photo_id:A},C)}}else{nextprev_collapse("pool",B)}return false};nextprev_toggle_stream=function(A,B) {if(!_ok_for_scrumjax()){return true}var D=_ge("nextprev_tr_stream"+A);if(D.style.display=="none"){var C=nextprev_expand("stream",A);if(!C.ready){C.flickr_photos_getContext_onLoad=C.handleRsp;F.API.callMethod("flickr.photos.getContext",{user_id:A,photo_id:B},C)}}else{nextprev_collapse("stream",A)}return false};nextprev_collapse=function(D,E) {var C=_ge("nextprev_tr_"+D+E);var B=_ge("nextprev_crumbs_tr_"+D+E);var A=_ge("contextTitle_"+D+E);C.style.display="none";if(B){B.style.display="none"}A.style.borderBottom="1px solid #f3f3f3";C.ready=1};nextprev_expand=function(H,B) {var K=_ge("nextprev_tr_"+H+B);var C=_ge("nextprev_crumbs_tr_"+H+B);var D=_ge("nextprev_div_"+H+B);var J=_ge("nextprev_mover_div_"+H+B);var L=_ge("contextInfoInner_"+H+B);var I=_ge("photosNum_"+H+B);var E=_ge("photosText_"+H+B);var A=_ge("contextTitle_"+H+B);var G=_ge("slideshowLink_"+H+B);K.showYourself=function() {K.style.display=(F.is_ie)?"block":"table-row";if(C){C.style.display=(F.is_ie)?"block":"table-row"}A.style.borderBottom="0px";if(!K.ready){ _proxy_jslib_assign('', J, 'innerHTML', '=', ('<img src="'+_images_root+'/context_loading.gif" width="75" height="75" alt="" />'))}};K.showYourself();K.handleRsp=function(Z,M,b) {if(Z){var f= _proxy_jslib_handle(M.documentElement, 'getElementsByTagName', '', 1, 0)("prevphoto")[0];var i=f.getAttribute("id")*1;var P="";var S="";var Q="";var c="";var h=false;var a="";var R="";if(f&&i!="0"){P=f.getAttribute("url");S=f.getAttribute("thumb");Q=' href="'+P+'"';c=' title="'+F.output.get("nextprev_goto_prev",H)+'"';_ge("nextprev_arrows_prev_img_"+H+B).style.visibility="visible";if(f.getAttribute("media")=="video"){h=true;a='<img src="'+_images_root+'/video_play_icon_small.png.v1" class="trans_png nextprev_stew_indicator">'}if(window.global_widget_carets){R='<img src="'+_images_root+'/context_caret_left.gif" class="nextprev_caret">'}}else{S=_intl_images_root+"/placeholder_first_photo.gif"}var j="<a "+Q+' class="contextThumbLink" style="position:absolute; left:0px;"><img id="nextprev_thumb_'+H+B+i+'" class="nextprev_thumb" style="visibility:hidden;" onload="F.decorate(this, F._nextprev_thumb).thumb_go_go_go(\''+P+"', false, '"+H+"', '"+B+'\')" src="'+S+'" width="75" height="75" '+c+" />"+a+R+"</a>";D.prev_id=i; _proxy_jslib_assign('', D.cache, ("p"+i), '=', ({id:i,url:P,src:S,is_video:h,is_before:1}));var U= _proxy_jslib_handle(M.documentElement, 'getElementsByTagName', '', 1, 0)("nextphoto")[0];var V=U.getAttribute("id")*1;var d="";var g="";var T="";var O="";var X=false;var e="";var N="";if(U&&V!="0"){d=U.getAttribute("url");g=U.getAttribute("thumb");T=' href="'+d+'"';O=' title="'+F.output.get("nextprev_goto_next",H)+'"';_ge("nextprev_arrows_next_img_"+H+B).style.visibility="visible";if(U.getAttribute("media")=="video"){X=true;e='<img src="'+_images_root+'/video_play_icon_small.png.v1" class="trans_png nextprev_stew_indicator">'}if(window.global_widget_carets){N='<img src="'+_images_root+'/context_caret_right.gif" class="nextprev_caret">'}}else{g=_intl_images_root+"/placeholder_last_photo.gif"}var k="<a "+T+' class="contextThumbLink" style="position:absolute; left:78px;"><img id="nextprev_thumb_'+H+B+V+'" class="nextprev_thumb" style="visibility:hidden;" onload="F.decorate(this, F._nextprev_thumb).thumb_go_go_go(this, \''+d+"', false, '"+H+"', '"+B+'\')" src="'+g+'" width="75" height="75" '+O+" />"+e+N+"</a>";D.next_id=V; _proxy_jslib_assign('', D.cache, ("p"+V), '=', ({id:V,url:d,src:g,is_video:X,is_before:0})); _proxy_jslib_assign('', J, 'innerHTML', '=', (j+k));writeAPIDebug( _proxy_jslib_handle(J, 'innerHTML', '', 0, 0));var W= _proxy_jslib_handle( _proxy_jslib_handle(M.documentElement, 'getElementsByTagName', '', 1, 0)("count")[0].firstChild, 'nodeValue', '', 0, 0); _proxy_jslib_assign('', I, 'innerHTML', '=', (W.pretty_num())); _proxy_jslib_assign('', E, 'innerHTML', '=', (F.output.get_plural("mat_group_photo",W)));G.style.display=(W<2)?"none":"block";L.style.visibility="visible"}else{alert("Error")}};return K};F._nextprev_button={button_go_go_go:function(B,A,C) {this.c_type=B;this.c_id=A;this.p_id=C;this.closed={}; _proxy_jslib_assign('', this.closed, 'src', '=', (_images_root+"/context_closed.gif"));this.closed_over={}; _proxy_jslib_assign('', this.closed_over, 'src', '=', (_images_root+"/context_closed_over.gif"));this.closed_down={}; _proxy_jslib_assign('', this.closed_down, 'src', '=', (_images_root+"/context_closed_click.gif")); _proxy_jslib_assign('', this, 'open', '=', ({})); _proxy_jslib_assign('',  _proxy_jslib_handle(this, 'open', '', 0, 0), 'src', '=', (_images_root+"/context_open.gif"));this.open_over={}; _proxy_jslib_assign('', this.open_over, 'src', '=', (_images_root+"/context_open_over.gif"));this.open_down={}; _proxy_jslib_assign('', this.open_down, 'src', '=', (_images_root+"/context_open_click.gif"));F.preload_images( _proxy_jslib_handle(this.closed, 'src', '', 0, 0), _proxy_jslib_handle(this.closed_over, 'src', '', 0, 0), _proxy_jslib_handle(this.closed_down, 'src', '', 0, 0), _proxy_jslib_handle( _proxy_jslib_handle(this, 'open', '', 0, 0), 'src', '', 0, 0), _proxy_jslib_handle(this.open_down, 'src', '', 0, 0));this.isOver=0;this.isDown=0;this.isOpen=(this.get_src_file()=="context_closed.gif")?0:1;Y.U.Event.addListener(this,"mouseover",this.handle_mouseover);Y.U.Event.addListener(this,"mouseout",this.handle_mouseout);Y.U.Event.addListener(this,"click",this.handle_click);Y.U.Event.addListener(this,"mousedown",this.handle_mousedown)},get_src_file:function() {return  _proxy_jslib_handle(this, 'src', '', 0, 0).split("/").pop()},change_src:function() {if(this.isOpen){if(this.isDown){ _proxy_jslib_assign('', this, 'src', '=', ( _proxy_jslib_handle(this.open_down, 'src', '', 0, 0)))}else{if(this.isOver){ _proxy_jslib_assign('', this, 'src', '=', ( _proxy_jslib_handle(this.open_over, 'src', '', 0, 0)))}else{ _proxy_jslib_assign('', this, 'src', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(this, 'open', '', 0, 0), 'src', '', 0, 0)))}}}else{if(this.isDown){ _proxy_jslib_assign('', this, 'src', '=', ( _proxy_jslib_handle(this.closed_down, 'src', '', 0, 0)))}else{if(this.isOver){ _proxy_jslib_assign('', this, 'src', '=', ( _proxy_jslib_handle(this.closed_over, 'src', '', 0, 0)))}else{ _proxy_jslib_assign('', this, 'src', '=', ( _proxy_jslib_handle(this.closed, 'src', '', 0, 0)))}}}},handle_mouseover:function() {this.isOver=1;this.change_src()},handle_mouseout:function() {this.isOver=0;this.change_src()},handle_mousedown:function() {this.isDown=1;this.isOver=1;this.change_src()},handle_click:function() {this.isDown=0;this.isOpen=!this.isOpen;this.isOver=!this.isOpen;this.change_src(); _proxy_jslib_handle(window, ("nextprev_toggle_"+this.c_type), 1, 0)(this.c_id,this.p_id)}};F._nextprev_thumb={thumb_go_go_go:function(A,D,C,B) {this.url=A;this.c_type=C;this.c_id=B;this.current=(D)?1:0;this.style.visibility="visible";Y.U.Event.addListener(this,"click",this.handle_click)},handle_click:function(B) {if(this.url==""){return false}if(!B){B=window.event}if(this.current){}else{if(nextprev_currentContextLink){nextprev_currentContextLink.style.fontWeight="normal";nextprev_currentContextLink.style.color="#666666"}var A=_ge("contextLink_"+this.c_type+this.c_id);A.style.fontWeight="bold";A.style.color="#0063DC";if(B.metaKey||B.ctrlKey){}else{if(B.preventDefault){B.preventDefault()}if(B.stopPropagation){B.stopPropagation()} _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)('document.location = "'+this.url+'"',500)}}}};F._nextprev_arrows_div={div_go_go_go:function(D) {this.contextThumbsDiv=D;this.direction_to_move=0;for(var B=0;B<this.childNodes.length;B++){var C= _proxy_jslib_handle(this.childNodes, (B), 0, 0); _proxy_jslib_assign('', C.style, 'cursor', '=', ((F.is_ie)?"hand":"pointer"));var E=["left","","right"];if(B==1){var A=C.childNodes[0];A.style.visibility="visible";A.over_src=_intl_images_root+"/context_view_page_over.gif.v1";A.out_src=_intl_images_root+"/context_view_page_out.gif.v1"}else{var A=C;A.over_src=_images_root+"/context_arrow_more_"+ _proxy_jslib_handle(E, (B), 0, 0)+"_over.gif.v1";A.out_src=_images_root+"/context_arrow_more_"+ _proxy_jslib_handle(E, (B), 0, 0)+"_out.gif.v1"}if(A.title){F.make_new_mouse_tip(A,"below")}Y.U.Event.addListener(A,"mouseover",function(G) { _proxy_jslib_assign('', this, 'src', '=', (this.over_src))});Y.U.Event.addListener(A,"mouseout",function(G) { _proxy_jslib_assign('', this, 'src', '=', (this.out_src))})}Y.U.Event.addListener(this,"click",this.handle_click)},handle_click:function(B) {if(this.direction_to_move){return }var A=_get_event_src(B);if(A.className=="nextprev_arrows_img_prev"){this.direction_to_move="prev";this.contextThumbsDiv.slide_it(this.contextThumbsDiv.prev_id,this.direction_to_move)}else{if(A.className=="nextprev_arrows_img_next"){this.direction_to_move="next";this.contextThumbsDiv.slide_it(this.contextThumbsDiv.next_id,this.direction_to_move)}else{if(A.className=="contextThumbLink"){return }else{return }}}}};F._slideshow_button={_decotype:F._simple_button,button_go_go_go:function() {F.make_new_mouse_tip(this,"below");F._slideshow_button._decotype.button_go_go_go.apply(this)},button_default_onclick:function(A) {this.blur();return true}};F._nextprev_div={div_go_go_go:function(L,H,J,A,D,C,K,N,G,E,I) {this.prev_id=(L=="")?0:L;this.next_id=(H=="")?0:H;this.prev_url=J;this.next_url=A;this.c_type=K;this.c_id=N;this.current=G;this.p_id=E;this.url=I;this.pos=0;var M=_ge("nextprev_thumb_"+this.c_type+this.c_id+L);var B=_ge("nextprev_thumb_"+this.c_type+this.c_id+H);if(M){F.decorate(M,F._nextprev_thumb).thumb_go_go_go(this.prev_url,this.current,this.c_type,this.c_id)}if(B){F.decorate(B,F._nextprev_thumb).thumb_go_go_go(this.next_url,this.current,this.c_type,this.c_id)}this.arrows_div=_ge("nextprev_arrows_div_"+this.c_type+this.c_id);F.decorate(this.arrows_div,F._nextprev_arrows_div).div_go_go_go(this);this.cache={};if(M&&B&&M!=B){M.parentNode.style.position="absolute";M.parentNode.style.left="0px";B.parentNode.style.position="absolute";B.parentNode.style.left="78px"; _proxy_jslib_assign('', this.cache, ("p"+L), '=', ({id:this.prev_id,url:this.prev_url,src: _proxy_jslib_handle(M, 'src', '', 0, 0),is_video:D,is_before:1})); _proxy_jslib_assign('', this.cache, ("p"+H), '=', ({id:this.next_id,url:this.next_url,src: _proxy_jslib_handle(B, 'src', '', 0, 0),is_video:C,is_before:0}));if(L!=""){_ge("nextprev_arrows_prev_img_"+this.c_type+this.c_id).style.visibility="visible"}if(H!=""){_ge("nextprev_arrows_next_img_"+this.c_type+this.c_id).style.visibility="visible"}}F.decorate(_ge("slideshow_link_"+this.c_type+this.c_id),F._slideshow_button).button_go_go_go()},is_before_page_photo:function(C) {var A= _proxy_jslib_handle(this.cache, ("p"+C), 0, 0);for(var B in A){}if(A.is_before===0){return false}else{if(A.is_before===1){return true}else{if(!A.next_id){return false}else{if(A.next_id==page_photo_id){return true}else{return this.is_before_page_photo(A.next_id)}}}}},add_thumb:function(O,E,D,P,H,I,N) {writeDebug(P+" ----- "+O);var A=_ge("nextprev_mover_div_"+this.c_type+this.c_id);if(O!=0){var M=_ge("nextprev_view_page_img_"+this.c_type+this.c_id).parentNode; _proxy_jslib_assign('', M, 'href', '=', (this.url+"with/"+O+"/"))}var J="nextprev_thumb_"+this.c_type+this.c_id+O;var T=_ge(J);var G=0;if(!T||O==0){var R=document.createElement("a");R.style.position="absolute";R.className="contextThumbLink";T=document.createElement("img"); _proxy_jslib_assign('', T, 'src', '=', (E));T.className="nextprev_thumb";T.id=J;T.width=T.height=75;G=1;R.appendChild(T);if(N){var S=document.createElement("img"); _proxy_jslib_assign('', S, 'src', '=', (_images_root+"/video_play_icon_small.png.v1"));S.className="trans_png nextprev_stew_indicator";S.width=S.height=11;R.appendChild(S)}if(window.global_widget_carets){if(O&&O!=page_photo_id){var B=this.is_before_page_photo(O);var Q=document.createElement("img"); _proxy_jslib_assign('', Q, 'src', '=', ((B)?_images_root+"/context_caret_left.gif":_images_root+"/context_caret_right.gif"));Q.className="nextprev_caret";R.appendChild(Q)}}}else{R=T.parentNode}if(O!=0){ _proxy_jslib_assign('', R, 'href', '=', (D))}if(P=="prev"){this.pos--;var C=this.pos*78;R.style.left=C+"px";if(O!=0){T.title=F.output.get("nextprev_goto_prev",this.c_type)}if(G){A.appendChild(F.prepare_for_insertion(R));if(A.childNodes.length>4){for(var L=0;L<A.childNodes.length;L++){var K= _proxy_jslib_handle(A.childNodes, (L), 0, 0);if(K.childNodes[0]==I){continue}if(K.childNodes[0]==H){continue}F.remove_el(K,A);break}}}this.next_id=this.prev_id;this.prev_id=O;_ge("nextprev_thumb_"+this.c_type+this.c_id+this.next_id).title=F.output.get("nextprev_goto_next",this.c_type)}else{if(P=="next"){this.pos++;var C=this.pos*78;R.style.left=(C+78)+"px";if(O!=0){T.title=F.output.get("nextprev_goto_next",this.c_type)}if(G){A.appendChild(F.prepare_for_insertion(R));if(A.childNodes.length>4){for(var L=0;L<A.childNodes.length;L++){var K= _proxy_jslib_handle(A.childNodes, (L), 0, 0);if(K.childNodes[0]==I){continue}if(K.childNodes[0]==H){continue}F.remove_el(K,A);break}}}this.prev_id=this.next_id;this.next_id=O;_ge("nextprev_thumb_"+this.c_type+this.c_id+this.prev_id).title=F.