var index;
var photos = new Array(14);

function addPhoto(index, url)
{
	var p = new Object();
	p.image = new Image();
	p.image.src = url;
	photos[index] = p;
}

addPhoto(1,"images_/shoulder_.jpg");
addPhoto(2,"images_/white_crane.jpg");
addPhoto(3,"images_/lute_.jpg");
addPhoto(4,"images_/brush_knee.jpg");
addPhoto(5,"images_/brush_push.jpg");
addPhoto(6,"images_/Intercept_.jpg");
addPhoto(7,"images_/shoulder_ink.jpg");
addPhoto(8,"images_/white_ink.jpg");
addPhoto(9,"images_/lute_ink.jpg");
addPhoto(10,"images_/brush_knee_ink.jpg");
addPhoto(11,"images_/brush_push_ink.jpg");
addPhoto(12,"images_/Intercept_ink.jpg");
addPhoto(13,"images_/cross_hands.jpg");

photos[1].title = "<span class='style1'>"+ "Tai chi form - Shoulder Stroke."+ "</span>" +"<br/>" + "Acrylic on canvas. 35 x 50 cm, 2001";
photos[2].title = "<span class='style1'>"+"Tai chi form - white crane. "+"</span>" +"<br/>" + "Acrylic on canvas. 35 x 50 cm, 2001";
photos[3].title ="<span class='style1'>"+ "Tai chi form - play the lute."+ "</span>" +"<br/>" + "Acrylic on canvas. 35 x 25 cm, 2002";
photos[4].title = "<span class='style1'>"+"Tai chi form - brush knee. "+ "</span>" +"<br/>" + "Acrylic on canvas. 35 x 50 cm, 2004";
photos[5].title =  "<span class='style1'>"+"Tai chi form - brush knee and push."+ "</span>" +"<br/>" + "Acrylic on canvas. 35 x 45 cm, 2004";
photos[6].title = "<span class='style1'>"+"Tai chi form - Intercept and Punch."+ "</span>" +"<br/>" + "Acrylic on canvas. 40 x 30 cm, 2002";
photos[7].title = "<span class='style1'>"+"Tai chi form - Shoulder Stroke."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 18 x 20 cm, 2001 ";
photos[8].title = "<span class='style1'>"+"Tai chi form - white crane."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 18 x 16 cm, 2001 ";
photos[9].title =  "<span class='style1'>"+"Tai chi form - play the lute."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 18 x 21 cm, 2002 ";
photos[10].title = "<span class='style1'>"+"Tai chi form - brush knee. "+ "</span>" +"<br/>" + "Chinese ink on rice paper. 23 x 18 cm, 2004";
photos[11].title = "<span class='style1'>"+"Tai chi form - brush knee and push. "+ "</span>" +"<br/>" + "Chinese ink on rice paper. 28 x 28 cm, 1997 ";
photos[12].title =  "<span class='style1'>"+"Tai chi form - Intercept and Punch. "+ "</span>" +"<br/>" + "Chinese ink on rice paper. 22 x 20 cm, 2002  ";
photos[13].title = "<span class='style1'>"+"Tai chi form - cross hands. "+ "</span>" +"<br/>" + "Chinese ink on rice paper. 26 x 20 cm, 1998 ";

photos[1].text = "A mountain, a tree, a mountain goat, may all stand for rootedness and stability." +"<br/>" + "The Shoulder Stroke posture emulates these qualities.";
photos[2].text = "The observing of all natural phenomena and the animal kingdom, in particular, influenced the shape, content and patterns of Tai Chi Chuan. The way animals move is both efficient and pure in the sense that they, as instinctual creatures, are very close to the ''source''. Their movements evoke feelings of harmony and natural beauty. Images of animals seem to act on the psyche of humans and serve as powerful symbols.";
photos[3].text = "Using subject matter that is derived from the name of the posture enables the movement to expand, reach out and be led into the realm of relationships and may bring about a story in the mind heart and eyes of the onlooker.";
photos[4].text = "";
photos[5].text = "";
photos[6].text = "";
photos[7].text = "It is as if imperfection becomes a tool that is deliberately used to create an image of the posture which is slightly off exactness as it were and in doing so to allow the human eye its tendency to resolve and complete what it perceives.";
photos[8].text = "";
photos[9].text = "";
photos[10].text = "To paint or brush-draw a movement, it helps to know the movement and feel it with in the body, its ''final'' shape, where it comes from, where it is about to go.";
photos[11].text = "";
photos[12].text = "";
photos[13].text = "";

function moveUp()
{
	index=index+1;
	if (index==14)
	{
		index=1;
	}
	showPhoto(index);	
}

function moveDown()
{
	index=index-1;
	if (index==0)
	{
		index=13
	}
	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 Form')
	index = num;
}

