
function hookStaffLinks(){var openCategory=null;staffLinks=document.getElementsByClassName('staffLink');staffCategories=document.getElementsByClassName('staff_category_header');for(var i=0;i<staffCategories.length;i++){staffCategories[i].onmousedown=function(){this.hideFocus=true;}
staffCategories[i].onclick=function(){objUL=this.parentNode.getElementsByTagName('ul')[0];if(objUL.style.display=="none"){if(openCategory!=null&&openCategory!=objUL){openCategory.parentNode.getElementsByTagName('a')[0].style.backgroundImage="url(/images/staff_arrow_flip-closed.gif)";new Effect.BlindUp(openCategory,{duration:0.7,afterFinish:function(t){document.getElementById('footer').style.bottom='-2px';}});openCategory=null;}
new Effect.Fade('staff_info_window',{duration:0.7});this.style.backgroundImage="url(/images/staff_arrow_flip-open.gif)";new Effect.BlindDown(objUL,{duration:0.7,afterFinish:function(t){document.getElementById('footer').style.bottom='0px';}});openCategory=objUL;}else{this.style.backgroundImage="url(/images/staff_arrow_flip-closed.gif)";new Effect.BlindUp(objUL,{duration:0.7,afterFinish:function(t){document.getElementById('footer').style.bottom='-1px';}});}
return false;}}
for(var i=0;i<staffLinks.length;i++){var selectedObject=null;staffLinks[i].onmousedown=function(){this.hideFocus=true;}
staffLinks[i].onclick=function(){if(this.parentNode.nodeName=="DIV"){liObject=this.parentNode.parentNode;}else{liObject=this.parentNode;}
if(selectedObject){selectedObject.className="";}
selectedObject=liObject;staff_id=this.id.replace("staffLink_","");new Ajax.Updater('staff_info_window','/lib/ajax.genStaffProfile.php?staffID='+staff_id,{method:'get',onComplete:function(t){topy=liObject.parentNode.offsetTop;intMenuHeight=$('staff_menu_surround').getHeight()-10;intWindowHeight=$('staff_info_window').getHeight();new Effect.Appear('staff_info_window',{duration:0.7});liObject.className="selected";}});return false;}}}
addDOMLoadEvent(hookStaffLinks);