var index;
var photos = new Array(24);

function addPhoto(index, url)
{
	var p = new Object();
	p.image = new Image();
	p.image.src = url;
	photos[index] = p;
}

addPhoto(1,"images_/wu_chi_tree.jpg");
addPhoto(2,"images_/moon_light.jpg");
addPhoto(3,"images_/Ward_off_left.jpg");
addPhoto(4,"images_/single_.jpg");
addPhoto(5,"images_/bull_II.jpg");
addPhoto(6,"images_/fist_.jpg");
addPhoto(7,"images_/rooster_.jpg");
addPhoto(8,"images_/fair_lady_cl2.jpg");
addPhoto(9,"images_/Silkworm02.jpg");
addPhoto(10,"images_/strikeTigerCl02.jpg");
addPhoto(11,"images_/StrikeTigersEars_2.jpg");
addPhoto(12,"images_/diagonal_III.jpg");
addPhoto(13,"images_/diagonal_ink_II.jpg");
addPhoto(14,"images_/crane_dance.jpg");
addPhoto(15,"images_/iron_ink_1.jpg");
addPhoto(16,"images_/iron_ink_2.jpg");
addPhoto(17,"images_/Na-Cha_1.jpg");
addPhoto(18,"images_/Na-Cha_2.jpg");
addPhoto(19,"images_/saber-cl.jpg");
addPhoto(20,"images_/san_shou1.jpg");
addPhoto(21,"images_/high_pat_ink.jpg");
addPhoto(22,"images_/strike_tiger-11.jpg");
addPhoto(23,"images_/strike-tiger-ears1.jpg");


photos[1].title = "<span class='style1'>"+ "Tai chi Form - wu chi and tree."+ "</span>" +"<br/>" + "Acrylic on canvas. 20 x 15 cm, 2001";
photos[2].title = "<span class='style1'>"+"Tai chi form - moon light."+"</span>" +"<br/>" + "Acrylic on canvas. 40 x 50 cm, 2001";
photos[3].title ="<span class='style1'>"+ "Tai chi Form - ward off left."+ "</span>" +"<br/>" + "Acrylic on canvas. 40 x 50 cm, 2000";
photos[4].title = "<span class='style1'>"+"Tai chi Form - single whip."+ "</span>" +"<br/>" + "Acrylic on canvas. 80 x 100 cm, 2004";
photos[5].title =  "<span class='style1'>"+"Tai chi form - Intercept the Bull."+ "</span>" +"<br/>" + "Acrylic on canvas. 60 x 80 cm, 2003";
photos[6].title = "<span class='style1'>"+"Tai chi form - fist under Elbow."+ "</span>" +"<br/>" + "Acrylic on canvas. 40 x 50 cm, 2003";
photos[7].title = "<span class='style1'>"+"Tai chi form - Golden Rooster."+ "</span>" +"<br/>" + "Acrylic on canvas. 40 x 50 cm, 2000 ";
photos[8].title = "<span class='style1'>"+"Tai chi form- fair lady weaves at the shuttle"+ "</span>" +"<br/>" + "Acrylic on canvas. 40.5 x 50 cm, 2009 ";
photos[9].title =  "<span class='style1'>"+"The Silkworm's Dream. (Lazily Tying One's Coat)."+ "</span>" +"<br/>" + "Acrylic on canvas. 60 x 30 cm, 2010 ";
photos[10].title = "<span class='style1'>"+"Tai chi form - Strike Tiger."+ "</span>" +"<br/>" + "Acrylic on canvas. 29 x 18 cm, 2011";
photos[11].title = "<span class='style1'>"+"Tai chi form - Strike Tiger's Ears."+ "</span>" +"<br/>" + "Acrylic on canvas. 50 x 70 cm, 2011";
photos[12].title = "<span class='style1'>"+"Tai chi form - Diagonal Flying."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 40 x 36 cm, 1999";
photos[13].title = "<span class='style1'>"+"Tai chi form - Diagonal Flying. "+ "</span>" +"<br/>" + "Chinese ink on rice paper. 19.5x24.5cm, 2002 ";
photos[14].title =  "<span class='style1'>"+" Tai chi form - Crane Dance."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 22 x 28 cm, 2004 ";
photos[15].title = "<span class='style1'>"+"Tai chi form - Iron fan."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 18 x 22 cm, 2004 ";
photos[16].title = "<span class='style1'>"+"Tai chi form - Iron fan."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 17.5 x 24 cm, 2004  ";
photos[17].title = "<span class='style1'>"+"Tai chi Sword - Na - Cha Sounding the Sea."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 28 x 22 cm, 2004 ";
photos[18].title = "<span class='style1'>"+"Tai chi Sword - Na-Cha Sounding the Sea."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 28 x 22 cm, 2004  ";
photos[19].title = "<span class='style1'>"+"Tai chi broad sword- saber."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 24 x 18.5 cm, 2009";
photos[20].title = "<span class='style1'>"+"Tai chi dance - san shou - two man set."+ "</span>" +"<br/>" + "Chinese ink on rice paper. 23 x 17 cm, 2007";
photos[21].title = "<span class='style1'>"+"Tai Chi Form - High Pat on Horse "+ "</span>" +"<br/>" + "Chinese ink on rice paper. ";
photos[22].title = "<span class='style1'>"+"Tai Chi Form - Strike Tiger "+ "</span>" +"<br/>" + "Chinese ink on rice paper. 18 x 24 cm, 2010";
photos[23].title = "<span class='style1'>"+"Tai Chi Form - Strike Tiger's Ears "+ "</span>" +"<br/>" + "Chinese ink on rice paper. 15 x 18 cm, 2011";



photos[1].text = " begin logically with chaos, that is most natural, and I am at ease, because at that start, I may myself be chaos. The Thinking Eye - Paul Klee";
photos[2].text = "";
photos[3].text = "";
photos[4].text = "";
photos[5].text = "";
photos[6].text = "";
photos[7].text = "";
photos[8].text = "";
photos[9].text = "";
photos[10].text = "";
photos[11].text = "";
photos[12].text = "";
photos[13].text = "";
photos[14].text = "";
photos[15].text = "";
photos[16].text = "";
photos[17].text = "";
photos[18].text = "";
photos[19].text = "";
photos[20].text = "";
photos[21].text = "";
photos[22].text = "";
photos[23].text = "";



function moveUp()
{
	index=index+1;
	if (index==24)
	{
		index=1;
	}
	showPhoto(index);	
}

function moveDown()
{
	index=index-1;
	if (index==0)
	{
		index=23
	}
	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');
	index = num;
}




