
window.addEvent('domready', function()
{
  // Add menu events
  $$(".homeNav ul li").each(function(listItem)
  {
   var comm = document.getElementById("communityItem");
   var subMenu = document.getElementById("dropDown");
     
     comm.addEvent('mouseenter', function()
     {
        showMenu(subMenu);
     });

     comm.addEvent('mouseleave', function()
     {
        killMenu(subMenu);
     });
     
     subMenu.addEvent('mouseenter', function()
     {
        showMenu(subMenu);
     });

     subMenu.addEvent('mouseleave', function()
     {
        killMenu(subMenu);
     });
  });
});


function showMenu(subMenu)
{
   if (subMenu)
   {
      subMenu.style.visibility = 'visible'; 
   }
}

function killMenu(subMenu)
{
   if (subMenu)
   {
      subMenu.style.visibility = 'hidden'; 
   }
}



/* -----------------------------------------------
   Floating layer - v.1
   (c) 2006 www.haan.net
   contact: jeroen@haan.net
   You may use this script but please leave the credits on top intact.
   Please inform us of any improvements made.
   When usefull we will add your credits.
   
   Modifications: Samuel Mooring
  ------------------------------------------------ */

x = 20;
y = 70;
currObj = null;
currImg = null;
function setVisible(obj, type)
{

	var o = null;
	
	if(type == 'image')
	{
		m = document.getElementById(obj + '-lnk');
		if(currImg && (currImg.id != obj))
		{
			currImg.style.display = 'none';
			om = document.getElementById(currImg.id + '-lnk');
			if(om)
			{
				om.style.fontWeight = 'normal';
			}
		}
		currImg = document.getElementById(obj);
		o = currImg;
		if(m)
		{
			m.style.fontWeight = 'bold';
		}
	}
	else 
	{
		if(currImg)
		{
			currImg.style.display = 'none';
			m = document.getElementById(currImg.id + '-lnk');
			if(m)
			{
				m.style.fontWeight = 'normal';
			}
			currImg = null;
			
		}
		if(currObj && (currObj.id != obj))
		{
			currObj.style.display = 'none';
		}
		currObj = document.getElementById(obj);
		o = currObj;
	}
	o.style.display = (o.style.display == 'block') ? 'none' : 'block';
	
}
function placeIt(obj)
{
	currObj = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	theLeft += x;
	theTop += y;
	currObj.style.left = theLeft + 'px' ;
	currObj.style.top = theTop + 'px' ;
	setTimeout("placeIt('" + obj + "')",500);
}

window.onscroll = (currObj) ? setTimeout("placeIt('" + currObj.id + "')",500) : window.onscroll;


function donateNow() {

	window.open('https://dnbweb1.blackbaud.com/OPXDONATE/AddDonor.asp?cguid=53766B43-FCF6-4173-828A-405D1DC410F5&sTarget=https%3A//dnbweb1.blackbaud.com/OPXDONATE/donate.asp?cguid=53766B43-FCF6-4173-828A-405D1DC410F5&dpid=21175&sid=D890D392-FBD3-4B38-972B-226DA97D3471','_blank','scrollbar=yes') ;

}

