I am not sure if the layout of applications switches automatically, but there are certainly monitors that are meant to switch from landscape to portrait and back.


http://graphicssoft.about.com/b/2005/05/04/dual-monitors-with-a-twist.htm


If you look up rotating monitors you will be surrounded in a wealth of information regarding the subject.