
function hideMenu(tagName) {
  if (document.layers)  { document.layers[tagName].visibility    = 'hidden';}
  if (document.all)     { document.all(tagName).style.visibility = 'hidden';}
  if (!document.all && document.getElementById)    {document.getElementById(tagName).style.visibility = 'hidden';}
}

function showMenu(tagName) {
  if (document.layers)  { document.layers[tagName].visibility    = 'visible';}
  if (document.all)     { 
							if (document.layers && window.innerWidth) 
								{
									window.onresize = NS4resize;
									window.NS4sIW = window.innerWidth;
									window.NS4sIH = window.innerHeight;
								}
							document.all(tagName).style.visibility = 'visible';
						}
  if (!document.all && document.getElementById)    {document.getElementById(tagName).style.visibility = 'visible';}
}

function NS4resize() {
	if (NS4sIW < window.innerWidth || 
		NS4sIW > window.innerWidth || 
		NS4sIH > window.innerHeight || 
		NS4sIH < window.innerHeight ) 
	{
		window.location.reload();
	}
}

