% --[[ Define some variables to make locating other resources easier firstPage was defined in our manifest.]] local image = getImage( index ) local theRoot = ".." local others = "." local mySize = "photos" %> <% --[[ Include the page head]] %> <%@ include file="head.html" %> <% --[[ Main page code ]] %>
<% --[[ Include the page header]] %> <%@ include file="header.html" %> <% --[[ Include the nav bar]] %> <%@ include file="navBar_Detail.html" %> <% --[[ variables to make my life easier ]] local photoFrameWidth = math.floor( image.renditions.photos.width + (model.nonCSS.photoPadding * 2) + (model.nonCSS.photoBorder * 2) ) local photoFrameHeight = math.floor( image.renditions.photos.height + (model.nonCSS.photoPadding * 2) + (model.nonCSS.photoBorder * 2) ) local photoNavPosition = math.floor( ( photoFrameWidth / 2 ) - ( photoFrameWidth * 0.09 ) ) %>