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(1127); NEW_gallery.images = ['_uploaded/ChaganiNoorAli1.jpg', '_uploaded/ChaganiNoorAli2.jpg']; NEW_gallery.captions = ['Untitled | 2012 | work in progress', 'Untitled | 2012 | work in progress']; NEW_gallery.img_widths = ['710', '710']; NEW_gallery.img_heights = ['533', '533']; resident_galleries[1127] = NEW_gallery; ///////////////////////////////////