function SetupContact(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 to open new windows
function openWin(URL, Width, Height)
{

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

}

//Function for Dynamic Pop Ups
function DynaPop(level,szImgSource,szDescription,nCopyrightNum)
{

	popSource = szImgSource;
	popDescription = szDescription;
	popCopyright = nCopyrightNum;

	if (popDescription == "description")
	    popDescription = "";
	
	width=600;
	height=525;

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

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

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



//Copyright Array
aClickMessages = new Array();
aClickMessages[0] = 'This image is copyright of the Heritage Communtity Foundation';
aClickMessages[1] = 'This image is copyright of UN.org';
aClickMessages[2] = 'This image is copyright of UNESCO';
aClickMessages[3] = 'This image is copyright of union-network.org';
aClickMessages[4] = 'This image is copyright of the UN - UNMik';
aClickMessages[5] = 'This image is copyright of the NATO.int';
aClickMessages[6] = 'This image is copyright of Hopeandhomes.org';
aClickMessages[7] = 'This image is copyright of advocacynet.org';
aClickMessages[8] = 'This image is copyright of friends-partners.org';
aClickMessages[9] = 'This image is copyright of balkantimes.com';
aClickMessages[10] = 'This image is copyright of hrcberkeley.org';
aClickMessages[11] = 'This image is copyright of amnesty.org';
aClickMessages[12] = 'This image is copyright of muslimhands.org';
aClickMessages[13] = 'This image is copyright of AFP/Ermal Meta';
aClickMessages[14] = 'Unknown';
aClickMessages[15] = 'Photograph by Davor Babic';

//Image Protection Fxn's
function over(n)
{
	overImage=n;
	
}

