/* IMAGE ROLLOVERS */

/* : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : set variables and stuff
- nA1, nA2 = health [tophat ]
*/
if (document.images) {
	nA1On = new Image(151,17);   nA1On.src = "http://health.discovery.com/images/tophats/990/navigation/diseases-conditions-on.jpg";
    nA1Off = new Image(151,17);  nA1Off.src = "http://health.discovery.com/images/tophats/990/navigation/diseases-conditions.jpg";

	nA2On = new Image(104,17);	nA2On.src = "http://health.discovery.com/images/tophats/990/navigation/diet-fitness-on.jpg";
	nA2Off = new Image(104,17);	nA2Off.src = "http://health.discovery.com/images/tophats/990/navigation/diet-fitness.jpg";
	
	nA3On = new Image(108,17);	nA3On.src = "http://health.discovery.com/images/tophats/990/navigation/healthy-living-on.jpg";
	nA3Off = new Image(108,17);	nA3Off.src = "http://health.discovery.com/images/tophats/990/navigation/healthy-living.jpg";

	nA4On = new Image(108,17);	nA4On.src = "http://health.discovery.com/images/tophats/990/navigation/mental-health-on.jpg";
	nA4Off = new Image(108,17);	nA4Off.src = "http://health.discovery.com/images/tophats/990/navigation/mental-health.jpg";
	
	nA5On = new Image(156,17);	nA5On.src = "http://health.discovery.com/images/tophats/990/navigation/pregnancy-parenting-on.jpg";
	nA5Off = new Image(156,17);	nA5Off.src = "http://health.discovery.com/images/tophats/990/navigation/pregnancy-parenting.jpg";

	nA6On = new Image(136,17);	nA6On.src = "http://health.discovery.com/images/tophats/990/navigation/sex-relationships-on.jpg";
	nA6Off = new Image(136,17);	nA6Off.src = "http://health.discovery.com/images/tophats/990/navigation/sex-relationships.jpg";
	
	nA7On = new Image(58,17);   nA7On.src = "http://health.discovery.com/images/tophats/990/navigation/tools-on.jpg";
	nA7Off = new Image(58,17);	nA7Off.src = "http://health.discovery.com/images/tophats/990/navigation/tools.jpg";

	nA8On = new Image(56,17);   nA8On.src = "http://health.discovery.com/images/tophats/990/navigation/on-tv-on.jpg";
	nA8Off = new Image(56,17);	nA8Off.src = "http://health.discovery.com/images/tophats/990/navigation/on-tv.jpg";
    
    nA9On = new Image(104,17);  nA9On.src = "http://health.discovery.com/images/tophats/990/navigation/marketplace-on.jpg";
	nA9Off = new Image(104,17);	nA9Off.src = "http://health.discovery.com/images/tophats/990/navigation/marketplace.jpg";

}

/* : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : set variables
- nB1, nB2 = universal to all networks [ previous, next ] 810 Pages "B"
*/
if (document.images) {
	nB1On = new Image(140,17);  nB1On.src = "http://health.discovery.com/images/tophats/810/navigation/diseases-conditions-on.jpg";
    nB1Off = new Image(140,17); nB1Off.src = "http://health.discovery.com/images/tophats/810/navigation/diseases-conditions.jpg";

	nB2On = new Image(93,17);	nB2On.src = "http://health.discovery.com/images/tophats/810/navigation/diet-fitness-on.jpg";
	nB2Off = new Image(93,17);	nB2Off.src = "http://health.discovery.com/images/tophats/810/navigation/diet-fitness.jpg";
	
	nB3On = new Image(98,17);	nB3On.src = "http://health.discovery.com/images/tophats/810/navigation/healthy-living-on.jpg";
	nB3Off = new Image(98,17);	nB3Off.src = "http://health.discovery.com/images/tophats/810/navigation/healthy-living.jpg";

	nB4On = new Image(98,17);	nB4On.src = "http://health.discovery.com/images/tophats/810/navigation/mental-health-on.jpg";
	nB4Off = new Image(98,17);	nB4Off.src = "http://health.discovery.com/images/tophats/810/navigation/mental-health.jpg";
	
	nB5On = new Image(146,17);	nB5On.src = "http://health.discovery.com/images/tophats/810/navigation/pregnancy-parenting-on.jpg";
	nB5Off = new Image(146,17);	nB5Off.src = "http://health.discovery.com/images/tophats/810/navigation/pregnancy-parenting.jpg";

	nB6On = new Image(127,17);	nB6On.src = "http://health.discovery.com/images/tophats/810/navigation/sex-relationships-on.jpg";
	nB6Off = new Image(127,17);	nB6Off.src = "http://health.discovery.com/images/tophats/810/navigation/sex-relationships.jpg";
	
	nB7On = new Image(50,17);   nB7On.src = "http://health.discovery.com/images/tophats/810/navigation/tools-on.jpg";
	nB7Off = new Image(50,17);	nB7Off.src = "http://health.discovery.com/images/tophats/810/navigation/tools.jpg";

	nB8On = new Image(49,17);   nB8On.src = "http://health.discovery.com/images/tophats/810/navigation/on-tv-on.jpg";
	nB8Off = new Image(49,17);	nB8Off.src = "http://health.discovery.com/images/tophats/810/navigation/on-tv.jpg";
}
if (document.images) {
	n1On = new Image(50,10);    n1On.src = "http://health.discovery.com/sgallery/prevon.gif";
    n1Off = new Image(50,10);   n1Off.src = "http://health.discovery.com/sgallery/prevoff.gif";

	n2On = new Image(50,10);	n2On.src = "http://health.discovery.com/sgallery/nexton.gif";
	n2Off = new Image(50,10);	n2Off.src = "http://health.discovery.com/sgallery/nextoff.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");
//        alert(imgName + " " + imgOn);
		document [imgName].src = imgOn;
	}
}

function switchOff(imgName) {
	if (document.images) {
		imgOff = eval(imgName + "Off.src");
//        alert(imgName + " " + imgOff);
		document [imgName].src = imgOff;
	}
}


/* END ROLLOVERS */