Since you wrote this in 2011, have you found an answer for your last question?
Paulo Oliveira
1

Paulo Oliveira: I compare the height and width of the viewport. If the height is greater than the width, it’s portrait. Otherwise, it’s landscape.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.