/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 9th 2010 6:39:21 PM PST                             */
/*      Machine:  10.16.139.108                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/8s2bb6m1cx8osggw.pkg.js h:ej8hiyeq                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/8s2bb6m1cx8osggw.pkg.js                                   */

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

function JobsController(){}copy_properties(JobsController.prototype,{toggleDepartment:function(_L0){toggle(_L0.childNodes[1]);CSS.toggleClass(_L0,'department_open');CSS.toggleClass(_L0,'department_closed');return false;},openReq:function(_L0,_L1,_L2){this.clearAllReqSelections();CSS.addClass(_L0.parentNode,'UICareersPage_SelectedRequisition');var _L3=DOM.find($('content'),'div.right_content');_L3.addClass('req_visible');this.displayRequisition(_L1,_L2);return false;},hideReq:function(_L0){var _L1=DOM.find($('content'),'div.right_content');_L1.removeClass('req_visible');this.displayRequisition(_L0,-1);this.clearAllReqSelections();},clearAllReqSelections:function(){var ul=DOM.find($('content'),'ul.careers_list');var _L1=ul.childNodes;for(var i=0;i<_L1.length;i++)CSS.removeClass(_L1[i],'UICareersPage_SelectedRequisition');},displayRequisition:function(_L0,id){var uri='/careers/requisitions_endpoint.php?dept='+_L0+'&req_id='+id;new AsyncRequest().setMethod('GET').setReadOnly(true).setURI(uri).send();},displayPosition:function(id){var _L1=new AsyncRequest().setMethod('GET').setReadOnly(true).setURI('/careers/positions_endpoint.php?id='+id);new Dialog().setAsync(_L1).setContentWidth(600).setModal().setHandler(function(){var uri=new URI(window.location);uri.setPath('/careers/apply.php');uri.setQueryData({id:id});goURI(uri.toString());}).show();},displayVideo:function(id){var _L1=new AsyncRequest().setMethod('GET').setReadOnly(true).setURI('/careers/video_endpoint.php?id='+id).send();}});
function TimeEditor(){this.hourEditor=render_select({1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,10:10,11:11,0:12});this.minEditor=render_select({0:'00',15:'15',30:'30',45:'45'});this.amPmEditor=render_select({0:'AM',1:'PM'});this.container=$N('div',{className:'time_editor'},[this.hourEditor,this.minEditor,this.amPmEditor]);this.date=new Date();}copy_properties(TimeEditor,{AM:0,PM:1});copy_properties(TimeEditor.prototype,{setDate:function(_L0){if(!(_L0 instanceof Date))throw 'Must pass in object of type Date';this.date=_L0;this.amPmEditor.value=(this.date.getHours()<12)?TimeEditor.AM:TimeEditor.PM;this.hourEditor.value=this.date.getHours()%12;if(this.date.getMinutes()%15!=0)this.date.setMinutes(parseInt(this.date.getMinutes()/15)*15);this.minEditor.value=this.date.getMinutes();this.date.setSeconds(0);this.date.setMilliseconds(0);},getHours:function(){switch(parseInt(this.amPmEditor.value)){case TimeEditor.AM:return parseInt(this.hourEditor.value);case TimeEditor.PM:return 12+parseInt(this.hourEditor.value);default:throw 'Invalid AM/PM value.';}},getDate:function(){this.date.setHours(this.getHours());this.date.setMinutes(parseInt(this.minEditor.value));return this.date;},getTime:function(){return this.date.getTime();},getUnixTime:function(){return parseInt(this.date.getTime()/1000);},getNode:function(){return this.container;}});

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