// ************************************************************
// LOADING NOTIFY METHODS
// ************************************************************

var loadingNotifyDiv = null;
var loadingCount = 0;

// Creates loading notify div
function CreateLoading()
{
	text = "Carregando...";
	/*if(!loadingNotifyDiv)
	{
		
		// Creates a div
		loadingNotifyDiv = document.createElement("div");
		loadingNotifyDiv.className = "loadingNotify"; //class that contains div style
		loadingNotifyDiv.style.position = "Absolute";
		PositionLoading();

		document.body.appendChild(loadingNotifyDiv);
		
		window.onscroll = PositionLoading;
	}
	
	// Increments the loading count
	loadingCount++;

	// Updates the text	
	loadingNotifyDiv.innerHTML = text;*/
}

function DestroyLoading()
{
	/*loadingCount--;
	if(loadingCount==0)
	{
		// Destroys the div and resets the parameters
		document.body.removeChild(loadingNotifyDiv);
		loadingNotifyDiv = null;
		loadingNotifyTimer = -1;
		
		window.onscroll = null;
	}*/
}

function PositionLoading()
{
	if(loadingNotifyDiv)
	{
		// Gets the scrolled top of the page
		var scrollTop = document.all ? document.body.scrollTop: window.pageYOffset;
		loadingNotifyDiv.style.top = scrollTop + "px";
		loadingNotifyDiv.style.left =  "870px";
	}
}
