if (document.images) {
	
//top nav

	homeover = new Image
	homeover.src = "images/banner/home_over.gif"
	homeup = new Image
	homeup.src = "images/banner/home_up.gif"
	
	agenciesover = new Image
	agenciesover.src="images/banner/agencies_over.gif"
	agenciesup = new Image
	agenciesup.src = "images/banner/agencies_up.gif"
	
	forumsover = new Image
	forumsover.src = "images/banner/programs_over.gif"
	forumsup = new Image
	forumsup.src = "images/banner/programs_up.gif"
	
	publicationsover = new Image
	publicationsover.src = "images/banner/publications_over.gif"
	publicationsup = new Image
	publicationsup.src = "images/banner/publications_up.gif"
	
	policyover = new Image
	policyover.src = "images/banner/policy_over.gif"
	policyup = new Image
	policyup.src = "images/banner/policy_up.gif"

//side nav	
	
	sitemapover = new Image
	sitemapover.src = "images/sidenav/sitemap_over.gif"
	sitemapup = new Image
	sitemapup.src = "images/sidenav/sitemap_up.gif"
	
	aboutover = new Image
	aboutover.src = "images/sidenav/about_over.gif"
	aboutup = new Image
	aboutup.src = "images/sidenav/about_up.gif"
	
	contactover = new Image
	contactover.src="images/sidenav/contact_over.gif"
	contactup = new Image
	contactup.src = "images/sidenav/contact_up.gif"
	
	donateover = new Image
	donateover.src = "images/sidenav/donate_over.gif"
	donateup = new Image
	donateup.src = "images/sidenav/donate_up.gif"
	
	linksover = new Image
	linksover.src = "images/sidenav/links_over.gif"
	linksup = new Image
	linksup.src = "images/sidenav/links_up.gif"
	
	newsover = new Image
	newsover.src = "images/sidenav/news_over.gif"
	newsup = new Image
	newsup.src = "images/sidenav/news_up.gif"	
	
	topicsover = new Image
	topicsover.src = "images/sidenav/topics_over.gif"
	topicsup = new Image
	topicsup.src = "images/sidenav/topics_up.gif"	
	
}
else {
	document.home= " "
	homeover = " "
	homeup = " "
	
	document.agencies = " "
	agenciesover = " "
	agenciesup = " "

	document.forums = " "
	forumsover = " "
	forumsup = " "
	
	document.forums = " "
	forumsover = " "
	forumsup = " "
	
	document.policy = " "
	policyover = " "
	policyup = " "
	
	document.sitemap = " "
	sitemapover = " "
	sitemapup = " "
	
	document.about = " "
	aboutover = " "
	aboutup = " "
	
	document.contact = " "
	contactover = " "
	contactup = " "

	document.donate = " "
	donateover = " "
	donateup = " "
	
	document.links = " "
	linksover = " "
	linksup = " "
}

// Popup windows
function summaryPop(file) {
	summaryWindow = window.open (file,'summarywindow','height=250,width=500,scrollbars=1,resizeable=0,toolbar=0,location=0');
	}

function romaSlide(file) {
	romaWindow = window.open (file,'romawindow','height=285,width=415,scrollbars=1,resizeable=0,toolbar=0,location=0');
	}

function donateEnergy() {
	donateWindow = window.open ('donatepop.html','donatewindow','height=285,width=400,scrollbars=1,resizeable=0,toolbar=0,location=0');
	}
	
function romaSurvey(file) {
	romaSurvey = window.open (file,'romasurvey','height=450,width=535,scrollbars=1,resizeable=0,toolbar=0,location=0');
	}		
	
// City Jump Menu
function cityJump() {
	if (document.cities.citylist.options[document.cities.citylist.selectedIndex].value != "none") {
	location = document.cities.citylist.options[document.cities.citylist.selectedIndex].value
	}
}
		
// Random Quotes

var pgText = new Array();
	pgText[0] = "<p class=\"CAAlist\">\"We believe that low-income people should be treated with dignity and supported in their efforts to become self-sufficient\"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#151;MASSCAP";
	pgText[1] = "<p class=\"CAAlist\">\"We believe in empowering people to take control of their own lives and communities in spite of individual and societal barriers to this end.\"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#151;MASSCAP";
	pgText[2] = "<p class=\"CAAlist\">\"It is our role to speak out and to support the low-income community's efforts to integrate more effectively into all aspects of society.\"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#151;MASSCAP";
	pgText[3] = "<p class=\"CAAlist\">\"CAAs are economic engines, providing communities with an annual infusion of over $250 million in total resources.\"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#151;MASSCAP<br><a href=\"about.html#pdf\">More >></a></p>";
	pgText[4] = "<p class=\"CAAlist\">\"MASSCAP works to enchance the ability of each member agency to better serve its clients.\"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#151;MASSCAP";
	pgText[5] = "<p class=\"CAAlist\">\"A better understanding and mastery of information technology is an absolute critical step for low-income people.\"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#151;MASSCAP";
	pgText[6] = "<p class=\"CAAlist\">\"Community action agencies were created in 1965 by Congress to combat poverty and to help low-income people achieve self-sufficiency.\"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#151;MASSCAP";
	pgText[7] ="<p class=\"CAAlist\">\"Massachusetts Community Action Agencies have over 200 sites across the state and provide services at sites operated by other organizations.\"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#151;MASSCAP<br><a href=\"about.html#pdf\">More >></a></p>";
	

var n = 8;
var pgNum = Math.round(Math.random() * n);
var randomQuote = pgText[pgNum];	


// Random Headline

var fpHeadline = new Array();
	fpHeadline[0] = "<a href=\"CFCFeature.html\" border=\"0\"><img src=\"images/girlwithsenior.gif\" width=\"116\" height=\"95\" alt=\"Girl with Senior\" border=\"0\" align=\"left\"><h4 class=\"headline\">CFC Brings Seniors, Kids Together in Fall River</h4></a>";
	fpHeadline[1] = "<a href=\"ACTION2.html\" border=\"0\"><img src=\"images/fpfisher.jpg\" width=\"116\" height=\"106\" alt=\"Man learning computer skills\" border=\"0\" align=\"left\"><h4 class=\"headline\">ACTION's FFIT Program: Displaced Fishermen, Families Gain New Job Skills in Gloucester</h4></a>";
	fpHeadline[2] = "<a href=\"famfirst.html\" border=\"0\"><img src=\"images/fpfamily.jpg\" width=\"116\" height=\"169\" alt=\"Famiy sitting on the steps to their home\" border=\"0\" align=\"left\"><h4 class=\"headline\">Families First</h4></a>";
	fpHeadline[3] = "<a href=\"urban.html\" border=\"0\"><img src=\"images/fpgrads.jpg\" width=\"116\" height=\"192\" alt=\"Two recent Master's graduates\" border=\"0\" align=\"left\"><h4 class=\"headline\">ABCD's Urban College of Boston</h4></a>";
	fpHeadline[4] = "<a href=\"cti-kids.html\" border=\"0\"><img src=\"images/fpkids.jpg\" width=\"116\" height=\"77\" alt=\"Group of kids at a playground\" border=\"0\" align=\"left\"><h4 class=\"headline\">Head Start at CTI</h4></a>";
	fpHeadline[5] = "<a href=\"pace20.html\" border=\"0\"><img src=\"images/pace_thumb.jpg\" width=\"100\" height=\"133\" alt=\"PACE Celebrates 20 Years\" border=\"0\" align=\"left\"><h4 class=\"headline\">PACE Celebrates 20 Years of Service to Greater New Bedford</h4></a>";
	fpHeadline[6] = "<a href=\"cfcit2003.html\" border=\"0\"><img src=\"images/cybercafehelping_thumb.jpg\" width=\"100\" height=\"93\" alt=\"Helping Seniors with Computers\" border=\"0\" align=\"left\"><h4 class=\"headline\">Citizens for Citizens’ Senior Cyber Café in Fall River</h4></a>";
var n = 6;
var fpChg = Math.round(Math.random() * n);
var randomHeadline = fpHeadline[fpChg];

//ROMA Form Validate

function validate(form1) {
	var msg="";
		if (form1.name.value == "") msg += "  * Name\n";
		if (form1.agency.value == "") msg += "  * Agency\n";
		if ((form1.email.value.indexOf('@') == -1) || 
			(form1.email.value.length < 8)) msg += "  * E-mail\n";					
		if (msg == "") {
			return true;
		} else {
			alert("Please check that the following fields have the correct info entered:\n" + msg);
			return false;
				}
		}
//Tech Survey Validations

function validate(form) {
	var msg="";
		if (form.last_name.value == "") msg += "  * Last Name\n";
		if (form.first_name.value == "") msg += "  * First Name\n";
		if (form.title.value == "") msg += "  * Title\n";
		if (form.phone.value == "") msg += "  * Phone\n";
		if ((form.email.value.indexOf('@') == -1) || 
			(form.email.value.length < 8)) msg += "  * E-mail\n";		
		if (form.agency_name.value == "") msg += "  * Agency Name\n";
		if (form.agency_address.value == "") msg += "  * Agency Street Address\n";
		if (form.agency_city.value == "") msg += "  * Agency City\n";
		if (form.agency_state.value == "") msg += "  * Agency State\n";
		if (form.geographic_area.value == "") msg += "  * Geographic Area\n";
		if (form.annual_budget.value == "") msg += "  * Annual Budget\n";
		if (form.agency_programs.value == "") msg += "  * Agency Programs\n";
		if (form.clients.value == "") msg += "  * Clients\n";
		if (msg == "") {
			return true;
		} else {
			alert("Please check that the following fields have the correct info entered:\n" + msg);
			return false;
				}
		}
		
// EITC Form Validation

function validate2() {
	var form1 = document.forms.eitcform;
	var email = form1.email.value;
	var msg = "";
	
	if(form1.fname.value.length < 2) msg += "* First Name:\n";
	if(form1.lname.value.length < 2) msg += "* Last Name:\n";
	if(email.indexOf('@') < 0 || email.indexOf('@') !=email.lastIndexOf('@') || email.indexOf('.') < 0 || email.lastIndexOf('.') < email.indexOf('@')) msg += "* Valid Email:\n";
	if(form1.city.value.length < 2) msg += "* City:\n";
		if (msg == "") {
			return true; 
		} else {
		alert('Please fill in the following information:\n' + msg);
		return false;
	}
}
