Have a look (image below) at how the ASP substitution works with the <%=...%> construct. Calculate the width and height in pixels (you're basically there) lets say Xax and Yax, then

<div id="aladin-lite-div" style="width:<%=Xax%>px;height:<%=Yax%>px;"></div>

When you get it working, pass the asp along by attaching here in a zip file <-- link to attaching instructions. I will incorporate it into the next release and give you credit. Thanks!!