/* javascript for the photo gallery follows */

var current_pic_index = '01';
var current_pic = 'photos/pic_01.jpg';

function showPic (whichpic)
{
	current_pic_index = whichpic.substr((whichpic.search("pic_")+4),2);
	current_pic = whichpic;
	if (document.getElementById)
	{
		document.getElementById('big')
		.src = whichpic;
		/*
		if (desc)
		{
			document.getElementById('desc')
			.childNodes[0].nodeValue = desc;
		}
		*/
	}
	else
	{
		return true;
	}
}

function prev()
{
	if(Number(current_pic_index) > 1)
	{
		var prev = Number(current_pic_index)-1;
		if (prev < 10) prev = 0 + String(prev);
		current_pic = current_pic.replace(String(current_pic_index), prev);
		showPic(current_pic);
	}
}

function next()
{
	var next = Number(current_pic_index)+1;
	if (next < 10) next = 0 + String(next);	
	current_pic = current_pic.replace(String(current_pic_index), next);
	showPic(current_pic);	
}

/* end javascript for photo gallery */
