def gen_imagesrc(d, l):
	""" Produces the HTML code for that set of images.
		d is a dict containing the name, date, location, directory, and 
		list of pictures. l is 1 if this is a sub page, and 0 if this is 
		home. """
	name = d['name']
	date = d['date']
	location = d['location']
	directory = d['directory']
	files = d['pics']
	if (l == 1):
		p = '<a class="nav" href="index.html">Go Home</a>'
	else:
		p = '<a class="nav" href="'+directory+'.html">Go to page</a>'
	srcd = '<div class="image_set"><div class="left"><h2 class="title">'+name+'</h2><p class="date">'+date+'</p><p class="location">'+location+'</p>'+p+'</div><div class="images">'
	for i in files:
		srcd = srcd + '<a href="'+directory+'/original/'+i+'"><img src="'+directory+'/final/'+i+'" class="img"/></a>'
	scrd = srcd + '</div></div>'
	return scrd