			var aImageSrcStrings = new Array(
				"images/galleryThumbs/constructionStages/cobGalleryCon1.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon2.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon3.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon4.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon5.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon6.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon7.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon8.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon9.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon10.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon11.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon12.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon13.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon14.jpg",
				"images/galleryThumbs/constructionStages/cobGalleryCon15.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon16.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon17.jpg", 
				"images/galleryThumbs/constructionStages/cobGalleryCon18.jpg",
				"images/galleryThumbs/constructionStages/cobGalleryCon19.jpg",
				"images/galleryThumbs/constructionStages/cobGalleryCon20.jpg" );

var aImages;
var bImagesPreloaded = false;
var iCurImg = 0;
var bIE  = ( document.all )            ? true : false;

window.onresize = fDisplayImage;

function fPreloadImages()
	{
	aImages = new Array(aImageSrcStrings.length);
	for (var i=0; i<aImageSrcStrings.length; i++)
		{
		aImages[i] = new Image();
		aImages[i].src = aImageSrcStrings[i]
		}	
	bImagesPreloaded = true;
	fDisplayImage();
	}

function fInitialiseFilter()
	{
	}

function fNextImage()
  {
  if (bImagesPreloaded)
		{
		iCurImg = iCurImg + 1;
		if (iCurImg == aImages.length)
		  iCurImg = 0;
		fDisplayImage();
		}
  }
  
function fPreviousImage()
  {
  if (bImagesPreloaded)
		{
		iCurImg = iCurImg - 1;  
		if (iCurImg < 0)      
		  iCurImg = aImages.length - 1;
		fDisplayImage();
		}
  }
  
function fDisplayImage()
  {
  if (bIE)
    {
    document.all.myCount.innerHTML = sCount = iCurImg + 1 + ' of ' + aImages.length;
    document.myImage.filters.blendTrans.Apply();
    document.myImage.src = aImages[iCurImg].src;
    document.myImage.filters.blendTrans.Play();  
    }
  else
    document.myImage.src = aImages[iCurImg].src;
  }   
  