var imageQueue=new Array();

$(window).load(function () {
	$('img.screenshotPrio').each(function() {
		imageQueue.push(this);
	});
			
	$('img.screenshot').each(function() {
		imageQueue.push(this);
	}); 
	
	processLoaderQueue();
}); 

function processLoaderQueue() {
	if (imageQueue.length > 0) {
		var imEl=imageQueue.shift();
		imEl.onload=delayProcessQueue;
		imEl.src=imEl.alt;
		imEl.alt="";
	}
}

function delayProcessQueue() {
	window.setTimeout(processLoaderQueue,100);
}

