var IE = document.all ? true : false ;

// Elementos HTML //
		
function getDimensionElementoHTML( oElemento )
{
	var dimension = { 'h': 0, 'w': 0 } ;
	
	if ( oElemento.clientHeight )
		dimension.h = oElemento.clientHeight ;
	if ( oElemento.clientWidth )
		dimension.w = oElemento.clientWidth ;
		
	return dimension ;
}

function getPosicionElementoHTML( oElemento )
{
	var posicion = { 'x': 0, 'y': 0 } ;
	
	if ( oElemento.offsetParent )
	{
		while ( oElemento.offsetParent )
		{
			posicion.x += oElemento.offsetLeft ;
			posicion.y += oElemento.offsetTop ;
			oElemento = oElemento.offsetParent ;
		}
	}
	else if ( oElemento.y )
	{
		posicion.x += oElemento.x ;
		posicion.y += oElemento.y ;
	}
	
	return posicion ;
}

function transparentar( oCapa, nTransparencia )
{
	if ( IE )
		oCapa.filters.alpha.opacity = nTransparencia * 100 ;
	else
		oCapa.style.MozOpacity = nTransparencia ;
}

function cerrar()
{
	var sCapa = cerrar.arguments.length > 0 ? cerrar.arguments[0] : 'ventana' ;
	if ( document.getElementById )
	{
		if ( document.getElementById( sCapa ) )
		{
			document.getElementById( sCapa ).innerHTML = '' ;
			document.getElementById( sCapa ).style.display = 'none' ;
		}
	}
}
