function MM_swapImgRestore1() 
{ 
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages1()
{ 
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages1.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) 
{ 
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage1() 
{ 
	var i,j=0,x,a=MM_swapImage1.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function imageOnPage()
{
	var dir = window.location.href;
	var lastindex = dir.lastIndexOf('/')+1;
	dir = dir.substring(lastindex);
	switch(dir)
	{
		case 'news1.htm': document.getElementById('imgNewsletter').src= 'images/News/02NewslwttersOn.jpg';
			break;
		case 'news2.aspx': document.getElementById('imgPressRelease').src= 'images/News/03PressReleasesOn.jpg';
			break;
		case 'news3.htm': document.getElementById('imgDownload').src= 'images/News/04DownloadsOn.jpg';
			break;
		
		case 'donors1.htm': document.getElementById('imgDonorsList').src= 'images/Donors/02DonorsListOn.jpg';
			break;
		case 'facilityrental1.htm': document.getElementById('imgFloorPlans').src= 'images/FacilityRental/02FloorPlansOn.jpg';
			break;
		case 'about1.htm': document.getElementById('imgMission').src='images/About/02MissionHistoryOn.jpg';
			break;
		case 'about2.htm': document.getElementById('imgCommunity').src='images/About/03CommunityOn.jpg';
			break;
		case 'about3.htm': document.getElementById('imgTrustees').src='images/About/04trusteesOn.jpg';
			break;
		case  'about4.htm':	document.getElementById('imgSponsors').src='images/About/05SponsorsOn.jpg';
			break;
		case 'about5.htm': document.getElementById('imgFounding').src='images/About/06FoundingOn.jpg';
			break;
		case  'contribute1.htm': document.getElementById('imgGroups').src='images/Contribute/02ProgramsGroupsOff.jpg';
			break;
		case 'contribute2.htm':	document.getElementById('imgContribute').src='images/Contribute/03ContributeOff.jpg';
			break;
		case 'contribute3.htm':	document.getElementById('imgWays').src='images/Contribute/04WaysToGiveOff.jpg';
			break;
		case 'project1.htm': document.getElementById('imgArchitect').src='images/ProjectOverview/02ArchitectOn.jpg';
			break;
		case 'project2.htm': document.getElementById('imgConsultant').src='images/ProjectOverview/03ConsultantsOn.jpg';
			break;
		case 'project3.htm': document.getElementById('imgBuilding').src='images/ProjectOverview/04buildingTourOn.jpg';
			break;
		case 'project4.htm': document.getElementById('imgMasterPlan').src='images/ProjectOverview/05MasterPlanOn.jpg';
			break;
		case 'project5.htm': document.getElementById('imgDell').src='images/ProjectOverview/06DellOn.jpg';
			break;
		case 'project6.htm': document.getElementById('imgRollins').src='images/ProjectOverview/07RollinsOn.jpg';
			break;
		case 'project7.htm': document.getElementById('imgTerrace').src='images/ProjectOverview/08CityTerraceOn.jpg';
			break;
	};
		
}