function showLightBoxHome(urlRef){
	document.getElementById('fade').style.display = 'block';
	var d = document.createElement("div");
		d.setAttribute("id", "content");
		document.getElementById('over').appendChild(d);
	
	$.ajax({
		url: urlRef,
		async:true,
		beforeSend: function(objeto){
			loadingFunction();
			/*
			alert("Adiós, me voy a ejecutar");
			*/
		},
		complete: function(objeto, exito){
			/*
			alert("Me acabo de completar")
			if(exito=="success"){
				alert("Y con éxito");
			}
			*/
		},
		contentType: "application/x-www-form-urlencoded;",
		dataType: "html",

		error: function(objeto, quepaso, otroobj){
			//alert("Estas viendo esto por que fallé");
			//alert("Pasó lo siguiente: "+quepaso);
		},
		global: true,
		ifModified: false,
		processData:true,
		success: function(datos){
			$("#content").html(datos);
			$("#over").fadeIn("normal",function(){});
			$("#fade").html('');
		},
		timeout: 3000,
		type: "GET"
	});
}

function loadingFunction(){
	var img = "<div style=\"width:31px;top:50%;left:50%;position:absolute;margin-left:-15px;margin-top:-15px\"><img src=\"img/ajaxloader.gif\" border=\"0\" align=\"middle\" /></div>";
	$("#fade").html(img);
}

function cerrarLightBoxHome(){
	$("#content").html('');
	$("#over").fadeOut("fast", function(){
		$("#fade").fadeOut("fast", function(){});
	});
	
	var d = document.getElementById('content');
	document.getElementById('over').removeChild(d);	
}
