var fade_in = 0;
var ie = navigator.userAgent.toLowerCase().indexOf("msie")>-1 && navigator.userAgent.toLowerCase().indexOf("opera")< 0;

function MOver (node, activate)
{
	node.className = activate ? "active" : "";
}

<!-- ************************************************** -->

function FIND(item) 
{
	if (window.mmIsOpera) return(document.getElementById(item));
	if (document.all) return(document.all[item]);
	if (document.getElementById) return(document.getElementById(item));
	return(false);
}

<!-- ************************************************** -->

function OpenWindow (win_href, win_title, win_width, win_height, win_center, with_scrollbars, win_resizable, with_bar)
{

	if (win_height > screen.availHeight - 50)
		win_height = screen.availHeight - 50;

	win_width = win_width - 0;
	if (with_scrollbars == 'true')
	{
		win_width += 20;
	}
	
	var win_flags = "width=" + win_width + ",height=" + win_height;
	win_flags += ",resizable=yes,dependent=yes";
	
	if (with_scrollbars == 'true')
	{
		win_flags += ",scrollbars=yes";
	}
	
	if (win_center)
	{
		var win_left = Math.ceil ((screen.availWidth - win_width) / 2);
		var win_top  = Math.ceil ((screen.availHeight - win_height) / 3);
		win_flags	+= ",left=" + win_left + ",top=" + win_top;
	}
	
	win_flags += ",resizable=" + ((win_resizable != "false") ? "yes" : "no");
	win_flags += ",location=" + ((with_bar == "true") ? "yes" : "no");
	win_flags += ",menubar=" + ((with_bar == "true") ? "yes" : "no");
	win_flags += ",toolbar=" + ((with_bar == "true") ? "yes" : "no");

	window.open (win_href, win_title, win_flags);
}

<!-- ************************************************** -->

function ShowDivExclusively (div_name, div_category)
{
	var allObjects = document.getElementsByTagName ('div');
	var ObjClass;

	for (i = 0; i < allObjects.length; i++)
	{
		ObjClass = allObjects[i].className + "";
		if (ObjClass.indexOf (div_category) != -1)
		{
			if (allObjects[i].id == div_name)	ShowDiv (allObjects[i].id);
			else 											HideDiv (allObjects[i].id);
		}
	}
}

<!-- ************************************************** -->

function ShowDiv (div_name)
{
	var obj_div = FIND (div_name);
	if (obj_div)
	{
		obj_div.style.visibility = "visible";
		obj_div.style.display = "block";
	}
}

<!-- ************************************************** -->

function HideDiv (div_name)
{
	var obj_div = FIND (div_name);
	if (obj_div)
	{
		obj_div.style.visibility = "hidden";
		obj_div.style.display = "none";
	}
}

