



//===========================================================
// This function is required for IE only, as it doesn't support
// the :hover pseudo class on elements other then <a>
//============================================================
		function InitializeMenu()
		{
			if (document.all && document.getElementById)
			{
				var navRoot = document.getElementById("Nav");
				for (i=0; i<navRoot.childNodes.length; i++)
				{
					node = navRoot.childNodes[i];
					if (node.nodeName == "LI")
					{
						node.onmouseover=function()
						{
							this.className+=" over";
						}
						node.onmouseout=function()
						{
							this.className=this.className.replace(" over", "");
						}
					}
				}
			}		
		  }


//=================================================
// Open an new window for send page to a frind with 
//	customized properties
//=================================================

function sendToFriend(objLink) {
	// get the url of the document being sent
	var strCurrentUrl = escape ( parent.document.URL ) ;
	// get the page <title> of the document being sent
	var strPageTitle = escape( parent.document.title );
	var strURLParams = '?ForceUserDeserialize=-1&pageToSend=' + strCurrentUrl + '&pageTitle=' + strPageTitle + '&mode=submitted';
	var strURL = objLink.href + strURLParams;
	var strWindowProperties = 'width=409,height=460,scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';	

	// open the window
	openWindow(strURL ,'send_to_a_friend', strWindowProperties);	
	// prevent any further code from executing
	return false;
}

//=================================================
// Open an new window with customized properties
//=================================================
function openWindow(URL, Name, Args){
	popupWin = window.open(URL, Name, Args);
	popupWin.focus();
}

function printPage(){
if (window.print) window.print();
else alert('Your browser does not support javascript printing.\nTo print this page, select File: Print from your menu.\nThis page is already printer friendly.');
}


//=================================================
// Open an new window with for popupimage
//=================================================

function popupwindowscroll(url, intWidth,intHeight,blnScroll,blnResize){
    if (intWidth == null || intHeight == null) {intWidth=750;intHeight=535;}
	if (blnScroll == null) {blnScroll='yes';}
	if (blnResize == null) {blnResize='no';}
	// this is the common window for popups. it resizes to the size needed
	//NewWindow = window.open(url,"POPUPWINDOWSCROLL","toolbar=no,width="+intWidth+",height="+intHeight+",directories=no,status=no,scrollbars=yes,resizable="+blnResize+",menubar=no,top=0,left=20");
	window.name ="NewWindow";
	NewWindow = window.open(url,"POPUPWINDOWSCROLL","toolbar=no,width="+intWidth+",height="+intHeight+",directories=no,status=no,scrollbars="+blnScroll+",resizable="+blnResize+",menubar=no,top=0,left=20");
	NewWindow.resizeTo(intWidth, intHeight);
	NewWindow.focus();
}

//=================================================
// show leaving the site warning
//=================================================

var ExitPopUpsEnabled = true;
	var SiteExceptions = new Array ("www.organon.es","www.organon.com","hcp.organon.com","www.organon-conferences.com","www.psychiatrymatters.md","www.remeronsoltab.md","www.nuvaring.md","www.orgyn.com","www.implanon.md","www.cerazette.md","www.contraception.net","www.nuvaring.com","www.mycontraceptive.com","www.cyclessa.com","www.marvelon.ca","www.puregonpen.com","www.puregon.md","www.puregon.com","www.follistim.com","www.fertilityjourney.com","www.livial.md","www.liviella.de","hcp.livial.info","www.livial.com","www.andriol.md","www.andriol.com","www.andropause.com","www.anesthesianow.com","www.esmeron.md","www.zemuron.com","www.oncotice.md", "www.kinderwens.nl", "www.fertilityjourney.com.sg", "www.unserwunschkind.at", "www.kinderwunsch.de", "www.jeveux1bebe.be", "www.viajandohacialafertilidad.com", "www.kinderwens.be", "www.fertilityjourney.com.my", "www.fertilitetsguiden.nu", "www.organon.de", "www.adobe.com","www.hcp-nuvaring-de.com", "sms.nuvaring.de", "smpc.organon.com","www.psychiatrymatters.co.jp","www.psychiatrymatters.jp","www.organon.es","hcp.organon.com",
"www.aulamayo.com","www.globalnewsmedia.net");

function ReplaceLinks()
	{
		var currentdomain = document.domain;
		var base_url;
		var link_id;
		var link_id_nr = 0;
		link_id = "linkid";		
		var showExitPopup = "yes";
		if (ExitPopUpsEnabled)
		{
  			for (j=0; j<document.links.length; j++)	
			{
				showExitPopup = "yes";
  			 	current_href = document.links[j].href.toLowerCase();
  			 	if (current_href.substring(0,6) != "mailto" )
			 	{
  					if (current_href.indexOf(currentdomain) == -1 && current_href.substring(0,1) != "/" && current_href.indexOf("(") == -1 )
					{
				 	 	for (i=0; i < SiteExceptions.length; i++)
				  		{
						//alert(SiteExceptions[i] + " - " + document.links[j].hostname);
							if (SiteExceptions[i] == document.links[j].hostname)
							{
							showExitPopup = "no";
							}
				 		}
						if (showExitPopup == "yes")
						{
      						base_url = current_href;
						document.links[j].target = "";
						document.links[j].id = link_id + link_id_nr;
        					document.links[j].href = "javascript:ExitPopUp('" + document.links[j].id + "','" + base_url + "','"+ currentdomain + "');";
						link_id_nr += 1;
						}
						showExitPopup = "yes";
					} 
 				}  
  		   }
	   }
	}

  function ExitPopUp(obj_id, url, currentdomain){
	var obj_link = document.getElementById(obj_id);
    if (obj_link != null && confirm("You are about to leave " + currentdomain + ". The content of the site you are about to visit is not controlled by Organon"))
		{
		obj_link.href = url;
		obj_link.target = "_blank";
		obj_link.click();
	    
	  }
  }
  

function ExitPopUpFlash(url,popuptreatment)
  {
	if (confirm("You are about to leave " + document.domain + ". The content of the site you are about to visit is not controlled by Organon"))
	{
			window.name ="NewWindow";
			NewWindow = window.open(url,"PopupWindow",popuptreatment);
			NewWindow.focus();			  	}  
  }

function clickSpotlightOrMasthead(strId)
{
 //alert(strId);
}

function removeBackground(doIt, strId)
{
	if (doIt && document.getElementById) document.getElementById(strId).style.background = 'none';
}