function printNavHeader(page){
	if(page=="homebuyer")
	{
		document.write("<a href=\"/homebuyer/\" title=\"Back to 'For homeowners, buyers and apartment renters' landing page\"><img alt=\"Section title: For homeowners, buyers and apartment renters.\" id=\"navHeader\" src=\"/images/homebuyer_nav_header.gif\" onmouseover=\"this.src='/images/homebuyer_nav_header_over.gif';\" onmouseout=\"this.src='/images/homebuyer_nav_header.gif';\"></a>");
		return;
	}
	if(page=="business")
	{
		document.write("<a href=\"/business/\" title=\"Back to 'For businesses and entrepeneurs' landing page\"><img alt=\"Section title: For businesses and entrepeneurs.\" id=\"navHeader\" src=\"/images/business_nav_header.gif\" onmouseover=\"this.src='/images/business_nav_header_over.gif';\" onmouseout=\"this.src='/images/business_nav_header.gif';\"></a>");
		return;
	}
	if(page=="investor")
	{
		document.write("<a href=\"/investors/\" title=\"Back to 'For investors' landing page\"><img alt=\"Section title: For investors.\" id=\"navHeader\" src=\"/images/investor_nav_header.gif\" onmouseover=\"this.src='/images/investor_nav_header_over.gif';\" onmouseout=\"this.src='/images/investor_nav_header.gif';\"></a>");
		return;
	}
	if(page=="lender")
	{
		document.write("<a href=\"/lender/\" title=\"Back to 'For lender partners' landing page\"><img alt=\"Section title: For lender partners.\" id=\"navHeader\" src=\"/images/lender_nav_header.gif\" onmouseover=\"this.src='/images/lender_nav_header_over.gif';\" onmouseout=\"this.src='/images/lender_nav_header.gif';\"></a>");
		return;
	}
	if(page=="multifam")
	{
		document.write("<a href=\"/multifam/\" title=\"Back to 'For multifamily developers and property managers' landing page\"><img alt=\"Section title: For multifamily developers and property managers.\" id=\"navHeader\" src=\"/images/multifam_nav_header.gif\" onmouseover=\"this.src='/images/multifam_nav_header_over.gif';\" onmouseout=\"this.src='/images/multifam_nav_header.gif';\"></a>");
		return;
	}
	if(page=="about")
	{
		document.write("<a href=\"/about/\" title=\"Back to 'About CHFA' landing page\"><img alt=\"Section title: About CHFA.\" id=\"navHeader\" src=\"/images/about_nav_header.gif\" onmouseover=\"this.src='/images/about_nav_header_over.gif';\" onmouseout=\"this.src='/images/about_nav_header.gif';\"></a>");
		return;
	}
	if(page=="news")
	{
		document.write("<a href=\"/news/\" title=\"Back to 'CHFA News' landing page\"><img alt=\"Section title: CHFA News.\" id=\"navHeader\" src=\"/images/news_nav_header.gif\" onmouseover=\"this.src='/images/news_nav_header_over.gif';\" onmouseout=\"this.src='/images/news_nav_header.gif';\"></a>");
		return;
	}
	if(page=="careers")
	{
		document.write("<a href=\"/careers/\" title=\"Back to 'CHFA Careers' landing page\"><img alt=\"Section title: CHFA Careers.\" id=\"navHeader\" src=\"/images/career_nav_header.gif\" onmouseover=\"this.src='/images/career_nav_header_over.gif';\" onmouseout=\"this.src='/images/career_nav_header.gif';\"></a>");
		return;
	}

}


var cciMapImageUrlBase="/images/";

function cciGetElement(aId){
	var rv = (document.getElementById) ? document.getElementById(aId) : document.all[aId];
	return rv;
}

function cciSwapImage(aId, image){
	var who = cciGetElement(aId);
	who.src=image;
}

function cciRestoreMap(){
	cciSwapImage('statemap', cciMapImageUrlBase+'still.gif');
}

function cciChangeMap(county){
	cciSwapImage('statemap', cciMapImageUrlBase+county+" copy.gif");
}

function cciMapPreload(){
	//lets preload the images
	if (document.images){
		var tmp=new Array();
		var i=1;
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'adams copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'alamosa copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'arapahoe copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'archuleta copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'baca copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'bent copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'boulder copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'chaffee copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'cheyenne copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'clearcreek copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'conejos copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'costilla copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'crowley copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'custer copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'delta copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'denver copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'dolores copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'douglas copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'eagle copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'elbert copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'elpaso copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'fremont copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'garfield copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'gilpin copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'grand copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'gunnison copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'hinsdale copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'huerfano copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'jackson copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'jefferson copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'kiowa copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'kitcarson copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'lake copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'laplata copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'larimer copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'lasanimas copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'lincoln copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'logan copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'mesa copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'mineral copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'moffat copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'montezuma copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'montrose copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'morgan copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'otero copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'ouray copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'park copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'phillips copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'pitkin copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'prowers copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'pueblo copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'rioblanco copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'riogrande copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'routt copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'saguache copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'sanjuan copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'sanmiguel copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'sedgwick copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'still.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'summit copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'teller copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'washington copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'weld copy.gif';
		tmp[i]=new Image();tmp[i++].src=cciMapImageUrlBase+'yuma copy.gif';
	}
}

