(function(){
	
	// Registrando Classes
	window.DHTML = DHTML

	function DHTML()
	{
		// Objeto
		var dhtml = this
		
		// Atributos
		var largura, altura, posX, posY
		
		// Atributos View
		var node
		
		// Constructor
		function __Constructor(vNode)
		{
			// Registrando Elemento DHTML
			node = vNode
			
			// Registrando Dimensões
			largura = $("object", node).attr("width")
			altura = $("object", node).attr("height")
			
			// Registrando Posição
			this.posicaoX.CENTER = posX = (document.body.offsetWidth - largura)/2
			this.posicaoY.CENTER = posY = (document.body.offsetHeight - altura)/2
			
			// Registrando "fisicamente"
			node.style.left = posX + 'px'
			node.style.top = posY + 'px'
		}
		
		this.posicao = function(x, y)
		{
			this.posicaoX(x), this.posicaoY(y)
		}
		
		this.posicaoX = function(x)
		{
			if(x==null) return posX
			
			posX = x
			node.style.left = posX + 'px'
		}
		this.posicaoY = function(y)
		{
			if(y==null) return posY
			
			posY = y
			node.style.top = posY + 'px'
		}
		
		// Métodos Públicos
		this.mostrar = function()
		{
			node.style.display = 'block'
			setTimeout(function(){ dhtml.fechar() }, 10000)
		}
		
		this.fechar = function()
		{
			node.style.display = ''
		}
		
		// Métodos Privados
		
		__Constructor.apply(this, arguments)
	}
	
})()
