function ContactUs(website_description)
{
	document.write("<a href=\"mailto:info@heritagecommunityfdn.org?Subject="+website_description+" Web Site\" title=\"Contact us by Email\">Contact us by Email</a>");
}

function moveObject(value)
{
	/*alert("this is a test");*/
	var object=document.getElementById('object1');
	/*if (document.object1.paper){*/
	object.style.position='absolute';
	object.style.top=232 + value + 'px';
	object.style.right=280 + 'px';
}

//Function to open new windows
function openWin(URL, Width, Height)
{

aWindow=window.open(URL,"PopUp","width="+Width+",height="+Height+",resizable=yes,scrollbars=yes,left=100,top=60");
    
    aWindow.resizeTo(Width, Height);
    
    aWindow.focus();
    if(aWindow.opener == null)
    {
        aWindow.opener = window;
        aWindow.opener.name = "opener";
    }

}

//Function to pop up windows for images.
function ImgPop(szTitle,szDescription,nCopyright,szImgSource,level)
{
    popSource = szImgSource;
    popDescription = szDescription;
    popCopyright = nCopyright;
	popUrl = "";
	popTitle = szTitle;

    if (popDescription == "description")
        popDescription = "";
	if (popTitle =="title")
		popTitle="";
	if (popCopyright =="copy")
		popCopyright = "&copy; Copyright of Terry Garvin";
    
    width=650;
    height=750;

    //If resolution is 640x480
    if(screen.width< 800)
        height=350;
    //If resolution is 800x600
    else if(screen.width< 1024)
        height=500;

    for(i=1; i<=level; i++)
	{
		popUrl = popUrl + "../";
	}
	popUrl = popUrl + "inc/popup.html";
	openWin(popUrl,width,height);
}
