<%@ LANGUAGE = "VBScript" %> <% Dim thisFilename thisFilename = "TrailWork_2006_06_17_Photos.asp" Dim rows, columns, index, imgCnt index = -1 rows = 2 columns = 2 imgCnt = 4 Dim imgFilename() Dim imgDirectory imgDirectory = "photos/2006_06_17_TrailWork/" ReDim imgFilename(imgCnt) imgFilename(0) = "IMG_4135.jpg" imgFilename(1) = "IMG_4138.jpg" imgFilename(2) = "IMG_4139.jpg" imgFilename(3) = "IMG_4140.jpg" Dim imgText() ReDim imgText(imgCnt) imgText(0) = "Ron getting started on the short reroute." imgText(1) = "The new section of the trail has been scratched out and the guys are starting to close the old trail." imgText(2) = "Kirk digging a bleeder for drainage." imgText(3) = "North Shore President Frank Lane and Joe Dizazzo, North Shore's Trail Guru." If Request.QueryString("index").Count = 1 Then index = Request.QueryString("index") End If %> North Shore NEMBA Photos
<% If index = -1 Then %>
Bradley Palmer / Willowdale Mill Trail Work - June 17th, 2006
<% Dim tableHTML Dim cellWidth cellWidth = CInt(100 / columns) tableHTML = "" For i = 0 to (rows - 1) tableHTML = tableHTML & "" & VbCrLf For j = 0 to (columns - 1) tableHTML = tableHTML & "" Next tableHTML = tableHTML & "" & VbCrLf Next Response.Write tableHTML %>
" tableHTML = tableHTML & "
<% Else %> " Response.Write prevLink %> " Response.Write nextLink %>
<% Dim prevLink Dim prevIndex prevIndex = index - 1 If prevIndex < 0 Then prevIndex = imgCnt - 1 End If prevLink = "<Prev <% Dim thumbsLink thumbsLink = "

Thumbs View

" Response.Write thumbsLink %> " %> " Response.Write imgSrc %>
<% Response.Write imgText(index) & "
<% Dim imgSrc imgSrc = "
<% Dim nextLink Dim nextIndex nextIndex = index + 1 If nextIndex >= imgCnt Then nextIndex = 0 End If nextLink = "Next>
<% End If %>