function wmxThumbnailList()
{
	var _nextLink;
	var _backLink;
	var _pageNumber = 1;
	var _imagesPerPage;
	var _photoDataListPage1;
	var _photoDataListPage2;
	var _imageRotator;
	
	this.clientId = '';
	this.imageRotator = null;
	this.countPerPage = 0;

	this.Initialize = function()
	{
		_photoDataListPage1 = document.getElementById(this.clientId + "_PhotoDataList");
		_photoDataListPage2 = document.getElementById(this.clientId + "_PhotoDataList2");
		_imageRotator = this.imageRotator;
		_imagesPerPage = this.countPerPage;
		
		if (_photoDataListPage2 != null)
		{
			_photoDataListPage2.style.display = "none";
		
			_nextLink = document.createElement("a");
			_backLink = document.createElement("a");
			
			_nextLink.id = "MorePhotosLink";
			_nextLink.innerHTML = "More Photos";
			_nextLink.href = "#";
			_nextLink.onclick = this.NextLink_Click;
			_nextLink.className = "paging_link";
			_nextLink.style.display = "inline";
			
			_backLink.id = "BackLink";
			_backLink.innerHTML = "Back";
			_backLink.href = "#";
			_backLink.onclick = this.BackLink_Click;
			_backLink.className = "paging_link";
			_backLink.style.display = "none"
			
			document.getElementById("PlaceHolderDiv1").appendChild(_nextLink);
			document.getElementById("PlaceHolderDiv1").appendChild(_backLink);
			
			_imageRotator.setPageInfo(_pageNumber,_imagesPerPage);
		}
	};

	this.NextLink_Click = function()
	{
		_pageNumber++;
		_imageRotator.setPageInfo(_pageNumber,_imagesPerPage);
		
		_nextLink.style.display = "none";
		_backLink.style.display = "inline";
		
		_photoDataListPage1.style.display = "none";
		_photoDataListPage2.style.display = "block";
		
		return false;
	};

	this.BackLink_Click = function()
	{
		_pageNumber--;
		_imageRotator.setPageInfo(_pageNumber,_imagesPerPage);
		
		_backLink.style.display = "none";
		_nextLink.style.display = "inline";
		
		_photoDataListPage2.style.display = "none";
		_photoDataListPage1.style.display = "block";
		
		return false;
	};

}
