I have been modifying a 3D spherical photo gallery created in Actionscript 3. I am having trouble with one of the arrays. It all works as planned until you click on a thumb from thumbArray [10] to thumbArray[12] instead of loading the corresponding image in picArray's it loads the first image in picArray[1]. I would appreciate any suggestions. The sphere as it is now can be viewed at http://chinainflash.t35.com/
The section of code I believe where the trouble is and the arrays are as follows.
Code:
function picClicked(e:MouseEvent):void {
	var targName:String="";
	var i:int;
	var j:int;
	targName=e.currentTarget.name;
	i=int(targName.charAt(3));
	j=int(targName.substring(5,targName.length));
	board.visible=false;
	loader.load(new URLRequest(picArray[i][j]))
	
             textBox.text="";
	loadBox.text="Loading...";
	loadBox.visible=true;
	
// the arrays

function setUp():void {
	thumbArray[0]=[new Bitmap(new T001(100,75))];

	picArray[0]=["pic001.jpg"];

	thumbArray[1] = [new Bitmap(new T002(100,75)), new Bitmap(new T003(100,75)), new Bitmap(new T004(100,75)),
	new Bitmap(new T005(100,75))];

	picArray[1]=["pic002.jpg","pic003.jpg","pic004.jpg","pic005.jpg"];

// continues the same all the way to the end

thumbArray[10] = [new Bitmap (new T106(100,75)), new Bitmap (new T107(100,75)), new Bitmap (new T108 (100,75)),
	new Bitmap (new T109(100,75)), new Bitmap (new T110(100,75)), new Bitmap (new T111 (100,75))];

	picArray[10]=["pic106.jpg","pic107.jpg","pic108.jpg","pic109.jpg","pic110.jpg","pic111.jpg"];

	thumbArray[11] = [new Bitmap (new T112(100,75)), new Bitmap (new T113(100,75)), new Bitmap (new T114(100,75)),
	new Bitmap (new T115(100,75))];

	picArray[11]=["pic112.jpg","pic113.jpg","pic114.jpg","pic115.jpg"];

	thumbArray[12]=[new Bitmap(new T116(100,75))];

	picArray[12]=["pic116.jpg"];

}
If someone has a suggestion or somewhere I could research it more I would be gratefull.
thank you