<!--
// scripts you call below are being run within body onload.

// *** Web Site Functions *** \\\
  function mOvr(src,style)
  {
    var element;
    element = document.getElementById(src);
    element.className=style;
    element.style.cursor='hand';
  }

  function mOut(src,style,subId)
  {
    var element;
    if(subId != src)
    {
      element = document.getElementById(src);
      element.className=style;
    }
  }
  
  function noSpam(userName)
	{
		window.location="mailto:" + userName + "@digitalforces.com";
	}




var g_ActivePopup = null;

function hideReportsPopup()
{
	if(g_ActivePopup != null)
	{
		g_ActivePopup.className = "hidden";
		document.getElementById("popupDisable").className = "hidden";

		g_ActivePopup = null;
	}
}

function DisplayPopup(popupName)
{
	// Find the Popup Window
	g_ActivePopup = document.getElementById(popupName);
	if(g_ActivePopup)
	{
		// Get the dimensions of the client area of the browser
		var windowHeight = getWindowHeight();
		var windowWidth = getWindowWidth();

		// We need to take into account the current scroll position of the window
		var vScrollPos = getScrollTop();
		var hScrollPos = getScrollLeft();

		// Display the popup
		g_ActivePopup.className = "popupVisible";

		// Position the Active Popup in the middle of the client area of the browser		
		g_ActivePopup.style.top = (vScrollPos + ((windowHeight - g_ActivePopup.offsetHeight) / 2)) + "px";
		g_ActivePopup.style.left =  (hScrollPos + ((windowWidth - g_ActivePopup.offsetWidth) / 2)) + "px";

		// Display the disabling DIV
		document.getElementById("popupDisable").className = "popupDisable";	
		
		// Position the Disable Div
		PositionOverlays();
	}
}

function PositionOverlays()
{
	if (g_ActivePopup != null)
	{
		// Get the dimensions of the client area of the browser
		var windowHeight = getWindowHeight();
		var windowWidth = getWindowWidth();

		// We need to take into account the current scroll position of the window
		var vScrollPos = getScrollTop();
		var hScrollPos = getScrollLeft();

		if (g_ActivePopup != null)
		{
			// Position the disabling DIV so that it exactly covers
			// the current client area of the browser
			var disableDiv = document.getElementById("popupDisable");
			disableDiv.style.top = vScrollPos + "px";
			disableDiv.style.left = hScrollPos + "px";
			disableDiv.style.height = windowHeight + "px";
			disableDiv.style.width = windowWidth + "px";
		}	
	}
}

// Add the resize event
if (window.attachEvent)
{
	// IE
	window.attachEvent("onresize", PositionOverlays);
	window.attachEvent("onscroll", PositionOverlays);	
}
else if (window.addEventListener)
{
	// Firefox etc
	window.addEventListener("resize", PositionOverlays, false);
	window.addEventListener("scroll", PositionOverlays, false);	
}

function getScrollTop()
{
	var pos = 0;
	if(document.body && document.body.scrollTop)
		pos = parseInt(document.body.scrollTop, 10);
	if(pos == 0 && document.documentElement && document.documentElement.scrollTop)
		pos = parseInt(document.documentElement.scrollTop, 10);
	return pos;
}

function getScrollLeft()
{
	var pos = 0;
	if(document.body && document.body.scrollLeft)
		pos = parseInt(document.body.scrollLeft, 10);
	if(pos == 0 && document.documentElement && document.documentElement.scrollLeft)
		pos = parseInt(document.documentElement.scrollLeft, 10);
	return pos;
}

function getWindowHeight()
{
	if (window.innerHeight != window.undefined)
		return window.innerHeight;
		
	if (document.compatMode == 'CSS1Compat')
		return document.documentElement.clientHeight;
		
	if (document.body)
		return document.body.clientHeight;
		
	return window.undefined; 
}
function getWindowWidth()
{
	if (window.innerWidth != window.undefined)
		return window.innerWidth; 
		
	if (document.compatMode == 'CSS1Compat')
		return document.documentElement.clientWidth; 
		
	if (document.body)
		return document.body.clientWidth; 
		
	return window.undefined; 
}


// *** Web Site Functions *** \\\
// -->