var currentNum = 0;
$(window).on("load", function() {
	$(".se-pre-con").fadeOut("slow");
	var images = $('.page-header').children();
	setInterval(function(){
		headImageSwitcher(images);
	}, 4000);
});

function headImageSwitcher(images) {
	var random = Math.ceil(Math.random() * images.length);
	console.log(currentNum + ' -> ' + random);
	if (random - 1 == currentNum) {
		setTimeout(function(){}, 2000);
		return;
	}
	$(images[currentNum]).fadeOut(2000);
	$(images[random - 1]).fadeIn(2000);
	currentNum = random - 1;
}
var currentNum = 0;
$(window).on("load", function() {
	$(".se-pre-con").fadeOut("slow");
	var images = $('.page-header').children();
	setInterval(function(){
		headImageSwitcher(images);
	}, 4000);
});

function headImageSwitcher(images) {
	var random = Math.ceil(Math.random() * images.length);
	if (random - 1 == currentNum) {
		setTimeout(function(){}, 2000);
		return;
	}
	$(images[currentNum]).fadeOut(2000);
	$(images[random - 1]).fadeIn(2000);
	currentNum = random - 1;
}
remove log