$(document).ready(function() {
var cantidad = 1; //cambiar esto al numero de paginas que haya
var numeroAleatorio = Math.floor(Math.random()*cantidad+1);
var fichero = 'img/chat/fchat'+numeroAleatorio+'.html';
	$('#aleatorio').load(fichero, '', function(response, status, xhr) {
		if (status == 'error') {
				var msg = "Sorry but there was an error: ";
					$(".content").html(msg + xhr.status + " " + xhr.statusText);
		}
	});
});

