function SetupContact(website_description, counter)
{
	if (counter == 1)
	{
		document.write("<a href=\"mailto:info@heritagecommunityfdn.org?Subject="+website_description+" Web Site\" title=\"Contact us by Email\">Contact us by Email</a>");
	}
	else if (counter == 2)
	{
		document.write("<a href=\"mailto:info@heritagecommunityfdn.org?Subject="+website_description+" Web Site\" title=\"Contactez-nous &agrave;\">Contactez-nous &agrave;</a>");
	}
}

//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(zeTitle, zeDescription, zeCopyright, zeSource, level)
{
    popTitle = zeTitle;
	popDescription = zeDescription;
    popCopyright = zeCopyright;
    popSource = zeSource;

    if (popDescription == "description")
        popDescription = "";
    
    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;

    if(level==0)
        openWin("popup_e.html",width,height);
    
    else if(level==1)
        openWin("../popup_e.html",width,height);

    else if(level==2)
        openWin("../../popup_e.html",width,height);
}

