var source;

function AlteraCor() {

	source=event.srcElement;
	if (source.tagName=="TABLE") return;
	while(source.tagName!="TR") source=source.parentElement;
	if (source.style.backgroundColor!="#fffefe" && source.id!="ignore")	{
		source.style.backgroundColor = "#fffffe";
	}
}
	
function RetornaCor() {	

	if (event.toElement!=source && source.id!="ignore") {
			source.style.backgroundColor = "#DCE5F3";
	}
}

function tag(index,backgroundColor) {
	this.index	= index;
	this.backgroundColor = backgroundColor;
}


function AlteraCor2() {

	source=event.srcElement;
	if (source.tagName=="TABLE") return;
	while(source.tagName!="TD") source=source.parentElement;
	if (source.style.backgroundColor!="#fffefe" && source.id!="ignore")	{
		source.style.backgroundColor = "#fffffe";
	}
}
	
function RetornaCor2() {	

	if (event.toElement!=source && source.id!="ignore") {
			source.style.backgroundColor = "#E9EFF9";
	}
}

function tag(index,backgroundColor) {
	this.index	= index;
	this.backgroundColor = backgroundColor;
}