// JavaScript Document
var timer;

function showMenu()
{
	if (timer)
	{
		clearTimeout(timer);
	}
	showHideSubMenu(true);
}

function hideMenu()
{
	if (timer)
	{
		clearTimeout(timer);
	}
	timer = setTimeout("showHideSubMenu(false)", 500);
}

function showHideSubMenu(show)
{
	var subMenuEl = document.getElementById("prdsSubmenu");
	if (show)
	{
		subMenuEl.style.display = "block";
	}
	else
	{
		subMenuEl.style.display = "none";
	}
	if (timer)
	{
		clearTimeout(timer);
	}

}

/**
 * Send article link via email
 */
function sendArticleLinkByMail(articleUrl) {

  window.open('mailfriend.html?url=' + articleUrl, 'mywin', 'left=20,top=20,width=360,height=350,toolbar=0,resizable=0');
  
};