<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss">
<channel>

<title>Fotograf Mathias Thinsz</title>
<link>http://fotograf.thinsz.se/photos</link>
<description></description>

<%

Set objFSO = CreateObject("Scripting.FileSystemObject")
objStartFolder = Request.ServerVariables("APPL_PHYSICAL_PATH") & "Photos"

'Set objFolder = objFSO.GetFolder(objStartFolder)
'Response.Write(objFolder.Path & "<br>")
'Set colFiles = objFolder.Files
'For Each objFile in colFiles
'    Response.Write(objFile.Name & "<br>")
'Next
'Response.Write("<br>")

ShowSubfolders objFSO.GetFolder(objStartFolder)

Sub ShowSubFolders(Folder)
    For Each Subfolder in Folder.SubFolders
        'Response.Write(Subfolder.Path & "<br>")
			Set objFolder = objFSO.GetFolder(Subfolder.Path)
			If Right(LCase(objFolder.Name), 6) = "slides" Then
				Response.Write("<!--" & Replace(Subfolder.Path, "D:\www\tadmin4522\web30127\", "") & "-->" & vbCrLf)
				Set colFiles = objFolder.Files
				For Each objFile in colFiles
					If Right(LCase(objFile.Name), 3) = "jpg" Or Right(LCase(objFile.Name), 3) = "gif" Or Right(LCase(objFile.Name), 3) = "png" Then
						'Response.Write(objFile.Name & "<br>")
						Response.Write("		<item>" & vbCrLf)
						'Response.Write("			<title>" & Replace(Replace(Replace(Subfolder.Path, "D:\www\tadmin4522\web30127\fotograf.thinsz.se\html\Photos\", ""), "\slides", ""), "\", " - ") & " - " & objFile.Name & "</title>" & vbCrLf)
						Response.Write("			<title>" & objFile.Name & "</title>" & vbCrLf)
						Response.Write("			<link>http://fotograf.thinsz.se/" & Replace(Replace(Subfolder.Path, "D:\www\tadmin4522\web30127\fotograf.thinsz.se\html\", ""), "\", "/") & "/" & objFile.Name & "</link>" & vbCrLf)
						Response.Write("			<media:thumbnail url=""http://fotograf.thinsz.se/" & Replace(Replace((Replace(Replace(Replace(Subfolder.Path, "D:\www\tadmin4522\web30127\fotograf.thinsz.se\html\", ""), "\", "/"), "slides", "thumbs") & "/" & objFile.Name), "%2F", "/"), "%2E", ".") & """ />" & vbCrLf)
						Response.Write("			<media:content url=""http://fotograf.thinsz.se/" & Replace(Replace((Replace(Replace(Subfolder.Path, "D:\www\tadmin4522\web30127\fotograf.thinsz.se\html\", ""), "\", "/") & "/" & objFile.Name), "%2F", "/"), "%2E", ".") & """  type="""" />" & vbCrLf)
						Response.Write("		</item>" & vbCrLf)
					End If
				Next
				'Response.Write("<br>")
			End If
			ShowSubFolders Subfolder
    Next
End Sub

%>
</channel>
</rss>
