function Photo( strPhotoId, strImageSrc ) {
	this.id = strPhotoId;
	this.imageSrc = strImageSrc;
}

function viewPhoto( strPhotoId ) {
	if ( strActivePhotoId != strPhotoId ) {
	
	   
		strActivePhotoId = strPhotoId;
		for ( var i = 0; i < arrPhotos.length; i++ ) {
			var objThumbnail = document.getElementById( arrPhotos[i].id );
			var objTitle = document.getElementById( 'title' + arrPhotos[i].id );
			 
			if ( objThumbnail ) {
				if ( arrPhotos[i].id == strPhotoId ) {
					if (objTitle) objTitle.className = 'active';
					objThumbnail.className = 'thumbnail active';
					if ( window.arrThumbnailsActive ) objThumbnail.firstChild.src = arrThumbnailsActive[i].imageSrc;

					var objViewImage = document.getElementById( stcViewImageId );
					if ( objViewImage ) objViewImage.src = arrPhotos[i].imageSrc;
					
				} else {
					if (objTitle) objTitle.className = '';
					objThumbnail.className = 'thumbnail';
					if ( window.arrThumbnailsNormal ) objThumbnail.firstChild.src = arrThumbnailsNormal[i].imageSrc;
				}
			}
		}
	}
}
