// JavaScript Document
<!--
function go_photo(n) { //version celsius 1.0
	var j=0, next, prev, new_go;

	num_photos = document.num_photos;
	thumbs = document.thumbs;

	target0 = document.getElementById( 'main_gallery_photo' );
	target0.src = document.full_src[n]; 
	target1 = document.getElementById( 'gallery_sub_title' );
	target1.innerHTML = document.text_src[n]; 

	if (n == 1) {
		prev = num_photos;
	} else {
		prev = (n - 1);
	}
	if (n == num_photos) {
		next = 1;
	} else {
		next = (n + 1);
	}

	target2 = document.getElementById( 'thumb_previous_link' );
	target2.innerHTML = '<img src="images/common/portfolio/thumb_previous.gif" alt="previous photo" name="thumb_previous" width="5" height="9" border="0" id="thumb_previous" onclick="go_photo(' + prev + ');" />';
	target3 = document.getElementById( 'thumb_next_link' );
	target3.innerHTML = '<img src="images/common/portfolio/thumb_next.gif" alt="next photo" name="thumb_next" width="5" height="9" border="0" id="thumb_next" onclick="go_photo(' + next + ');" />';

	for(j=1; j<=thumbs; j++) {
		target = document.getElementById( 'thumb_photo_' + j );
		if (n > num_photos) {
			n = 1;
		}
		target.innerHTML = '<a href=\'#\' onclick=\'javascript:go_photo(' + n + ');\'><img src=\'' + document.thumb_src[n] + '\' /></a>'; 
		n++;
	}

	return true;
}

//-->
