// **************************************************
// Generic Site Functions, v. 2.1
// Created by: Eric Engelmann, 12/10/00
// Modified by: Eric Engelmann, 4/30/02
// Copyright (c)2000-2002 Geonetric Technologies
// http://www.geonetric.com/
// **************************************************

// ***********************
// ErrorHandler
// ***********************
function errorhandler(){ return true; }
	//window.onerror=errorhandler;

// ***********************
// FrameChecker -- Remove if frames site.
// ***********************
if (window!=top) top.location.replace(document.location.href);

// ***********************
// Mouseover Functions 
// ***********************

//Mouseover

if (document.images)	{ 
	// sample_on = new Image(); sample_on.src="/_imgs/sample_on.gif";
	// sample = new Image(); sample.src="/_imgs/sample.gif";
	nav_overview=new Image(); nav_overview.src="/_imgs/nav_overview.gif";
	nav_overview_on=new Image(); nav_overview_on.src="/_imgs/nav_overview_mo.gif";
	nav_contact=new Image(); nav_contact.src="/_imgs/nav_contact.gif";
	nav_contact_on=new Image(); nav_contact_on.src="/_imgs/nav_contact_mo.gif";
	nav_board=new Image(); nav_board.src="/_imgs/nav_board.gif";
	nav_board_on=new Image(); nav_board_on.src="/_imgs/nav_board_mo.gif";
	nav_community=new Image(); nav_community.src="/_imgs/nav_community.gif";
	nav_community_on=new Image(); nav_community_on.src="/_imgs/nav_community_mo.gif";
	nav_local=new Image(); nav_local.src="/_imgs/nav_local.gif";
	nav_local_on=new Image(); nav_local_on.src="/_imgs/nav_local_mo.gif";
	nav_new=new Image(); nav_new.src="/_imgs/nav_new.gif";
	nav_new_on=new Image(); nav_new_on.src="/_imgs/nav_new_mo.gif";
	nav_annual=new Image(); nav_annual.src="/_imgs/nav_annual.gif";
	nav_annual_on=new Image(); nav_annual_on.src="/_imgs/nav_annual_mo.gif";
	nav_index=new Image(); nav_index.src="/_imgs/nav_index.gif";
	nav_index_on=new Image(); nav_index_on.src="/_imgs/nav_index_mo.gif";
	
	
}


function imgAct(imgName)	{
	if (document.images) {
	 	document.images[imgName].src = eval(imgName + "_on.src"); 
	} 
}
function imgInact(imgName)	{ 
	if (document.images) { 
		document.images[imgName].src = eval(imgName + ".src");
	} 
}

function imgTextAct(imgName)	{
	if (document.images) {
	 	document.images[imgName].src = eval(imgName + "_on.src"); 
		switch (imgName) {
			case 'nav_overview' :
				document.getElementById("navtext").innerHTML = '<font color="ffcc00" font size="2"><strong>Overview: </strong></font>Find information on the legislative and funding history of Linn County Community Empowerment, a summary of the Board and Local Projects and the importance of the effort.';
			break
			case 'nav_contact' :
				document.getElementById("navtext").innerHTML = '<font color="ffcc00" font size="2"><strong> Contact Us: </strong></font>Contact the Linn County Community Empowerment Coordinator.<br><br>';
			break
			case 'nav_board' :
				document.getElementById("navtext").innerHTML = '<font color="ffcc00" font size="2"><strong>Board Roster: </strong></font>Find out about the members of the citizen-led Empowerment Board.<br><br>';
			break
			case 'nav_community' :
				document.getElementById("navtext").innerHTML = '<font color="ffcc00" font size="2"><strong> Community Plan: </strong></font>Learn about the priority areas of need to be addressed by the Linn County Community Empowerment.';
			break
			case 'nav_local' :
				document.getElementById("navtext").innerHTML = '<font color="ffcc00" font size="2"><strong>Local Projects: </strong></font>Learn about the early childhood programs funded by Linn County Community Empowerment.';
			break
			case 'nav_new' :
				document.getElementById("navtext").innerHTML = '<font color="ffcc00" font size="2"><strong> Whats New?: </strong></font>Review the Empowerment E-newsletter and updates on early childhood development information.';
			break
			case 'nav_annual' :
				document.getElementById("navtext").innerHTML = '<font color="ffcc00" font size="2"><strong> Annual Report: </strong></font>Read detailed information on activities of the Local Projects and Linn County Empowerment Board as reported to the State Empowerment Board.';
			break		
			default : document.getElementById("navtext").innerHTML = '<font color="ffcc00" font size="2"><strong>Overview: </strong></font> Find information on the legislative and funding history of Linn County Community Empowerment, a summary of the Board and Local Projects and the importance of the effort.';
		}

		
	} 
}
function imgTextInact(imgName)	{ 
	if (document.images) { 
		document.images[imgName].src = eval(imgName + ".src");
		document.getElementById("navtext").innerHTML = '<font color="ffcc00" font size="2"><strong>Overview:</strong></font> Find information on the legislative and funding history of Linn County Community Empowerment, a summary of the Board and Local Projects and the importance of the effort.';
	} 
}


// ***********************
// Show/Hide element
// ***********************
function toggleVisibility(el) {
	var v = el.style.display == "block";
	el.style.display = v ? "none" : "block";
}

