 _proxy_jslib_assign('', F, 'search', '=', ({contactsLoaded:0,groupsLoaded:0,buddyicons:{},GoQ:function(D) {var B= _proxy_jslib_handle(D, 'href', '', 0, 0);var C= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("standard_q");if( _proxy_jslib_handle(C, 'value', '', 0, 0).length){B+="?q="+ _proxy_jslib_handle(C, 'value', '', 0, 0)}var A= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("searchw");if(A&& _proxy_jslib_handle(A.options, (A.selectedIndex), 0, 0)&& _proxy_jslib_handle( _proxy_jslib_handle(A.options, (A.selectedIndex), 0, 0), 'value', '', 0, 0)){if( _proxy_jslib_handle( _proxy_jslib_handle(A.options, (A.selectedIndex), 0, 0), 'value', '', 0, 0)!="all"&& _proxy_jslib_handle( _proxy_jslib_handle(A.options, (A.selectedIndex), 0, 0), 'value', '', 0, 0)!="load"){B+=(B.indexOf("?")>-1)?"&":"?";B+="w="+ _proxy_jslib_handle( _proxy_jslib_handle(A.options, (A.selectedIndex), 0, 0), 'value', '', 0, 0)}} _proxy_jslib_assign('', D, 'href', '=', (B));return true},updateGroupRadios:function() {var H= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("searchw");var G=H? _proxy_jslib_handle( _proxy_jslib_handle(H.options, (H.selectedIndex), 0, 0), 'value', '', 0, 0):"all";if(G=="load"){this.loadGroups();G="all"}var C= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("mnames");var B= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("mdiscuss");var A= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("mpool");var E= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("mbox1");var D= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("mbox3");if(G=="all"){C.disabled=false;A.disabled=true;if(A.checked){C.checked=true}E.style.display="inline";D.style.display="none"}else{C.disabled=true;A.disabled=false;if(C.checked){B.checked=true}E.style.display="none";D.style.display="inline"}this.changeWho(1)},loadContacts:function() {if(this.contactsLoaded){return }this.contactsLoaded=1; _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("searchwloading").text=F.output.get("loading");var A={flickr_contacts_getList_onLoad:function(P,O,L,H) {var C= _proxy_jslib_handle(O, 'getElementsByTagName', '', 1, 0)("contact");var K=[];var M=[];for(var J=0;J<C.length;J++){var B= _proxy_jslib_handle(C, (J), 0, 0).getAttribute("username");var I= _proxy_jslib_handle(C, (J), 0, 0).getAttribute("nsid");var E= _proxy_jslib_handle(C, (J), 0, 0).getAttribute("iconserver");if(E){ _proxy_jslib_assign('',  _proxy_jslib_handle(F, 'search', '', 0, 0).buddyicons, (I), '=', ("http://static.flickr.com/"+E+"/buddyicons/"+I+".jpg"))}else{ _proxy_jslib_assign('',  _proxy_jslib_handle(F, 'search', '', 0, 0).buddyicons, (I), '=', (_images_root+"/buddyicon.jpg"))} _proxy_jslib_assign('', K, (B), '=', (I));M.push(B)}M.sort(_alpha_sort_func);var N= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("searchw");var G= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("searchwloading");for(var J=0;J<M.length;J++){var D=document.createElement("option"); _proxy_jslib_assign('', D, 'value', '=', ( _proxy_jslib_handle(K, ( _proxy_jslib_handle(M, (J), 0, 0)), 0, 0)));D.appendChild(document.createTextNode( _proxy_jslib_handle(M, (J), 0, 0)));N.appendChild(D)}G.text="-- "+F.output.get("select_contact")+" --"}};F.API.callMethod("flickr.contacts.getList",{},A)},loadGroups:function() {if(this.groupsLoaded){return }this.groupsLoaded=1; _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("searchwloading").text=F.output.get("loading");var A={flickr_groups_pools_getGroups_onLoad:function(P,O,K,H) {var N= _proxy_jslib_handle(O, 'getElementsByTagName', '', 1, 0)("groups")[0];var Q=N.getAttribute("pages")*1;var L=N.getAttribute("page")*1;var C= _proxy_jslib_handle(O, 'getElementsByTagName', '', 1, 0)("group");if(L==1){this.group_names_to_nsids=[];this.group_names=[]}for(var J=0;J<C.length;J++){var B= _proxy_jslib_handle(C, (J), 0, 0).getAttribute("name");var I= _proxy_jslib_handle(C, (J), 0, 0).getAttribute("nsid");var E= _proxy_jslib_handle(C, (J), 0, 0).getAttribute("iconserver");if(E){ _proxy_jslib_assign('',  _proxy_jslib_handle(F, 'search', '', 0, 0).buddyicons, (I), '=', ("http://static.flickr.com/"+E+"/buddyicons/"+I+".jpg?1"))}else{ _proxy_jslib_assign('',  _proxy_jslib_handle(F, 'search', '', 0, 0).buddyicons, (I), '=', (_images_root+"/buddyicon.jpg"))} _proxy_jslib_assign('', this.group_names_to_nsids, (B), '=', (I));this.group_names.push(B)}if(L<Q){H.page=L+1;F.API.callMethod(H.method,H,this);return }this.group_names.sort(_alpha_sort_func);var M= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("searchw");var G= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("searchwloading");for(var J=0;J<this.group_names.length;J++){var D=document.createElement("option"); _proxy_jslib_assign('', D, 'value', '=', ( _proxy_jslib_handle(this.group_names_to_nsids, ( _proxy_jslib_handle(this.group_names, (J), 0, 0)), 0, 0)));D.appendChild(document.createTextNode( _proxy_jslib_handle(this.group_names, (J), 0, 0)));M.appendChild(D)}G.text="-- "+F.output.get("photo_select_a_group")+" --";this.group_names_to_nsids=[];this.group_names=[]}};F.API.callMethod("flickr.groups.pools.getGroups",{},A)},updateCCBoxes:function() {var A= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("ccsearch").checked; _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("cccommercial").disabled=!A; _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("ccderivs").disabled=!A},updateMinusBox:function() {var A= _proxy_jslib_handle( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("qbox"), 'value', '', 0, 0); _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("minusbox").disabled=!A},changeWho:function(A) {var E= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("searchw");var C= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("searchscopebuddyicon");var D=E? _proxy_jslib_handle( _proxy_jslib_handle(E.options, (E.selectedIndex), 0, 0), 'value', '', 0, 0):"all";if(D=="load"){if(!A){this.loadContacts()}D="all"}C.alt="";var B= _proxy_jslib_handle(this.buddyicons, (D), 0, 0);if(B){C.onload=function() {this.style.display="inline"}; _proxy_jslib_assign('', C, 'src', '=', (B))}else{C.style.display="none"}C.onmouseover=function() {};C.onmouseout=function() {}}}));