
function doOpen() {
	var elBody = Ext.get(document.body);
	var el = Ext.get('detalhes-foto');
	//elBody.mask();
	elBody.appendChild(el);
	el.center(elBody);
	el.dom.style.visibility = 'visible';
	el.fadeIn({
		endOpacity: 1,
		easing: 'easeIn',
		duration: .0,
		callback: function() {
			el.frame("ffffff", 2, { duration: 0.0 });
		}
		
		
	});
	
}

function doMsg(msg) {
	var elBody = Ext.get(document.body);
	var el = Ext.get('msg');
	var msgText = Ext.get('msgText');
	//elBody.mask();
	msgText.dom.innerHTML = msg;	
	elBody.appendChild(el);
	el.center(elBody);	
	el.dom.style.visibility = 'visible';
	/*el.fadeIn({
		endOpacity: 1,
		easing: 'easeIn',
		duration: .8,
		callback: function() {
			el.frame("ffffff", 2, { duration: 0.8 });
		}
		
	});*/
}

function doCloseMsg() {
	var el = Ext.get('msg');
	el.ghost('b', {
		endOpacity: 0,
		easing: 'easeOut',
		duration: .8,
		callback: function() {
			Ext.get(document.body).unmask();
		}
	});
}


function doClose() {
	var el = Ext.get('detalhes-foto');
	el.ghost('b', {
		endOpacity: 0,
		easing: 'easeOut',
		duration: .8,
		callback: function() {
			Ext.get(document.body).unmask();
		}
	});
}


function doOpen2(imagem) {
	var elBody = Ext.get(document.body);
	
	var el = Ext.get('detalhes-foto');
	//var dov = document.getElementById('detalhes-foto');
	//dov.style.width = '535px';
	//dov.style.top = '10px';
	var boxImagem = document.getElementById("boxImagem");
	boxImagem.src = 'images/' + imagem;
	//elBody.mask();
	elBody.appendChild(el);
	el.center(elBody);
	el.dom.style.visibility = 'visible';
	el.fadeIn({
		endOpacity: 1,
		easing: 'easeIn',
		duration: .0,
		callback: function() {
			el.frame("ffffff", 2, { duration: 0.0 });
		}//end callback
		
	});
}
