I'd like to have a slideshow fill the screen height and width, but keep it's aspect ratio for the vertical slide effect. It would have to crop some of its (very wide) width on smaller screens and stretch both ways on very large screens. Is there a calculation that would determine the height of the #slideshow window and keep some aspect ratio? My verbose media queries are getting tiresome and reduce the height too much. You can see the problem as you scale the window at http://apurch.jvonhausen.com.
I saw a close answer at: Image size calculation by keeping aspect ratio with different screen resolutions , but I think this is java, not script.