<% // expects 2 or 4 args: title,folder,optimg,optcapt // 3-part display of title in upper left, with text underneath and images displayed // at right. Text is either a list of images from albumlist.asp (if optimg is not // passed) or text from the albumtext.asp in the indicated folder. // If optimg is passed, that is used as the initial image to display; otherwise, it // is the first image in the imgdb.txt file in the indicated folder var title,folder,exitalb,firstimg,textbase,optcapt title = Request.QueryString("title").item folder = Request.QueryString("folder").item // It is not clear how these ASP variables are implemented for javascript. // unknown: why is "item" needed to get the actual string? // this appears to be the only way to detect that referrer has not been passed if (typeof(Request.ServerVariables("HTTP_REFERER").item) == "undefined") exitalb = "/reunion"; else exitalb = Request.ServerVariables("HTTP_REFERER").item.replace(/^.+\/\/[^\/]+/,""); if (typeof(Request.QueryString("optimg").item) == "undefined") { firstimg = GetFirstImagePath(folder) textbase = "/include/albumlist.asp" optcapt = "" } else { firstimg = Request.QueryString("optimg").item textbase = "/" + folder + "/albumtext.asp" optcapt = "&optcapt=" + Request.QueryString("optcapt").item } %> <%=Request.QueryString("title")(1)%>

<%=title%>