var resident_galleries = new Array(); function create_resident_gallery(gallery_id) { this.gallery_id = gallery_id; this.images = []; this.captions = []; this.img_widths = []; this.img_heights = []; } var NEW_gallery = new create_resident_gallery(3304); NEW_gallery.images = ['_uploaded/StewartFraser1_2.jpg', '_uploaded/StewartFraser2_1.jpg', '_uploaded/StewartFraser3_1.jpg']; NEW_gallery.captions = [''Behind the wheel', 2014', ''Behind the wheel', 2014', ''Behind the wheel', 2014']; NEW_gallery.img_widths = ['710', '357', '357']; NEW_gallery.img_heights = ['474', '535', '535']; resident_galleries[3304] = NEW_gallery; ///////////////////////////////////