I have a visual force page displaying lots of information in a report of sorts. To enchance the user experience I have added some code to load the standard compact layout for records to provide some additional information. This is done with the following code. LookupHoverDetail.getHover is functionality provide by Salesforce.
<a href="#" id="{!rec.Id}"
onmouseover="LookupHoverDetail.getHover('{!rec.Id}', '/{!rec.Id}/m?retURL=/{!rec.Id}&isAjaxRequest=1').show();"
onmouseout="LookupHoverDetail.getHover('{!red.Id}').hide();">
<apex:outputtext value="{!rec.Name}"/>
</a>
However, this only loads the System Default compact layout. It does it quite nicely, but I have a custom compact layout with more relevant information. How can I get that to display?