I don't know if this is your problem or not. One thing I don't know is what 'Gallery' really is. Is it a constructor? Consider the following:
function blob(){}; //create a constructor function for a 'blob' object
Code:
var v = new blob(); //create a blob
v.prototype.imageSrcs = new Array('1','2','3');//this causes an error when you use it on an instance of a blob
blob.prototype.imageSrcs = new Array('1','2','3'); //this works, because blob is a constructor
window.onload = function(){alert(v.imageSrcs);} //this works--it will display your array
window.onload = function(){alert(blob.imageSrcs);} // this won't work--imageSrcs shows as undefined
I hope this makes sense.
Bookmarks