' : 'portrait');
                    });

                    UpdateLayout();
                }
            });
        }

        // Helper function to generate HTML to display the main person - the sender.
        function RenderMainContactView(person) {
            var html = "";

            if (person) {
                var phone = person.Telephone.substr(0, person.Telephone.indexOf("X") - 1);

                html = '<div class="contactCard">' +
					'<div class="image_div">' +
						'<img class="cont