var timeout=20;var closetimer=null;var ddItem=null;var dateMonth=new Date().getMonth()+1;if(dateMonth>=12||dateMonth<=2){var sepColor1='#2a8ccd';var sepColor2='#0b65a3';}else if(dateMonth>=3&&dateMonth<=5){var sepColor1='#a2546e';var sepColor2='#753146';}else if(dateMonth>=6&&dateMonth<=8){var sepColor1='#52a452';var sepColor2='#2e7030';}else if(dateMonth>=9&&dateMonth<=11){var sepColor1='#cd6b2b';var sepColor2='#a2460a';} var ddList=new Array(6);var ddListNumbers=[8,5,3,4,2,9];var ddAbout=[[['about us home','/AboutUs/Home'],['shepherds','/AboutUs/Shepherds'],['staff','/AboutUs/Staff'],['ministries','/AboutUs/Ministries'],['missions','/AboutUs/Missions'],['bku','/AboutUs/BKU'],['contact us','/AboutUs/ContactUs'],['biographies','/AboutUs/Biographies']],'#'];var ddMembers=[[['calendar','/Members/Calendar/'],['photo gallery','/Members/PhotoGallery'],['prayer concerns','/Members/PrayerConcerns'],['announcements','/Members/Announcements'],['assembly servants','/Members/AssemblyServants']],'#'];var ddEducation=[[['adult','/Education/Adult'],['youth','/Education/Youth'],['children','/Education/Children']],'#'];var ddYouth=[[['youth home','/Youth'],['calendar','/Youth/Calendar'],['ministry teams','/Youth/MinistryTeams'],['jeremy\'s bio','/Youth/JeremysBio']],'#'];var ddHispanic=[[['hispanic home','/Hispanic'],['alejandro\'s bio','/Hispanic/AlejandrosBio']],'#'];var ddPreschool=[[['preschool home','/Preschool/Home'],['goals and objectives','/Preschool/Goals'],['registration','/Preschool/Registration'],['tuition','/Preschool/Tuition'],['financial assistance','/Preschool/FinancialAssistance'],['about the school day','/Preschool/About'],['child\'s needs','/Preschool/ChildsNeeds'],['carpools and dismissal','/Preschool/Dismissal'],['health regulations','/Preschool/HealthRegulations']],'#'];for(var i=0;i<6;i++){ddList[i]=new Array(ddListNumbers[i]);switch(i){case 0:ddList[i]=ddAbout;break;case 1:ddList[i]=ddMembers;break;case 2:ddList[i]=ddEducation;break;case 3:ddList[i]=ddYouth;break;case 4:ddList[i]=ddHispanic;break;case 5:ddList[i]=ddPreschool;break;}} function initNav(){var navigation=document.getElementById("navigation");var i=0;while(navbtns=getElementsByClassName("nav-btn",navigation)){if(navbtns[i]){if(navbtns[i].className.indexOf('cur')==-1||navbtns[i].className.indexOf('non-dd')!=-1){addListener(navbtns[i],"mouseover",function(e){var etar=(e.target)?e.target:window.event.srcElement;modNavSep(etar,1);if(etar.className.indexOf('nav-hover')==-1)etar.className+=' nav-hover';},false);addListener(navbtns[i],"mouseout",function(e){var etar=(e.target)?e.target:window.event.srcElement;modNavSep(etar,0);if(etar.className.indexOf('nav-hover')!=-1)etar.className=etar.className.substring(0,etar.className.indexOf('nav-hover'))+etar.className.substring(etar.className.indexOf('nav-hover')+9);},false);}else{addListener(navbtns[i],"mouseover",function(e){var etar=(e.target)?e.target:window.event.srcElement;if(etar.className.indexOf('left')==-1){if(etar.className.indexOf('nav-hover')==-1&&etar.className.indexOf('right')==-1)etar.className+=' nav-hover';else if(etar.className.indexOf('nav-hover')==-1&&etar.className.indexOf('right')!=-1)etar.className+=' nav-hover-right';}},false);}}else break;i++;} i=0;while(navdds=getElementsByClassName("nav-dropdown",navigation)){if(navdds[i]){addListener(navdds[i],"mouseover",function(e){var etar=(e.target)?e.target:window.event.srcElement;navDropDown(etar);},false);addListener(navdds[i],"mouseout",function(e){var etar=(e.target)?e.target:window.event.srcElement;ddCloseTime();},false);}else break;i++;}} function findPos(obj){var curleft=curtop=0;if(obj.offsetParent){do{curleft+=obj.offsetLeft;curtop+=obj.offsetTop;}while(obj=obj.offsetParent);return{"X":curleft,"Y":curtop};}} addListener(window,'load',initNav,false);function modNavSep(e,switchDisplay){if(e.className.indexOf('nav-dropdown')==-1&&switchDisplay==1){e.className+=' hover';}else if(e.className.indexOf('nav-dropdown')==-1&&switchDisplay==0){e.className=e.className.substring(0,e.className.indexOf(' hover'))+e.className.substring(e.className.indexOf(' hover')+6);} if(e.nextSibling){if(e.nextSibling.className){if(e.nextSibling.className.indexOf('nav-sep')!=-1&&e.nextSibling!=undefined&&switchDisplay==1){if(e.nextSibling.nextSibling.nextSibling&&e.nextSibling.nextSibling.nextSibling.className&&e.nextSibling.nextSibling.nextSibling.className.indexOf('nav-sep')!=-1&&e.nextSibling.nextSibling.nextSibling.style.color!=sepColor2)e.nextSibling.nextSibling.nextSibling.style.color=sepColor2;e.nextSibling.style.color=sepColor1;}else if(e.nextSibling.className.indexOf('nav-sep')!=-1&&e.nextSibling!=undefined&&switchDisplay==0){if(e.nextSibling.nextSibling.className&&e.nextSibling.nextSibling.className.indexOf('nav-dropdown')==-1&&e.nextSibling.nextSibling.className.indexOf('hover')==-1){e.nextSibling.style.color=sepColor2;}else if(e.nextSibling.nextSibling.className.indexOf('nav-dropdown')!=-1){e.nextSibling.style.color=sepColor2;}}}} if(e.previousSibling){if(e.previousSibling.className){if(e.previousSibling.className.indexOf('nav-sep')!=-1&&e.previousSibling!=undefined&&switchDisplay==1){if(e.previousSibling.previousSibling.previousSibling&&e.previousSibling.previousSibling.previousSibling.className&&e.previousSibling.previousSibling.previousSibling.className.indexOf('nav-sep')!=-1&&e.previousSibling.previousSibling.previousSibling.style.color!=sepColor2)e.previousSibling.previousSibling.previousSibling.style.color=sepColor2;e.previousSibling.style.color=sepColor1;}else if(e.previousSibling.className.indexOf('nav-sep')!=-1&&e.previousSibling!=undefined&&switchDisplay==0){if(e.previousSibling.previousSibling.className&&e.previousSibling.previousSibling.className.indexOf('nav-dropdown')==-1&&e.previousSibling.previousSibling.className.indexOf('hover')==-1){e.previousSibling.style.color=sepColor2;}else if(e.previousSibling.previousSibling.className.indexOf('nav-dropdown')!=-1){e.previousSibling.style.color=sepColor2;}}}}} function navDropDown(e){if(e.tagName=="a"){e=e.parentNode;} modNavSep(e,1);e.style.color='';ddCancelCloseTime();if(e.className.indexOf('nav-hover')==-1)e.className+=' nav-hover';var ddTitle=e.id.substring(3);var ddNum=0;if(ddTitle=='Members')ddNum=1;if(ddTitle=='Education')ddNum=2;if(ddTitle=='Youth')ddNum=3;if(ddTitle=='Hispanic')ddNum=4;if(ddTitle=='Preschool')ddNum=5;if(ddItem){if(ddItem.id!='dd'+ddTitle){if(document.getElementById(ddItem.id))e.parentNode.removeChild(ddItem);var ddCurItem=document.getElementById('nav'+ddItem.id.substring(2));if(ddCurItem.firstChild.tagName=="a"){var nvBtn=ddCurItem.firstChild.firstChild.nodeValue;clearElement(ddCurItem);ddCurItem.appendChild(document.createTextNode(nvBtn));} if(ddCurItem.className.indexOf('cur')!=-1){ddCurItem.style.color='';var nExtra='nav-cur';if(ddCurItem.className.indexOf('right')!=-1){nExtra='nav-right nav-cur-right';}}else{var nExtra='';if(ddCurItem.className.indexOf('right')!=-1){nExtra='nav-right';}} ddCurItem.className='nav-btn '+nExtra+' nav-dropdown';ddItem=null;}} if(!document.getElementById('dd'+ddTitle)&&ddItem==null){var startPos=findPos(e);ddItem=document.createElement('div');ddItem.style.position='absolute';if(navigator.appName=="Microsoft Internet Explorer"){ddItem.style.pixelLeft=startPos['X'];ddItem.style.pixelTop=34+startPos['Y'];}else{ddItem.style.left=startPos['X']+'px';ddItem.style.top=(34+startPos['Y'])+'px';} ddItem.className='dd-menu';ddItem.id='dd'+ddTitle;ddItem.style.width='';addListener(ddItem,"mouseover",function(e){var etar=(e.target)?e.target:window.event.srcElement;ddCancelCloseTime();var navBtn=document.getElementById('nav'+ddTitle);if(navBtn.className.indexOf('cur')!=-1){navBtn.style.color='#ffffff';navBtn.style.fontWeight='normal';var nExtra='nav-cur nav-ddhover';if(navBtn.className.indexOf('right')!=-1){nExtra='nav-right nav-cur-right nav-hover-right';}}else{var nExtra='nav-ddhover';if(navBtn.className.indexOf('right')!=-1){nExtra='nav-right nav-hover-right';}} navBtn.className='nav-btn '+nExtra+' nav-dropdown';if(navBtn.nextSibling.className){if(navBtn.nextSibling.className.indexOf('nav-sep')!=-1&&navBtn.nextSibling!=undefined)navBtn.nextSibling.style.color=sepColor1;} if(navBtn.previousSibling.className){if(navBtn.previousSibling.className.indexOf('nav-sep')!=-1&&navBtn.previousSibling!=undefined)navBtn.previousSibling.style.color=sepColor1;}},false);addListener(ddItem,"mouseout",function(e){var etar=(e.target)?e.target:window.event.srcElement;ddCloseTime();},false);var ddMenuItem=new Array();var ddMenuItemAnchor=new Array();if(ddList[ddNum][1]!='#'){var navT=e.firstChild.nodeValue;clearElement(e);var navTAnchor=document.createElement('a');navTAnchor.href=ddList[ddNum][1];navTAnchor.appendChild(document.createTextNode(navT));e.appendChild(navTAnchor);} for(var i=0;i