/* IMAGE ROLLOVERS */

/* : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : set variables
- n1, n2 = universal to all networks [ previous, next ]
*/
if (document.images) {
	n1On = new Image(135,33);	n1On.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/dnc_expanded.gif";
	n1Off = new Image(135,33);	n1Off.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/dnc_collapsed.gif";

	n2On = new Image(119,33);	n2On.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/fitness_expanded.gif";
	n2Off = new Image(119,33);	n2Off.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/fitness_collapsed.gif";
	
	n3On = new Image(95,33);		n3On.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/living_expanded.gif";
	n3Off = new Image(95,33);	n3Off.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/living_collapsed.gif";

	n4On = new Image(94,33);		n4On.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/mental_expanded.gif";
	n4Off = new Image(94,33);	n4Off.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/mental_collapsed.gif";
	
	n5On = new Image(140,33);	n5On.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/pregnancy_expanded.gif";
	n5Off = new Image(140,33);	n5Off.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/pregnancy_collapsed.gif";

	n6On = new Image(124,33);	n6On.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/sex_expanded.gif";
	n6Off = new Image(124,33);	n6Off.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/sex_collapsed.gif";
	
	n7On = new Image(49,33);		n7On.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/tools_expanded.gif";
	n7Off = new Image(49,33);	n7Off.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/tools_collapsed.gif";

	n8On = new Image(54,33);		n8On.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/tv_expanded.gif";
	n8Off = new Image(54,33);	n8Off.src = "http://health.discovery.com/common/sgallery/dhc/tophatV6/810/tv_collapsed.gif";
}


/* : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : functions
- "_" = number refering to image associated
- example:
<a onmouseover="switchOn('n_')" onmouseout="switchOff('n_')" ... ><img name="n_" src="/sgallery/_off.gif" ... /></a>
*/
function switchOn(imgName) {
	if (document.images) {
		imgOn = eval(imgName + "On.src");
		document [imgName].src = imgOn;
	}
}

function switchOff(imgName) {
	if (document.images) {
		imgOff = eval(imgName + "Off.src");
		document [imgName].src = imgOff;
	}
}


/* END ROLLOVERS */