// show iframe helper for topnav dropdown

function showIFrame()
{
    var iFRef = document.getElementById('dropcover');
    var divRef = document.getElementById('mp'); //my pregnancy dropdown list

        iFRef.style.width = divRef.offsetWidth;
        iFRef.style.height = divRef.offsetHeight;
        iFRef.style.top = divRef.style.top;
        iFRef.style.left = divRef.style.left;
        iFRef.style.zIndex = divRef.style.zIndex -1;
        iFRef.style.display = "block";

}

// topnav hover function for IE

tnHover = function() {
	var topNav = document.getElementById("topnav");
	if (topNav == null) return;
	
	var tnEls = topNav.getElementsByTagName("LI");
	if (tnEls == null) return;
	
	for (var i=0; i<tnEls.length; i++) {
		tnEls[i].onmouseover=function() {
			this.className+=" tnhover";
		}
		tnEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" tnhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", tnHover);


//called from flash to popup new windows
function openNewWindow(URLtoOpen, windowName, windowFeatures) { 

  newWindow=window.open(URLtoOpen, windowName, windowFeatures);

}