<% GETPAGE = Request.QueryString("parent_id") GETCHILD = Request.QueryString("child_id") IS_GALLERY = Request.QueryString("is_gallery") %>
<% If GETCHILD <> "" then Set Info = DB.execute("SELECT * from child_links WHERE child_id=" & GETCHILD) PAGE_NAME = Info("page_name") CONTENT = Info("content") Response.Write(CONTENT & "
") Info.close Else If GETPAGE <> "" then Set Info = DB.execute("SELECT * from parent_links WHERE parent_id=" & GETPAGE) PAGE_NAME = Info("page_name") CONTENT = Info("content") Response.Write(CONTENT & "
") Info.close Else Set RS = DB.execute("SELECT * FROM homepage") CONTENTAREA = RS("content_area") Response.Write(CONTENTAREA) RS.close End If End If %> <% If PAGE_NAME = "Photo Gallery" Then Response.Redirect "gallery/default.asp?parent_id=" & GETPAGE & "&child_id=0&is_gallery=1" End If %>