	var num_of_images = 88;
	
	function fetchImages(word, nocache) {
	  $.getJSON('pD/pDengine.php?time=' + new Date().getTime() + '&word=' + word + (nocache ? "&nocache" : ""), function(data) {
	  	if(data.command == 'imageResponse') {
			if(window.num_of_images && data.images.length) {
				for(i = 0; i < window.num_of_images; i++) {
					window.document.images['img' + i].src = data.images[i % data.images.length];
				}
			}
	  	}
	  });
	  
	  return false;
	}
	
	$(document).ready(function() {
		fetchImages('web 2.0');
	});
