/* fix application title
----------------------------------------------- */
var supportLink = document.getElementById("cgsupportlink");
var progTitle   = document.getElementById("appTitle");

if ((supportLink) && (progTitle)) {
	if (supportLink.href.indexOf('x_proposal_type_id=172') != -1) {
		progTitle.firstChild.nodeValue = "Apply Online - Event / Sponsorship Grant";
	}

	else if (supportLink.href.indexOf('x_proposal_type_id=175') != -1) {
		progTitle.firstChild.nodeValue = "Apply Online - Literacy Grant";
	}
	else if (supportLink.href.indexOf('x_proposal_type_id=216') != -1) {
		progTitle.firstChild.nodeValue = "Apply Online - Literacy Grant";
	}

	else if (supportLink.href.indexOf('x_proposal_type_id=176') != -1) {
		progTitle.firstChild.nodeValue = "Apply Online - Education Grant";
	}
	else if (supportLink.href.indexOf('x_proposal_type_id=217') != -1) {
		progTitle.firstChild.nodeValue = "Apply Online - Education Grant";
	}


	else if (supportLink.href.indexOf('x_proposal_type_id=177') != -1) {
		progTitle.firstChild.nodeValue = "Apply Online - Domestic Violence Prevention Grant";
	}
	else if (supportLink.href.indexOf('x_proposal_type_id=218') != -1) {
		progTitle.firstChild.nodeValue = "Apply Online - Domestic Violence Prevention Grant";
	}

	else if (supportLink.href.indexOf('x_proposal_type_id=178') != -1) {
		progTitle.firstChild.nodeValue = "Apply Online - Healthcare and Accessibility Grant";
	}
	else if (supportLink.href.indexOf('x_proposal_type_id=215') != -1) {
		progTitle.firstChild.nodeValue = "Apply Online - Healthcare and Accessibility Grant";
	}

	else if (supportLink.href.indexOf('x_proposal_type_id=102') != -1) {
			progTitle.firstChild.nodeValue = "Verizon Volunteers - Volunteer Incentive Program";
	}
	else if (supportLink.href.indexOf('x_proposal_type_id=100') != -1) {
				progTitle.firstChild.nodeValue = "Verizon Volunteers - Matching Incentive Program";
	}

	else if (supportLink.href.indexOf('x_proposal_type_id=179') != -1) {
		progTitle.firstChild.nodeValue = "Apply Online - Internet Safety Grant";
	}
	else if (supportLink.href.indexOf('x_proposal_type_id=219') != -1) {
		progTitle.firstChild.nodeValue = "Apply Online - Internet Safety Grant";
	}
/*	
	else if (supportLink.href.indexOf('x_proposal_type_id=1') != -1) {
		progTitle.firstChild.nodeValue = "Apply Online - General Grant";
	}
*/
}