/*
 * Link highlighting code.  The links in question here are all images.
 * Highlighting, or activating, a link means loading a highlighted image in
 * the place of a link image.  Deactivating a link means reloading the normal,
 * unhighlited link image.  If the browser is not supported, then activation
 * and deactivation will do nothing.
 */

/*
 * Detect whether or not browser is supported.
 */
browserName = navigator.appName;
browserVersion = parseInt(navigator.appVersion);
if ((browserName == "Netscape"                    && browserVersion >= 3) || 
    (browserName == "Microsoft Internet Explorer" && browserVersion >= 4))
	browserSupported = "yes"; 
else
	browserSupported = "no";
/*
 * Preload all active and inactive images.
 */
if (browserSupported == "yes") {
	hb0ImgAct   = new Image();
	hb1ImgAct   = new Image();
	hb2ImgAct   = new Image();
	hb0ImgAct.src   = "http://www.ciscor.com/es/img/home-hi.gif";
	hb1ImgAct.src   = "http://www.ciscor.com/es/img/about-hi.gif";
	hb2ImgAct.src   = "http://www.ciscor.com/es/img/contact-hi.gif";
	hb0ImgInact   = new Image();
	hb1ImgInact   = new Image();
	hb2ImgInact   = new Image();
	hb0ImgInact.src   = "http://www.ciscor.com/es/img/home-lo.gif";
	hb1ImgInact.src   = "http://www.ciscor.com/es/img/about-lo.gif";
	hb2ImgInact.src   = "http://www.ciscor.com/es/img/contact-lo.gif";
	hbnaImg  = new Image();
	hbniImg  = new Image();
	hbaiImg  = new Image();
	hbiaImg  = new Image();
	hbiiImg  = new Image();
	hbanlImg = new Image();
	hbanrImg = new Image();
	hbinlImg = new Image();
	hbinrImg = new Image();
	hbnaImg.src  = "http://www.ciscor.com/img/hbna.gif";
	hbniImg.src  = "http://www.ciscor.com/img/hbni.gif";
	hbaiImg.src  = "http://www.ciscor.com/img/hbai.gif";
	hbiaImg.src  = "http://www.ciscor.com/img/hbia.gif";
	hbiiImg.src  = "http://www.ciscor.com/img/hbii.gif";
	hbanlImg.src = "http://www.ciscor.com/img/hbanl.gif";
	hbanrImg.src = "http://www.ciscor.com/img/hbanr.gif";
	hbinlImg.src = "http://www.ciscor.com/img/hbinl.gif";
	hbinrImg.src = "http://www.ciscor.com/img/hbinr.gif";
}
/*
 * Functions to activate header buttons.
 */
function hb0Act() {
	if (browserSupported == "yes") {
		document["hbn0"].src = hbnaImg.src;
		document["hb0"].src  = hb0ImgAct.src;
		document["hb01"].src = hbaiImg.src;
	}
}
function hb1Act() {
	if (browserSupported == "yes") {
		document["hb01"].src = hbiaImg.src;
		document["hb1"].src  = hb1ImgAct.src;
		document["hb12"].src = hbaiImg.src;
	}
}
function hb2Act() {
	if (browserSupported == "yes") {
		document["hb12"].src  = hbiaImg.src;
		document["hb2"].src   = hb2ImgAct.src;
		document["hb2nl"].src = hbanlImg.src;
		document["hb2nr"].src = hbanrImg.src;
	}
}
/*
 * Functions to deactivate header buttons.
 */
function hb0Inact() {
	if (browserSupported == "yes") {
		document["hbn0"].src = hbniImg.src;
		document["hb0"].src  = hb0ImgInact.src;
		document["hb01"].src = hbiiImg.src;
	}
}
function hb1Inact() {
	if (browserSupported == "yes") {
		document["hb01"].src = hbiiImg.src;
		document["hb1"].src  = hb1ImgInact.src;
		document["hb12"].src = hbiiImg.src;
	}
}
function hb2Inact() {
	if (browserSupported == "yes") {
		document["hb12"].src = hbiiImg.src;
		document["hb2"].src  = hb2ImgInact.src;
		document["hb2nl"].src = hbinlImg.src;
		document["hb2nr"].src = hbinrImg.src;
	}
}