// fastfacts.js

function postCreateFastFacts(parent,child,fastFactLocation) {
dojo.widget.byId(child).open = function () {
    if (this.isShowingNow) { return; }
	// default node
	node=document.getElementById(parent).parentNode.parentNode;
    if(fastFactLocation == "CategoryDisplay")
   		node=document.getElementById(parent).parentNode;
	if(fastFactLocation.indexOf("LeftContent") != -1 || fastFactLocation.indexOf("RightContent") != -1) 
		node=document.getElementById(parent).parentNode.parentNode;
	dojo.widget.PopupContainerBase.prototype.move.call(this, node.offsetLeft-node.offsetWidth/1.6,node.offsetTop+10);
	dojo.widget.PopupContainerBase.prototype.open.call(this, node.offsetLeft-node.offsetWidth/1.6,node.offsetTop+10, node);
}
}
