
// Link Fade v0.5
// JavaScript - simple and imperfect animated links (for IE4+ only)
// by Ron Lussier  -  rlussier@csi.com

// Problems:
// Does not finish resetting previous link-color onMouseOut if
//	 a new onMouseOver happens quickly.
// Does not work on Anchor tags if another tag is inside the
//	 <A></A> tags (like a <SPAN> set)

// You may *only* distribute this file in it's original form.
// You may not reproduce it in print without permission.
// Use at your own risk, etc.


    var browser = navigator.appName;
    var browVer = parseInt(navigator.appVersion);
    var Jscript = "no";

    if (browser == "Netscape" && browVer >= 3 ) Jscript = "yesN";
    if (browser == "Microsoft Internet Explorer" && browVer >= 4 ) Jscript = "yesM";

if (Jscript == "yesM") {

	col0 = "#95A6D6"  // base color, returns to this value
	col1 = "#A5B6E6"
	col2 = "#B6D0F6"
	col3 = "#D8E0FA"
	col4 = "#E9F0FF"

	document.onmouseover = doChgColor
	document.onmouseout = doChgColorBack
	function doChgColor() {
		if (window.event.srcElement.tagName == "A") {

			objSty = window.event.srcElement.style
			wasColor = col0    //or = objSty.color

			setTimeout("objSty.color = col1;",   1)
			setTimeout("objSty.color = col2;",  60)
			setTimeout("objSty.color = col3;", 120)
			setTimeout("objSty.color = col4; \
				    objSty.textDecoration = 'underline';", 160)
		}
	}
	function doChgColorBack() {
		if (window.event.srcElement.tagName == "A") {

			objSty = window.event.srcElement.style

			setTimeout("objSty.color = col3; \
				    objSty.textDecoration = 'none';", 1)
			setTimeout("objSty.color = col2; \
				    objSty.textDecoration = 'none';", 50)
			setTimeout("objSty.color = col1;",  90)
			setTimeout("objSty.color = wasColor; \
				    objSty.textDecoration = 'none';",170)
		}
	}
}

