// JavaScript Document
var Loader = new function(){
	//H
	this.hide = function(){
		if(loader)loader.style.display = 'none';
	}
	
	//I
	this.init = function(){
		loader = $('LoaderGeneral');
	}
	
	//S
	this.show = function(){
		if(!iniciado)this.init();
		loader.style.top = Math.round((HScreen()-loader.offsetHeight)/2+YPos())+'px';		
		loader.style.width = Math.round((WScreen()-loader.offsetWidth/2))+'px';
		loader.style.visibility = 'visible';
	}
	
	var loader = null;
	var iniciado = false;
}
