function Popup()
{
	this.popup_visualizar = false;
}

Popup.prototype.visualizar = function(url)
{
	if(!this.popup_visualizar)
	{
		this.popup_visualizar = document.getElementById('layerGeral_popupZoom').innerHTML;
	}	
	else
	{
		document.getElementById('layerGeral_popupZoom').innerHTML = this.popup_visualizar;
	}	
	
	document.getElementById('layerGeral_popupZoom').style.display = '';
	document.getElementById('layerOpaco_popupZoom').style.display = '';
	
	var pagina = Diversos.getPageSize();
	
	document.getElementById('layerGeral_popupZoom').style.height = pagina.pageHeight + 'px';
	document.getElementById('layerGeral_popupZoom').style.width = pagina.pageWidth + 'px';
	
	document.getElementById('layerOpaco_popupZoom').style.height = pagina.pageHeight + 'px';
	document.getElementById('layerOpaco_popupZoom').style.width = pagina.pageWidth + 'px';
		
	if(url)
	LinkAjax.send(url, 'principal', 'carregando-popupZoom');
}

Popup.prototype.visualizarFechar = function()
{
	document.getElementById('layerOpaco_popupZoom').style.display = 'none';
	document.getElementById('layerGeral_popupZoom').style.display = 'none';
}

Popup.prototype.iframe = function(url)
{
	var html = '<div id="modulo_noticias">';
		html += '<div class="fechar" align="right" style="padding-right: 10px; padding-top:5px;">';
		html += '<a onclick="Popup.visualizarFechar();" class="fechar">Fechar X</a>';
		html += '</div>';
		html += '<iframe scrolling="no" src="'+url+"/idImg/" + indexImagem + '" height="400px" width="688px" style="border: 0;">';
		html += '</iframe></div>';
	document.getElementById('principal').innerHTML = html;
	
	//alert(url+"/idImg/"+indexImagem);
		
	document.getElementById('layerGeral_popupZoom').style.display = '';
	document.getElementById('layerOpaco_popupZoom').style.display = '';
	
	var pagina = Diversos.getPageSize();
	
	document.getElementById('layerGeral_popupZoom').style.height = pagina.pageHeight + 'px';
	document.getElementById('layerGeral_popupZoom').style.width = pagina.pageWidth + 'px';
	
	document.getElementById('layerOpaco_popupZoom').style.height = pagina.pageHeight + 'px';
	document.getElementById('layerOpaco_popupZoom').style.width = pagina.pageWidth + 'px';
}

var Popup = new Popup();

