	function color_fons(obj,color)
	{
		var ie = (document.all) ? 1 : 0;

		if (ie) 
			obj.style.background = color;
		else
			obj.style.backgroundColor = color;
	}

/*	function color_fons(obj,color)
	{
		if (is.ie) 
			obj.style.background = color;
		else
			obj.style.backgroundColor = color;
	}*/

	function calcula_x (tmp)
	{
		x=0;
		while(tmp.offsetParent != null)		
		{
			x+= tmp.offsetParent.offsetLeft;
			tmp = tmp.offsetParent;
		}
		return x;
	}

	function calcula_y (tmp)
	{
		y=0;
		while(tmp.offsetParent != null)		
		{
			y+= tmp.offsetParent.offsetTop;
			tmp = tmp.offsetParent;
		}
		return y;
	}

