/*This script is used to navigate thru a Month's worth of pictures. Each month needs the Maxpages value immediately following set to the last page value. The wholething depends on the html pages being numbered consecutively from 1 thru x This script is called from each picture.html file found in each month directory. Script author: David HoweIn essence, his first script where it was not copies and just values changes, as in the menu system.Anyone can use it and who cares if you attribute it, certainly not David.*/var Maxpages = 13var ThisURLarray= location.pathname.split("/")var arrayLength = ThisURLarray.length - 1											var CurrentPage = ThisURLarray[arrayLength].substr(0,ThisURLarray[arrayLength].length-5)	delete ThisURLarray[arrayLength]var ThisURLStart = ThisURLarray.join("/")			         var ThisMonth = ThisURLarray[arrayLength-1]var ChangePage = 0function PageForward(){if(Maxpages == CurrentPage)	{		CurrentPage = 1	} else 	{		CurrentPage ++	}ChangePage = ThisURLStart + CurrentPage + ".html"window.location = ChangePage} function PageBack(){if(CurrentPage == 1)		{		CurrentPage = Maxpages		}		else		{				CurrentPage --		}ChangePage = ThisURLStart + CurrentPage + ".html"window.location = ChangePage}
