Need to switch between multiple infowindow templates depending on which layer is clicked on.
SetContent seems to clear the the domNode of the content for the infoWindow so that once it's used it gets cleared. The second time it gets nulled and the infowindow is empty content.
Edward,
It sounds like you need to look into using PopUpTemplate and get away from using setcontent.