

// ---------- script properties ----------

var include_num = 1;
var bold = 0;

// ---------- sites ----------

var s = new Array();

s[0] = "Welcome to Henry J Austin Health Centers^index.html^Information about our available services at three locations throughout Trenton^henry, j, austin, home, homepage";
s[1] = "About Us^about.html^Established in 1969 as Trentons Neighborhood Health Center, Austin gained status as a private, non-profit 501c3 corporation in 1986...^about us, history, henry, j, austin";
s[2] = "Board of Directors^about_board.html^The board of directors for Henry J. Austin Health Centers...^board, directors, leadership, president";
s[3] = "News and Updates^about_news.html^Follow this link to read about everything happening at Austin Health Center....^news, updates, events";
s[4] = "The Ewing Street Health Center Expansion Program^about_news_ewing.html^Henry J Austin Health Center is expanding our capacity to serve individuals and families in the city of Trenton by replacing our current...^ewing, news, updates, events";
s[5] = "Henry J Austin Health Center Honored with Health and Human Services Grant^about_news_expanded.html^Henry J Austin Health Center was one of two organizations in New Jersey selected recently to receive a competitive Health Resources and Services Administration Grant...^grant, news, updates, events";
s[6] = "Henry J Austin Capital Campaign^support.html^Because Austin Health Center reached capacity the Center was awarded a highly competitive federal Expanded Capacity grant...^grant, support, donations, capital, campaign, news, updates, events";
s[7] = "Our Locations^locations.html^Pictures, directions and contact information for our locations throughout Trenton...^locations, directions, contact, phone, email, trenton, ewing, hamilton, warren, chambers";
s[8] = "Patient Guide^guide.html^This patient information guide will provide you with more information about our available healthcare services and procedures as well as instructions to assist you with preparing for your appointment...^services, specialties, guide, information, faq";
s[9] = "Before Your Visit to Henry J. Austin... ENGLISH^guide_yourvisit.html^Following is a list of items required to document your identity, income, proof of dependents and proof of or lack of insurance coverage...^guide, information, faq, appointment, visit, insurance";
s[10] = "Before Your Visit to Henry J. Austin... SPANISH^guide_yourvisit_sp.html^Las reglas federales y estatales requieren que todo paciente que solicite servicios en el Centro de Salud Henry J. Austin, debe proveer información médica y personal apropiada...^guide, information, faq, appointment, visit, insurance";
s[11] = "Patient Rights^guide_rights.html^Listing of patient rights...^patient rights, rules";
s[12] = "Healthcare Services^healthservices.html^Henry J. Austin Health Center provides comprehensive services for the entire family covering the lifecycle from prenatal services through geriatric care...^services, healthcare, procedures, departments, specialties";
s[13] = "Adult Medicine^health_adult.html^It is recommended that all adults receive a complete physical examination (CPE) at least once every two (2) years...^internal medicine, adult health, family medicine, general, services, healthcare, procedures, departments, specialties";
s[14] = "Behavioral Healthcare^health_behavioral.html^Henry J. Austin Health Center is pleased to partner with Family Guidance Center to provide a full compliment of behavioral health care assessment, treatment, and referral services for Austin Center patients...^behavioral, psychiatric, professional, counseling, counseler, social worker, services, healthcare, procedures, departments, specialties";
s[15] = "Dental Care^health_dental.html^Austin Health Center provides dental services on a sliding-fee...^dental, teeth, toothache, dentist, services, healthcare, procedures, departments, specialties";
s[16] = "Eye Care^health_eye.html^Henry J. Austin Health Center is pleased to provide space for Campus Eye Group to offer eye care services on site at its Warren Street location...^eye, vision, sight, eyecare, glasses, eyes, services, healthcare, procedures, departments, specialties";
s[17] = "HIV Counseling and Testing^health_hiv.html^Henry J. Austin Health Center is pleased to provide free anonymous and confidential HIV testing to any person who requests it...^HIV, aids, testing, std, services, healthcare, procedures, departments, specialties";
s[18] = "Nutritional Counseling^health_nutritional.html^The Nutrition Department at Henry J. Austin offers medical nutrition therapy consults for our patients...^nutrition, nutritional, diet, dietition, weight, services, healthcare, procedures, departments, specialties";
s[19] = "Obstetrics and Gynecological Services^health_ob.html^Welcome to our OB prenatal care where we care about you...^ob, obgyn, gyn, pregnancy, pregnency, obstetrics, gynecology, services, healthcare, procedures, departments, specialties";
s[20] = "Pediatrics^health_peds.html^Your children can visit a pediatrician at Henry J. Austin Health Center and have all of their regular check-ups and routine medical visits in one location...^peds, pediatrics, pediatric, children, family medicine, services, healthcare, procedures, departments, specialties";
s[21] = "Social Services^health_social.html^Henry J. Austin Health Center is pleased to offer its patients the services of a Certified Social Worker and a Licensed Clinical Social Worker...^social services, social work, substance abuse, support, safety, services, healthcare, procedures, departments, specialties";
s[22] = "Pfizer Sharing the Care Program^health_pfizer.html^Austin Center is the only New Jersey site selected to participate in Pfizer Sharing the Care program...^drugs, perspcriptions, prescriptions, medicine, low-cost, lowcost, services, healthcare, procedures, departments, specialties";
s[23] = "Project Access^health_access.html^Project ACCESS (Austin Center for Comprehensive Early Intervention and Support Services) is Austin’s program for those affected by or infected with HIV...^hiv, aids, std, services, healthcare, procedures, departments, specialties";
s[24] = "Senior Care Outreach and Education Program^health_seniorcare.html^Funded by the Mercer County Office on Aging, the Senior Health Promotion, Outreach, and Assistance Program at the Henry J. Austin Health Center provides health education services to persons 60 years of age and older...^older, elderly, senior, services, healthcare, procedures, departments, specialties";
s[25] = "Successful Weightloss by Eating and Exercising Together^health_sweet.html^SWEET is an innovative program that helps obese children and their family members lose weight and develop permanent healthy lifestyle changes...^sweet, obesity, weight, weightloss, diet, exercise, services, healthcare, procedures, departments, specialties";
s[26] = "Our Healthcare Team^providers.html^All of Austin’s providers are board-eligible or board certified practitioners...^doctors, physicians, providers, chief medical officer, pediatrics, adult, obstetrics, gynecology, nurse, nurses, dental, dentists, dentist, eye, eyecare";
s[27] = "Healthy Community^community.html^Throughout the year, this section will feature articles, reference material and notifications of special activities designed to educate the community about ways to improve their health status...^news, articles, updates, health information, programs, services";
s[28] = "Community Health Highlight^community_featured.html^Monthly health features and articles from Henry J Austin Health Center...^news, articles, updates, health information, programs, services, heart month, heart, go red";
s[29] = "Health Disparities Collaborative Update and Highlights^community_disparities.html^Austin Health Center applied for and was accepted into a federal Health Disparities Collaborative in July, 2003. Our first Collaborative efforts focused on ensuring that all patients receive recommended cancer screenings...^news, articles, updates, screenings, health information, programs, services";
s[30] = "Board of Directors^about_board.html^The board of directors at Henry J Austin Health Center...^board of directors, leadership, board, management, senior";
s[31] = "Senior Management^about_management.html^Henry J Austin's senior management...^board of directors, leadership, board, management, senior";
s[32] = "Henry J. Austin Health Center Renews Accreditation from Joint Commission^about_news_joint.html^By demonstrating compliance with the Joint Commission on Accreditation of Healthcare Organization's national standards for health care quality and safety...^joint comission, joint commission, jacho, award, seal, approval, Accreditation";
s[32] = "Watch for Our Grand Ribbon Cutting at 112 Ewing Street^about_news_opening.html^It's almost here!  Watch for our grand Ribbon Cutting at 112 Ewing Street, our new, state-of-the-art health care facility in Trenton...^ewing street, opening, ribbon cutting, tour, new office, construction, building";
// ---------- end of script properties and sites ----------


var cookies = document.cookie;
var p = cookies.indexOf("d=");

if (p != -1) {
	var st = p + 2;
	var en = cookies.indexOf(";", st);
	if (en == -1) {
		en = cookies.length;
	}
	var d = cookies.substring(st, en);
	d = unescape(d);
}
var od = d;
var m = 0;
if (d.charAt(0) == '"' && d.charAt(d.length - 1) == '"') {
	m = 1;
}

var r = new Array();
var co = 0;

if (m == 0) {
	var woin = new Array();
	var w = d.split(" ");
	for (var a = 0; a < w.length; a++) {
		woin[a] = 0;
		if (w[a].charAt(0) == '-') {
			woin[a] = 1;
		}
	}
	for (var a = 0; a < w.length; a++) {
		w[a] = w[a].replace(/^\-|^\+/gi, "");
	}
	a = 0;
	for (var c = 0; c < s.length; c++) {
		pa = 0;
		nh = 0;
		for (var i = 0; i < woin.length; i++) {
			if (woin[i] == 0) {
				nh++;
				var pat = new RegExp(w[i], "i");
				var rn = s[c].search(pat);
				if (rn >= 0) {
					pa++;
				} else {
					pa = 0;
				}
			}
			if (woin[i] == 1) {
				var pat = new RegExp(w[i], "i");
				var rn = s[c].search(pat);
				if (rn >= 0) {
					pa = 0;
				}
			}
		}
		if (pa == nh) {
			r[a] = s[c];
			a++;
		}
	}
	co = a;
}

if (m == 1) {
	d = d.replace(/"/gi, "");
	var a = 0;
	var pat = new RegExp(d, "i");
	for (var c = 0; c < s.length; c++) {
		var rn = s[c].search(pat);
		if (rn >= 0) {
			r[a] = s[c];
			a++;
		}
	}
	co = a;

}


function return_query() {
	document.jse_Form.d.value = od;
}

function num_jse() {
	document.write(co);
}

function out_jse() {
	if (co == 0) {
		document.write('Your search did not match any documents.<p>Make sure all keywords are spelt correctly.<br>Try different or more general keywords.');
		return;
	}
	for (var a = 0; a < r.length; a++) {
		var os = r[a].split("^");
		if (bold == 1 && m == 1) {
			var br = "<b>" + d + "</b>";
			os[2] = os[2].replace(pat, br);
		}
		if (include_num == 1) {
			document.write(a + 1, '. <a href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
		} else {
			document.write('<a href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
		}
	}

}

