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(3312); NEW_gallery.images = ['_uploaded/ToniJouni1_3.jpg', '_uploaded/ToniJouni2_1.jpg']; NEW_gallery.captions = [''Shore', 2014, acrylic on canvas, 120x100 cm', ''Sail/sky', 2014, pastel on paper, 33x21 cm']; NEW_gallery.img_widths = ['642', '710']; NEW_gallery.img_heights = ['535', '500']; resident_galleries[3312] = NEW_gallery; ///////////////////////////////////