function openPop(content)
{
	var widthBlack = $('html').width();
	var heightWindow = $(window).height();
	var heightHtml = $('html').height();
	
	var heightTot = (heightWindow > heightHtml) ? heightWindow : heightHtml;
		
	$('#black').css({width:widthBlack+"px", height:heightTot+"px", opacity:0.6, filter:"alpha(opacity=60)", display:"block", zIndex:999});
	$('#white').html(content);
	
	var heightContent = $('#white').height();
	var heightScroll = $(document).scrollTop();
	
	var halfHeightContent = (heightContent/2);
	var offset = 150;

	var positionTop = heightScroll + (heightWindow/2) - halfHeightContent - offset;
	
	$('#white').css({top: positionTop+"px"});
	
	$('#white').fadeIn(500);
	$('#black').click(function(){
		closePop();
	});
}

function closePop()
{
	$("#xxx").val("");
	$('#black').fadeOut(500);
	$('#white').fadeOut(500);
}


function apri()
{
	clearTimeout(t);
	$('.area a').addClass('active');
	$('.boxModulo').show();
}
function chiudi()
{
	$('.area a').removeClass('active');
	$('.boxModulo').hide();
}
function rec()
{
	$('#aRis').hide();
	$('.lPwd').hide();
	$('#recPwd').show();
	$('.eLog').show();
}
function logIn()
{
	$('#aRis').show();
	$('.lPwd').show();
	$('#recPwd').hide();
	$('.eLog').hide();
}

