
function showLoadingMessage()
{
	Effect.Appear("loading", {duration: .8, from: 0, to: 0.5, queue: 'end'});
}
function hideLoadingMessage()
{
	Effect.Fade("loading", {duration: .3, from: 0.5, to: 0, queue: 'end'});
}



function loadingPos(loadingId,contenedorId)
{
	var load = document.getElementById(loadingId);
	
	load.style.top=getOff(contenedorId,"top")+'px';
	load.style.left=getOff(contenedorId,"left")+'px';
	load.style.width=getOff(contenedorId,"width")-10+'px';
	load.style.height=getOff(contenedorId,"height")+'px';
}

function getOff(id,parte)
{
	switch(parte){

		case "top":
		x = document.getElementById(id);
		return x.offsetTop;
		break;
		
		case "left":
		x = document.getElementById(id);
		return x.offsetLeft;
		break;

		case "width":
		x = document.getElementById(id);
		return x.offsetWidth;
		break;

		case "height":
		x = document.getElementById(id);
		return x.offsetHeight;
		break;
		
	}

}
