		function clmCreateNav(strImageName, strImagePath)
		{
			var strWriteNav, intCount = 0, strXX, strYY, strNextHREF, strPreviousHREF
			for (objPicture in arrPictureList) {
				strXX = String(arrPictureList[intCount]).toLowerCase()
				strYY = String(strImageName).toLowerCase()
				//window.alert("strXX = " + strXX + " strYY = " + strYY)
				if (strXX == strYY) break;
				//if (strXX.indexOf(strYY) > 0) break;
				intCount++
			}
			if (intCount < 1)
				strPreviousHREF = "First image in series."
			else			
				strPreviousHREF = "Click \n<a href=\"javascript:;\" onClick=\"MM_callJS('clmWriteToLayer(\\'" + arrPictureList[intCount - 1] + "\\',\\'" + strImagePath + "\\',1)')\">" + "\n" + "Here <<<\/a> for last image. \n";
			if (intCount > arrPictureList.length - 2)
				strNextHREF = "Last image in series."
			else	
				strNextHREF = "Click \n<a href=\"javascript:;\" onClick=\"MM_callJS('clmWriteToLayer(\\'" + arrPictureList[intCount + 1] + "\\',\\'" + strImagePath + "\\',1)')\">" + "\n" + "Here >><\/a> for next image\n";
			strWriteNav = ""
			strWriteNav = strWriteNav + strPreviousHREF
			strWriteNav = strWriteNav + "Click the image to return to the thumbnails. " + "\n";
			strWriteNav = strWriteNav + strNextHREF + "<br> Click on image name for a high res version:- " 
			strWriteNav = strWriteNav + "<a href=\"" + strImagePath + arrPictureList[intCount] + "\" target=\"HighRes\">"
			strWriteNav = strWriteNav + arrPictureList[intCount] + "<\/a>"
			return strWriteNav;
		} // end clmCreateNav

