			//FUNCTIONS FOR LINK-POPUP2
			function ClickLink2(Link, LinkTo, TargetNew){
				var divPopup = document.getElementById('PopupDiv');
				var Target = '';
				if (TargetNew)
					Target = ' target="_blank" ';
				divPopup.innerHTML= 'By accessing this link you will be leaving Pennant Management Company\'s Website and entering a Website hosted by another party. Please be advised that you will no longer be under the protection of the privacy and security policies of Pennant Management Company\'s Website. We encourage you to locate and evaluate the privacy and security policies of the site you are entering.'
						+  '<br><br>'
						+  '<a href="' + LinkTo + '" ' + Target + ' onmouseup="ClosePopup()">Continue</a>'
						+  '&nbsp;&nbsp;&nbsp;'
						+  '<a href="javascript:ClosePopup()">Cancel</a>';
				divPopup.style.top = GetTop(Link) + 'px';

				//divPopup.style.left = GetLeft(Link) + 'px';
				divPopup.style.left = 200;
	
				//make the popupdiv visible
				divPopup.className = 'PopupDiv';
				
				//check to see if pop-up is off the page
				if (GetTop(Link) + GetHeight(divPopup) - ScrollTop() > BrowserHeight() )
				{
					divPopup.style.top = BrowserHeight() - GetHeight(divPopup) + ScrollTop() + 'px';
				}
				
			}

			//FUNCTION FOR GIPS DISCLAIMER
			function click_disclaimer(Link, LinkTo, TargetNew){
				var divPopup = document.getElementById('PopupDiv');
				var Target = '';
				if (TargetNew)
					Target = ' target="_blank" ';
				divPopup.innerHTML= 'Pennant Management claims compliance with GIPS&reg; standards. Our firm-wide verification letter is posted on this page. More information on our policies can be received by contacting Pennant Management.'
						+  '<br><br>'
						+  '<a href="' + LinkTo + '" ' + Target + ' onmouseup="ClosePopup()">Continue</a>'
						+  '&nbsp;&nbsp;&nbsp;'
						+  '<a href="javascript:ClosePopup()">Cancel</a>';
				divPopup.style.top = GetTop(Link) + 'px';

				//divPopup.style.left = GetLeft(Link) + 'px';
				divPopup.style.left = 200;
	
				//make the popupdiv visible
				divPopup.className = 'PopupDiv';
				
				//check to see if pop-up is off the page
				if (GetTop(Link) + GetHeight(divPopup) - ScrollTop() > BrowserHeight() )
				{
					divPopup.style.top = BrowserHeight() - GetHeight(divPopup) + ScrollTop() + 'px';
				}
				
			}
			
			
			
			
			//FUNCTION TO CLOSE THE POPUP-DIV WHEN FINISHED WITH IT
		
			function ClosePopup(){
				var divPopup = document.getElementById('PopupDiv');
				divPopup.className = 'PopupDiv_Hidden';
			}

			// GET ELEMENT'S LEFT
			function GetLeft(elm)
			{
			    var x = 0;
			    x = elm.offsetLeft;
			    elm = elm.offsetParent;
			    while(elm != null)
			     {
			        x = parseInt(x) + parseInt(elm.offsetLeft);
			        elm = elm.offsetParent;
			     }
			    return x;
			}
			// GET ELEMENT'S TOP
			function GetTop(elm)
			{
			    var y = 0;
			    y = elm.offsetTop;
			    elm = elm.offsetParent;
			    while(elm != null)
			     {
			        y = parseInt(y) + parseInt(elm.offsetTop);
			        elm = elm.offsetParent;
			     }
			    return y;
			}
			// GET ELEMENT'S HEIGHT
			function GetHeight(elm)
			{
			    var y = 0;
			    if (elm) { if (elm.offsetHeight) { y = elm.offsetHeight; } }
			    return y;
			}
			// GET ELEMENT'S WIDTH
			function GetWidth(elm)
			{
			    var x = 0;
			    if (elm) { if (elm.offsetHeight) { x = elm.offsetWidth; } }
			    return x;
			}
// GET USER'S SCROLL POSITION OFFSET
function ScrollTop(){
    if (document.body.scrollTop){
        return document.body.scrollTop;
    } else if (window.pageYOffset){
        return window.pageYOffset;
    } else {
        return 0;
    }
}
// GET BROWSER'S WIDTH
function BrowserWidth() {
	var w = 0;
	if(!window.innerWidth)
	{	if(!(document.documentElement.clientWidth == 0))
		    {w = document.documentElement.clientWidth-0;}
		else 
		    {w = document.body.clientWidth-0; }
	}
	else {w = window.innerWidth-0;}
	return w;
}
// GET BROWSER'S HEIGHT
function BrowserHeight() {
	var h = 0;
	if(!window.innerHeight)
	{	if(!(document.documentElement.clientHeight == 0))
		    {h = document.documentElement.clientHeight;}
		else 
		    {h = document.body.clientHeight; }
	}
	else {h = window.innerHeight;}
	return h;
}


