

var W3CDOM = (document.createElement && document.getElementsByTagName);
window.onload = init;
var anterior = null;

function init() {
	if (!W3CDOM) return;
		var as = document.getElementsByTagName('a');
		for (var i=0; i < as.length; i++) {
		as[i].onclick = estilo;
		as[i].ref = i;
	}
}

function estilo() {

	if (anterior != null)
	{
		anterior.style.color = "#FFFF00";
		anterior.style.background = "#7C75B1";
	}
	anterior = this;
	
	this.style.color = "#660066";
	this.style.background = "#FFFF00";
	this.blur();
}

