	if (document.images) { 
	  img1on=new Image();
  	img1on.src="http://www.ccfound.org/images/nav_home_on.gif";
  	img2on=new Image();
  	img2on.src="http://www.ccfound.org/images/nav_about_on.gif";
  	img3on=new Image();
  	img3on.src="http://www.ccfound.org/images/nav_guide_on.gif";
  	img4on=new Image();
  	img4on.src="http://www.ccfound.org/images/nav_grants_on.gif";
  	img5on=new Image();
  	img5on.src="http://www.ccfound.org/images/nav_resources_on.gif";
  	img6on=new Image();
  	img6on.src="http://www.ccfound.org/images/subnavh_mission_on.gif";
  	img7on=new Image();
  	img7on.src="http://www.ccfound.org/images/subnavh_letter_on.gif";
  	img8on=new Image();
  	img8on.src="http://www.ccfound.org/images/subnavh_staff-cont_on.gif";
  	img9on=new Image();
  	img9on.src="http://www.ccfound.org/images/subnavh_search_on.gif";
  	img10aon=new Image();
  	img10aon.src="http://www.ccfound.org/images/subnava_grant-prog_on.gif";
		img10on=new Image();
  	img10on.src="http://www.ccfound.org/images/subnava_prog_on.gif";
  	img11on=new Image();
  	img11on.src="http://www.ccfound.org/images/subnava_board_on.gif";
  	img12on=new Image();
  	img12on.src="http://www.ccfound.org/images/subnava_staff_on.gif";
  	img13on=new Image();
  	img13on.src="http://www.ccfound.org/images/subnava_news_on.gif";
  	img14on=new Image();
  	img14on.src="http://www.ccfound.org/images/subnava_reports_on.gif";
		img15on=new Image();
  	img15on.src="http://www.ccfound.org/images/subnavg_areas_on.gif";
  	img16on=new Image();
  	img16on.src="http://www.ccfound.org/images/subnavg_types_on.gif";
  	img17on=new Image();
  	img17on.src="http://www.ccfound.org/images/subnavg_geo_on.gif";
  	img18on=new Image();
  	img18on.src="http://www.ccfound.org/images/subnavg_rest_on.gif";
  	img19on=new Image();
  	img19on.src="http://www.ccfound.org/images/subnavg_app_on.gif";
  	img20on=new Image();
  	img20on.src="http://www.ccfound.org/images/subnavg_review_on.gif";
		img21on=new Image();
  	img21on.src="http://www.ccfound.org/images/subnavgr_hserv_on.gif";
  	img22on=new Image();
  	img22on.src="http://www.ccfound.org/images/subnavgr_edu_on.gif";
  	img23on=new Image();
  	img23on.src="http://www.ccfound.org/images/subnavgr_health_on.gif";
  	img24on=new Image();
  	img24on.src="http://www.ccfound.org/images/subnavgr_public_on.gif";
  	img25on=new Image();
  	img25on.src="http://www.ccfound.org/images/subnavgr_arts_on.gif";
  	img26on=new Image();
  	img26on.src="http://www.ccfound.org/images/subnavgr_2000grnt_on.gif";
  	img27on=new Image();
  	img27on.src="http://www.ccfound.org/images/subnavgr_2001grnt_on.gif";
  	img28on=new Image();
  	img28on.src="http://www.ccfound.org/images/subnavgr_2002grnt_on.gif";
  	img29on=new Image();
  	img29on.src="http://www.ccfound.org/images/subnavgr_2003grnt_on.gif";
  	img30on=new Image();
  	img30on.src="http://www.ccfound.org/images/subnavgr_2004grnt_on.gif";
  	img31on=new Image();
  	img31on.src="http://www.ccfound.org/images/subnavgr_consv_on.gif";
  	img32on=new Image();
  	img32on.src="http://www.ccfound.org/images/subnavgr_comm_on.gif";
  	img33on=new Image();
  	img33on.src="http://www.ccfound.org/images/subnavgr_econ_on.gif";
  	img34on=new Image();
  	img34on.src="http://www.ccfound.org/images/nav_nls_on.gif";
  	img35on=new Image();
  	img35on.src="http://www.ccfound.org/images/nav_nls_on.gif";
	img36on=new Image();
  	img36on.src="http://www.ccfound.org/images/subnavgr_2005grnt_on.gif";
	img37on=new Image();
  	img37on.src="http://www.ccfound.org/images/subnavgr_2006grnt_on.gif";
  	
		img1off=new Image();
    img1off.src="http://www.ccfound.org/images/nav_home_off.gif";
    img2off=new Image();
    img2off.src="http://www.ccfound.org/images/nav_about_off.gif";
    img3off=new Image();
    img3off.src="http://www.ccfound.org/images/nav_guide_off.gif";
    img4off=new Image();
    img4off.src="http://www.ccfound.org/images/nav_grants_off.gif";
    img5off=new Image();
    img5off.src="http://www.ccfound.org/images/nav_resources_off.gif";
    img6off=new Image();
  	img6off.src="http://www.ccfound.org/images/subnavh_mission_off.gif";
  	img7off=new Image();
  	img7off.src="http://www.ccfound.org/images/subnavh_letter_off.gif";
  	img8off=new Image();
  	img8off.src="http://www.ccfound.org/images/subnavh_staff-cont_off.gif";
  	img9off=new Image();
  	img9off.src="http://www.ccfound.org/images/subnavh_search_off.gif";
  	img10aoff=new Image();
  	img10aoff.src="http://www.ccfound.org/images/subnava_grant-prog_off.gif";
    img10off=new Image();
  	img10off.src="http://www.ccfound.org/images/subnava_prog_off.gif";
  	img11off=new Image();
  	img11off.src="http://www.ccfound.org/images/subnava_board_off.gif";
  	img12off=new Image();
  	img12off.src="http://www.ccfound.org/images/subnava_staff_off.gif";
  	img13off=new Image();
  	img13off.src="http://www.ccfound.org/images/subnava_news_off.gif";
  	img14off=new Image();
  	img14off.src="http://www.ccfound.org/images/subnava_reports_off.gif";
    img15off=new Image();
  	img15off.src="http://www.ccfound.org/images/subnavg_areas_off.gif";
  	img16off=new Image();
  	img16off.src="http://www.ccfound.org/images/subnavg_types_off.gif";
  	img17off=new Image();
  	img17off.src="http://www.ccfound.org/images/subnavg_geo_off.gif";
  	img18off=new Image();
  	img18off.src="http://www.ccfound.org/images/subnavg_rest_off.gif";
  	img19off=new Image();
  	img19off.src="http://www.ccfound.org/images/subnavg_app_off.gif";
  	img20off=new Image();
  	img20off.src="http://www.ccfound.org/images/subnavg_review_off.gif";
    img21off=new Image();
  	img21off.src="http://www.ccfound.org/images/subnavgr_hserv_off.gif";
  	img22off=new Image();
  	img22off.src="http://www.ccfound.org/images/subnavgr_edu_off.gif";
  	img23off=new Image();
  	img23off.src="http://www.ccfound.org/images/subnavgr_health_off.gif";
  	img24off=new Image();
  	img24off.src="http://www.ccfound.org/images/subnavgr_public_off.gif";
  	img25off=new Image();
  	img25off.src="http://www.ccfound.org/images/subnavgr_arts_off.gif";
  	img26off=new Image();
  	img26off.src="http://www.ccfound.org/images/subnavgr_2000grnt_off.gif";
  	img27off=new Image();
  	img27off.src="http://www.ccfound.org/images/subnavgr_2001grnt_off.gif";
  	img28off=new Image();
  	img28off.src="http://www.ccfound.org/images/subnavgr_2002grnt_off.gif";
  	img29off=new Image();
  	img29off.src="http://www.ccfound.org/images/subnavgr_2003grnt_off.gif";
  	img30off=new Image();
  	img30off.src="http://www.ccfound.org/images/subnavgr_2004grnt_off.gif";
  	img31off=new Image();
  	img31off.src="http://www.ccfound.org/images/subnavgr_consv_off.gif";
  	img32off=new Image();
  	img32off.src="http://www.ccfound.org/images/subnavgr_comm_off.gif";
  	img33off=new Image();
  	img33off.src="http://www.ccfound.org/images/subnavgr_econ_off.gif";
  	img34off=new Image();
  	img34off.src="http://www.ccfound.org/images/nav_nls_off.gif";
  	img35off=new Image();
  	img35off.src="http://www.ccfound.org/images/nav_nls_off.gif";
	img36off=new Image();
  	img36off.src="http://www.ccfound.org/images/subnavgr_2005grnt_off.gif";
	img37off=new Image();
  	img37off.src="http://www.ccfound.org/images/subnavgr_2006grnt_off.gif";
		}  

function imgOn(imgName) { 
   if (document.images){ 
   document[imgName].src = eval(imgName + "on.src"); 
    } } 
function imgOff(imgName) { 
   if (document.images) { 
   document[imgName].src = eval(imgName + "off.src"); 
    } }

// function to open remote popup windows in different named windows.
function remote(url,name,parms) {
	var remote = window.open(url,name,parms); 
	remote.opener = self; 
	remote.focus();
	}

// function to link to URL in opener window and close popup.
// this is used in popup windows opened with remote function.
function linkthis(url){
	opener.location.href = url;
	window.close();
	}

/*
* Author: Eric Lee (eric@xtremeconcepx.com)
* name: writeTextBox
* function: Writes a line of cross-browser and cross-platform input text box code
* return: nothing
*/
function writeTextBox(fieldname,win_ie_size,win_ns_size,mac_ie_size,mac_ns_size,maxlengthsize){
	var formString = "";
	var browserName=navigator.appName;
	if (navigator.appVersion.indexOf("PPC") != -1){
	if (browserName=="Netscape"){
		formString = "<input type='text' size='"+ mac_ns_size +"' name='"+ fieldname +"' maxlength='"+ maxlengthsize +"' value=''>";
			document.write (formString);
			}
		else{
		formString = "<input type='text' size='"+ mac_ie_size +"' name='"+ fieldname +"' maxlength='"+ maxlengthsize +"' value=''>";
			document.write (formString);
			}
		}
		else{
		if (browserName=="Netscape"){
			formString = "<input type='text' size='"+ win_ns_size +"' name='"+ fieldname +"' maxlength='"+ maxlengthsize +"' value=''>";
				document.write (formString);
				}
			else{
			formString = "<input type='text' size='"+ win_ie_size +"' name='"+ fieldname +"' maxlength='"+ maxlengthsize +"' value=''>";
			document.write (formString);
			}
		}
	return;
}