	function Color(r,g,b) {
		this.red=r;
		this.green=g;
		this.blue=b;
		this.HColor="";
		this.toHex=ToHex;
		return this;
	}
	function ToHex() {
		if (this.red<0) this.red=0;
		if (this.green<0) this.green=0;
		if (this.blue<0) this.blue=0;
		if (this.red>255) this.red=255;
		if (this.green>255) this.green=255;
		if (this.blue>255) this.blue=255;
		var Rentero=parseInt(this.red).toString(16);
		if(Rentero.length ==1) Rentero= ("0" +Rentero);
		var Ventero=parseInt(this.green).toString(16);
		if(Ventero.length ==1) Ventero= ("0" +Ventero);
		var Aentero=parseInt(this.blue).toString(16);
		if(Aentero.length ==1) Aentero= ("0" +Aentero);
		this.HColor=("#"+Rentero+Ventero+Aentero).toUpperCase();
	}
	var recorriendo=false;
	function recorre() {
		recorriendo=false;
		for (var i=0; i<document.links.length; i++) {
			if (document.links[i].tendencia.red!=document.links[i].color.red) {
				document.links[i].color.red+=parseInt((document.links[i].tendencia.red-document.links[i].color.red)/2);
				recorriendo=true;			
			} 
			 if (document.links[i].tendencia.green!=document.links[i].color.green) {
				document.links[i].color.green+=parseInt((document.links[i].tendencia.green-document.links[i].color.green)/2);
				recorriendo=true;
			}
			if (document.links[i].tendencia.blue!=document.links[i].color.blue) {
				document.links[i].color.blue+=parseInt((document.links[i].tendencia.blue-document.links[i].color.blue)/2);
				recorriendo=true;
			} 
			document.links[i].color.toHex();
			document.links[i].style.color=document.links[i].color.HColor;
		}
		if (recorriendo) {
			 setTimeout("recorre()",100);
		}
	}
	function Main()  {
		if (document.getElementById) {
			for (var i=0; i<document.links.length;i++) {
				document.links[i].color=new Color(colorNormal.red,colorNormal.green,colorNormal.blue);
				document.links[i].tendencia=new Color(colorNormal.red,colorNormal.green,colorNormal.blue);
				document.links[i].onmouseover=FadeIn;
				document.links[i].onmouseout=FadeOut;
			}
		}
		var As=document.getElementsByTagName("a");
		for (var i=0; i<As.length; i++) {
			if (As[i].href.indexOf("(at)")!=-1) {
				var txtFinal=As[i].href.split("(at)");
				As[i].href=txtFinal[0]+"@"+txtFinal[1];
			}
		}
	}
	function FadeIn() {
		this.tendencia.red=colorHover.red;
		this.tendencia.blue=colorHover.blue;
		this.tendencia.green=colorHover.green;
		if (!recorriendo) recorre();
	}
	function FadeOut() {
		this.tendencia.red=colorNormal.red;
		this.tendencia.blue=colorNormal.blue;
		this.tendencia.green=colorNormal.green;
		if (!recorriendo) recorre();
	}
	window.onload=Main;

	var colorNormal=new Color(0,0,0);
	var colorHover=new Color(0,102,255);
