<!--

capable = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))

if (capable) {

	pitt_off = new Image
	pitt_off.src = "img/shared/button_pitt_off.gif"
	search_off = new Image
	search_off.src = "img/shared/button_search_off.gif"
	find_off = new Image
	find_off.src = "img/shared/button_find_off.gif"
	parent_off = new Image
	parent_off.src = "img/color/button_parent_off.gif"
	top_off = new Image
	top_off.src = "img/color/button_back_top_off.gif"

	pitt_on = new Image
	pitt_on.src = "img/shared/button_pitt_on.gif"
	search_on = new Image
	search_on.src = "img/shared/button_search_on.gif"
	find_on = new Image
	find_on.src = "img/shared/button_find_on.gif"
	parent_on = new Image
	parent_on.src = "img/color/button_parent_on.gif"
	top_on = new Image
	top_on.src = "img/color/button_back_top_on.gif"

	if (pagename == "index") {
		about_us_off = new Image
		about_us_off.src = "img/buttons/nav_about_us_sel.gif"
		about_us_on = new Image
		about_us_on.src = "img/buttons/nav_about_us_off.gif"
	} else {
		about_us_off = new Image
		about_us_off.src = "img/buttons/nav_about_us_off.gif"
		about_us_on = new Image
		about_us_on.src = "img/buttons/nav_about_us_sel.gif"
	}
	if (pagename == "facts") {
		facts_off = new Image
		facts_off.src = "img/buttons/nav_facts_sel.gif"
		facts_on = new Image
		facts_on.src = "img/buttons/nav_facts_off.gif"
	} else {
		facts_off = new Image
		facts_off.src = "img/buttons/nav_facts_off.gif"
		facts_on = new Image
		facts_on.src = "img/buttons/nav_facts_sel.gif"
	}
	if (pagename == "contact_us") {
		contact_us_off = new Image
		contact_us_off.src = "img/buttons/nav_contact_us_sel.gif"
		contact_us_on = new Image
		contact_us_on.src = "img/buttons/nav_contact_us_off.gif"
	} else {
		contact_us_off = new Image
		contact_us_off.src = "img/buttons/nav_contact_us_off.gif"
		contact_us_on = new Image
		contact_us_on.src = "img/buttons/nav_contact_us_sel.gif"
	}
	if (pagename == "pain") {
		pain_program_off = new Image
		pain_program_off.src = "img/buttons/nav_pain_program_sel.gif"
		pain_program_on = new Image
		pain_program_on.src = "img/buttons/nav_pain_program_off.gif"
	} else {
		pain_program_off = new Image
		pain_program_off.src = "img/buttons/nav_pain_program_off.gif"
		pain_program_on = new Image
		pain_program_on.src = "img/buttons/nav_pain_program_sel.gif"
	}
	if (pagename == "notice") {
		confidentiality_off = new Image
		confidentiality_off.src = "img/buttons/nav_confidentiality_sel.gif"
		confidentiality_on = new Image
		confidentiality_on.src = "img/buttons/nav_confidentiality_off.gif"
	} else {
		confidentiality_off = new Image
		confidentiality_off.src = "img/buttons/nav_confidentiality_off.gif"
		confidentiality_on = new Image
		confidentiality_on.src = "img/buttons/nav_confidentiality_sel.gif"
	}
	if (pagename == "hours") {
		hours_off = new Image
		hours_off.src = "img/buttons/nav_hours_sel.gif"
		hours_on = new Image
		hours_on.src = "img/buttons/nav_hours_off.gif"
	} else {
		hours_off = new Image
		hours_off.src = "img/buttons/nav_hours_off.gif"
		hours_on = new Image
		hours_on.src = "img/buttons/nav_hours_sel.gif"
	}
the_toggle = 0
	}

function img_on(imgName) {
	if (capable) {
	imgOn = eval(imgName + "_on.src")
	document [imgName].src = imgOn
	}
}

function img_off(imgName) {
	if (capable) {
	imgOff = eval(imgName + "_off.src")
	document [imgName].src = imgOff
	}
}

function pinwheel() {
	the_toggle = 1;
	pin_01();
}

function reset_toggle() {
	img_off('pitt');
	img_off('search');
	img_off('find');
	the_toggle = 0;
	window.status='';
}

function pin_01() {
	if (the_toggle > 0) {
		img_on('pitt');
		img_off('search');
		img_off('find');
		the_toggle = the_toggle - 1;
		setTimeout(pin_02,100);
	} else {
		reset_toggle();
	}
}

function pin_02() {
	img_off('pitt');
	img_on('search');
	img_off('find');
	setTimeout(pin_03,100);
}

function pin_03() {
	img_off('pitt');
	img_off('search');
	img_on('find');
	setTimeout(pin_04,100);
}

function pin_04() {
	img_off('pitt');
	img_on('search');
	img_off('find');
	setTimeout(pin_05,100);
}

function pin_05() {
	img_on('pitt');
	img_off('search');
	img_off('find');
	setTimeout(pin_01,100);
}

// -->

