btc.element = 
{
	getX : function( obj )
	{
		var intLeft = 0;
		
		if( obj.x )
		{
			return obj.x;
		}
		
		if( !obj.offsetParent ) return 0;
		while( obj.offsetParent )
		{
			intLeft += obj.offsetLeft;
			obj = obj.offsetParent;
		}
		
		return intLeft;	
	},
	
	getY: function( obj )
	{
		var intTop = 0;
		
		if( obj.y )
		{
			return obj.y;
		}
		if( !obj.offsetParent ) return 0;
		while( obj.offsetParent )
		{
			intTop += obj.offsetTop;
			obj = obj.offsetParent;
		}
		
		return intTop;
	},
	
	getAttr : function( obj , name )
	{
		if( name == "class" && document.all ) return obj.getAttribute( "className" );
		return obj.getAttribute( name );
	},
		
	setAttr : function( obj , name , value )
	{
		if( name == "class" && document.all ) name = 'className';		
		return obj.setAttribute( name , value );
	}
};
