Event.observe(window, 'load', function() {	
	$('filmreel').childElements().each(function(obj,i) {
		obj.observe('click',function(e) {
			Event.stop(e);
			var id = obj.id;
			id = id.substr(2);
			var img = new Element('img',{ src:'./images/'+id+'.jpg' });
			$('sample').firstDescendant().remove();
			$('sample').insert(img);
		});
	});
});