/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 10th 2010 4:43:00 AM PST                            */
/*      Machine:  10.16.139.101                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/5uzqwonklrc4c888.pkg.js h:cupxb6sr                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/5uzqwonklrc4c888.pkg.js                                   */

if (window.CavalryLogger) { CavalryLogger.start_js(["js\/5uzqwonklrc4c888.pkg.js"]); }

function event_show_remove_dialog(eid,_L1){new Dialog().setTitle(_tx("\uc774\ubca4\ud2b8 \uc0ad\uc81c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?")).setBody(_tx("\uc815\ub9d0\ub85c {event-name} \ucc38\uc5ec\ub97c \ucde8\uc18c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",{'event-name':htmlize(_L1)})).setButtons([Dialog.newButton('remove',_tx("\uc0ad\uc81c"),'',function(){event_remove_user(eid);}),Dialog.CANCEL]).show();return false;}function event_show_export_dialog(eid){var _L1=new AsyncRequest().setMethod('POST').setURI('/ajax/events/export.php').setData({'eid':eid});var _L2=new Dialog().setAsync(_L1).show();return false;}function export_dialog_submit(obj,eid){var _L2=$('download_export').checked;Dialog.getCurrent().hide();if(_L2){var _L3='/ical/event.php?eid='+eid;goURI(_L3);}else{var _L4=serialize_form(obj);new AsyncRequest().setMethod('POST').setURI('/ajax/events/export.php').setData(_L4).send();}}function event_remove_user(eid){new AsyncRequest().setURI('/ajax/event_actions_ajax.php').setData({'eid':eid,'remove':1}).setHandler(function(_L1){if(_L1.getPayload()==='1'){goURI('/event.php?eid='+eid);}else goURI('/events.php');}).send();}function confirm_event_join(eid){new AsyncRequest().setURI('/ajax/event_actions_ajax.php').setData({'eid':eid,'join':1}).setHandler(function(_L1){goURI('/event.php?eid='+eid);}).send();}function save_event_map_pref(_L0){new AsyncRequest().setURI('/ajax/event_map_pref.php').setData({'map_id':_L0}).send();}function event_profile_rsvp(eid,_L1){new AsyncRequest().setURI('/ajax/event_actions_ajax.php').setData({'eid':eid,'rsvp':_L1,'inline':true}).setHandler(function(_L2){var _L3=_L2.getPayload();var _L1=ge('event_rsvp_status');var _L4=ge('event_profile_guests');var _L5=ge('event_profile_guestlist');var _L6=ge('event_profile_wall');var _L7=ge('event_profile_actions');if(_L1)DOM.replace(_L1,HTML(_L3['event_rsvp_status']));if(_L4)DOM.replace(_L4,HTML(_L3['event_profile_guests']));if(_L5)DOM.replace(_L5,HTML(_L3['event_profile_guestlist']));if(_L6)DOM.replace(_L6,HTML(_L3['event_profile_wall']));if(_L7)DOM.replace(_L7,HTML(_L3['event_profile_actions']));}).send();}
function change_network(_L0,_L1){if(_L0=='other'){hide('search_within');var _L2=$('n_selector').getElementsByTagName('input')[0].typeahead;if(_L2)_L2.clear();$('n_selector').style.display='block';$('sq').focus();}else{$('search').n.value=_L0;$('search').init.value=ge('filter_init')?$('filter_init').value:'';$('search').sf.value=ge('filter_sf')?$('filter_sf').value:'';if(_L1)if($('search').q.value!='')$('search').submit();}}function toggle_filterset(set){if($(set).className=='collapsed'){CSS.setClass($(set),'');}else CSS.setClass($(set),'collapsed');}function filter_toggle(){if(filter_are_active()){filter_clear();show('web_search_results');}else{filter_reveal();hide('web_search_results');}}function filter_reveal(){CSS.setClass($('search_results'),'search_results clearfix filters_active');hide('show_filters');show('hide_filters');}function filter_clear(){CSS.setClass($('search_results'),'search_results clearfix');hide('hide_filters');show('show_filters');}function filter_are_active(){return $('search_results').className.indexOf('filters_active')!==-1;}function age_check(){val1=parseInt($('y1').value);val2=parseInt($('y2').value);if(val1>val2){$('y2').value=ge('y1').value;return;}if(Math.abs(val1-val2)>7){$('y2').value=val1+7;$('max_age_range_warning').style.display='block';}}function age_update_endage(){val1=parseInt($('y1').value);age2=ge('y2');while(i=age2.childNodes.length)DOM.remove(age2.childNodes[i-1]);if(!val1){option=document.createElement('option');option.appendChild(document.createTextNode(''));age2.appendChild(option);val1=18;}for(i=val1;i<=97;i++){option=document.createElement('option');option.value=i;option.appendChild(document.createTextNode(i));age2.appendChild(option);}}function age_submit(){val1=parseInt($('y1').value);val2=parseInt($('y2').value);if(!val2&&val1)$('y2').value=val1;if(!val1&&val2)$('y1').value=val2;}

if (window.Bootloader) { Bootloader.done(["js\/5uzqwonklrc4c888.pkg.js"]); }