<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="da" lang="da">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Ny side 1</title>
</head>
<body bgcolor="#336699" topmargin="4" leftmargin="0" rightmargin="0" bottommargin="0">
<center>
<%
if request.querystring("folder") = "" then
	ImageDir = session("ShowSub")
else
	ImageDir = request.querystring("folder")
	Session("ShowSub") = ImageDir
end if
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFS.GetFolder(Server.MapPath(ImageDir))
Set objFiles = objFolder.Files
intPage = Request.Querystring("page")
	If isNumeric(intPage) = False Or intPage < 1 Then
  		intPage = 1
	End If
intPageSize = 1 ' Antal filer på hver side
intImgCount = objFiles.Count
intPageCount = -Int(-(intImgCount/intPageSize))
For Each Image In objFiles
 intFile = intFile +1
 If (intFile >= ((intPage-1)*intPageSize)+1) And (intFile =< (intPageSize*intPage)) Then
	if request.querystring("fotoid") <> "" then
		imagename = request.querystring("fotoid")
	else
		imagename = Image.Name
	end if 	
	Response.Write "<p><img src='" & ImageDir & "/" & imagename & "' /></p>"		
 End If
Next
Set objFS = Nothing
%>
</body>

