var index;
var photos = new Array(13);

function addPhoto(index, url)
{
	var p = new Object();
	p.image = new Image();
	p.image.src = url;
	photos[index] = p;
}

addPhoto(1,"images_/wu_chi.jpg");
addPhoto(2,"images_/wardOff_index.jpg");
addPhoto(3,"images_/rollBack_index.jpg");
addPhoto(4,"images_/press_index.jpg");
addPhoto(5,"images_/push_index.jpg");
addPhoto(6,"images_/single_whip.jpg");
addPhoto(7,"images_/wu_ink.jpg");
addPhoto(8,"images_/ward_ink.jpg");
addPhoto(9,"images_/roll_ink.jpg");
addPhoto(10,"images_/press_.jpg");
addPhoto(11,"images_/push_.jpg");
addPhoto(12,"images_/single_ink.jpg");


photos[1].title = "<span class='style1'>"+ "Tai Chi Form - wu chi "+ "</span>" +"<br/>" + "Acrylic on canvas. 29 x 15 cm, 2001 ";
photos[2].title = "<span class='style1'>"+"Tai chi form - ward off left. "+"</span>" +"<br/>" + "Acrylic on canvas. 29 x 15 cm, 2001";
photos[3].title ="<span class='style1'>"+ "Tai chi form - roll back."+ "</span>" +"<br/>" + "Acrylic on canvas. 29 x 15 cm, 2001";
photos[4].title = "<span class='style1'>"+"Tai chi form - Press. "+ "</span>" +"<br/>" + "Acrylic on canvas. 29 x 15 cm, 2001";
photos[5].title =  "<span class='style1'>"+"Tai chi form - push."+ "</span>" +"<br/>" + "Acrylic on canvas. 29 x 15 cm, 2001";
photos[6].title = "<span class='style1'>"+"Tai chi form - single whip."+ "</span>" +"<br/>" + "Acrylic on canvas. 30 x 40 cm, 2001";
photos[7].title = "<span class='style1'>"+"Tai chi form - wu chi."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 20 x 11 cm, 2001 ";
photos[8].title = "<span class='style1'>"+"Tai chi form - ward off left."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 20 x 17 cm, 2000";
photos[9].title =  "<span class='style1'>"+"Tai chi form - roll back."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 22 x 13 cm, 2000 ";
photos[10].title = "<span class='style1'>"+"Tai chi form - Press. "+ "</span>" +"<br/>" + "Chinese ink on rice paper. 21 x 16 cm, 2001";
photos[11].title = "<span class='style1'>"+"Tai chi form - push. "+ "</span>" +"<br/>" + "Chinese ink on rice paper. 20 x 16 cm, 2001 ";
photos[12].title =  "<span class='style1'>"+"Tai chi form - single whip. "+ "</span>" +"<br/>" + "Chinese ink on rice paper.20 x 18 cm, 2001";

photos[1].text = "''My body is in accord with my mind, my mind with my energies (chi), my energies with my spirit, my spirit with Nothing.'' (The Book of Lieh-tzu. Translated by A.C. Graham).";
photos[2].text = "";
photos[3].text = "";
photos[4].text = "";
photos[5].text = "";
photos[6].text = "";
photos[7].text = "''Wu Chi. - Tai Chi comes from Wu Chi and is the mother of Yin and Yang. In motion it separates: In stillness they fuse'' (The Essence of Tai Chi Chuan. Lo/Inn/Amacker/Foe.)";
photos[8].text = "What is the meaning of ''Ward Off'' energy? ''It is like the water supporting a moving boat.'' (Tai Chi Chuan For Health and Self-Defense. By  Master T.T. Liang.)";
photos[9].text = "";
photos[10].text = "";
photos[11].text = "";
photos[12].text = "The movement and the background should mingle without loosing the image. The movement reaches out to blend with the background while the background pours into the moving image.";

function moveUp()
{
	index=index+1;
	if (index==13)
	{
		index=1;
	}
	showPhoto(index);	
}

function moveDown()
{
	index=index-1;
	if (index==0)
	{
		index=12
	}
	showPhoto(index);
}

function showPhoto(num) 
{
	var photo = photos[num];
	document.mag.src=photo.image.src;
	document.getElementById('title_').innerHTML = photo.title;
	document.getElementById('description_').innerHTML = photo.text;
	document.mag.alt = ('Tai Chi Movement Paintings')
	index = num;
}

