// NEW Box 9 - 4 images to each container (multidimensional array)

var images1 = new Array() ;

images1[0] = new Array(
"4228_t.jpg","4222_t.jpg","4557_t.jpg", //Images
"Edward.Lawrenson","Val.McLean","Phill.Hopkins", //Links
"Edward Lawrenson","Val McLean","Phill Hopkins" //Alt/Title 
) ; 
images1[1] = new Array(
"4431_t.jpg","4328_t.jpg","4438_t.jpg", //Images
"Petr.Dub","Junko.Otake","Charlotte.E.Padgham", //Links
"Petr Dub","Junko Otake","Charlotte E Padgham" //Alt/Title 
) ;
images1[2] = new Array(
"4198_t.jpg","4342_t.jpg","4339_t.jpg", //Images
"Nika.Neelova","Malene.Hartmann.Rasmussen","Katie.Johnston", //Links
"Nika Neelova","Malene Hartmann Rasmussen","Katie Johnston" //Alt/Title
) ;

images1[3] = new Array(
"4017_t.jpg","4176_t.jpg","4563_t.jpg", //Images
"Antti.Leppnen","Yeojoo.Park","Ben.Long", //Links
"Antti Leppnen","Yeojoo Park","Ben Long" //Alt/Title
) ;
images1[4] = new Array(
"","","", //Images
"","","", //Links
"","","" //Alt/Title
) ;
images1[5] = new Array(
"3988_t.jpg","4155_t.jpg","4379_t.jpg", //Images
"Stephanie.Northcote","Daniel.Bischoff","Iris.Tenkink", //Links
"Stephanie Northcote","Daniel Bischoff","Iris Tenkink" //Alt/Title
) ;

images1[6] = new Array(
"4441_t.jpg","4162_t.jpg","4471_t.jpg", //Images
"Het.Het","FocAR.Group","Neil.Ayling", //Links
"Het Het","FocAR Group","Neil Ayling" //Alt/Title
) ;
images1[7] = new Array(
"3486_t.jpg","4267_t.jpg","4418_t.jpg", //Images
"Theo.Kaccoufa","Adam.John.Kennedy","Steven.Quinn", //Links
"Theo Kaccoufa","Adam John Kennedy","Steven Quinn" //Alt/Title
) ;
images1[8] = new Array(
"3547_t.jpg","4185_t.jpg","4264_t.jpg", //Images
"KERIM.AYTAC","Zoe.Bulbeck","Elizabeth.Jordan", //Links
"KERIM AYTAC","Zoe Bulbeck","Elizabeth Jordan" //Alt/Title
) ;


containerId = 0 ; // id corresponding to body html
i = 0 ; // Image array counter



function animate(){
	
// Center Image - image remains constant
if (containerId==4){ 
document.getElementById(containerId).src='img/176/toby-zeigler-alienation-of-objects-176.jpg';
document.getElementById(containerId).parentNode.href ='http://www.artlyst.com/events/toby-ziegler-the-alienation-of-objects-zabludowicz-collection';	



// MAIN SECTION

// Replace array data for each item	
}else{ 
	document.getElementById(containerId).src = "http://www.artlyst.com/img/myartlyst/gallery/" + images1[containerId][i] ;
	document.getElementById(containerId).parentNode.href = "http://www.artlyst.com/" + images1[containerId][i+3] ;
	
	document.getElementById(containerId).alt = images1[containerId][i+8] ;
	document.getElementById(containerId).title = images1[containerId][i+8] ;
	}
	
	// Increment section
	containerId++ ; 
		if (containerId == 9) {
				containerId = 0; i++; // Start from first container again
		} ; 
			
			// Iterates 9 thumbs x (4 times)
			if (i == 3) {// gone thru 4 arrays in file
				i = 0; // reset to first in file
			}
	
	}




///////////////////////////////////////////////////////////////////////////////////////////////////
// FEATURED 3 Alternating images (multidimensional array)

/*
featured = new Array() ;



featured[0] = new Array('img/tate-modern/tate-modern-exposed.jpg',
						'Tate Modern - Exposed',
						'/events/exposed-voyeurism-surveillance-and-the-camera-tate-modern') ;





featured[1] = new Array('img/featured/david-blandy-child-of-the-atom_2.jpg',
						"David Blandy 'Child of the Atom' Seventeen Gallery",
						'http://www.artlyst.com/events/david-blandy-child-of-the-atom-seventeen-gallery') ;




j = 0 ;

function change(){
	document.getElementById('featured_img').src = featured[j][0] ;
	document.getElementById('featured_img').alt = featured[j][1] ;
	document.getElementById('featured_img').title = featured[j][1] ;
	
	document.getElementById('featured_link').href = featured[j][2] ;  
	
	j++; if(j>=2){j=0}
}

*/
