function gridColors(g)
{
		
	var trs = g.getElementsByTagName('tr');
	var tds = trs[0].getElementsByTagName('td');
	for(var i = 1; i<trs.length; i++)
	{
		
		trs[i].style.backgroundColor= (i%2) ? document.COLOR.tr.par.bkg : document.COLOR.tr.impar.bkg;

		trs[i].onmouseover = function()
		{
				this.style.backgroundColor = document.COLOR.tr.hover.bkg
				this.style.color = document.COLOR.tr.hover.fon;
				if(!gE('expanded').checked)
					startMarquee(this);
		}
		trs[i].setAttribute('cor',trs[i].style.backgroundColor);
		trs[i].setAttribute('corf',trs[i].style.color);

		trs[i].onmouseout = function()
		{
				this.style.backgroundColor = this.getAttribute('cor')
				this.style.color = this.getAttribute('corf')
				if(!gE('expanded').checked)
				{
					this.getElementsByTagName('span')[0].firstChild.nodeValue = startMarquee.def;
					this.getElementsByTagName('span')[0].removeAttribute('id');
					clearInterval(window.time);
				}
		}
	}
	
}
//----------------------------------------------------------------------------------------------------------------------
function Color()
{
	this.tr  = { hhover:{bkg:null,brd:'1px blue solid',fon:'red'},
				 hout:{bkg:null,brd:'1px red solid',fon:'#888'},
				 par  :{bkg:'#fff',brd:null},
				 impar:{bkg:'#e6fdc8',brd:null},
				 hover:{bkg:'#a7ff4f',brd:null,fon:'#000'},
				 check:{bkg:'#91e6f8',brd:null},
				 out:{bkg:null,brd:null,fon:'blue'}
				}
}
