/* /== NetReach Copyright Block ==\
   Copyright 2004, Bastnet, Inc.
   All of the information contained herein is the intellectual property of Bastnet, Inc.  
   No portion of the tools, routines, subroutines and other programs, data and/or materials 
   may be used by any other organization without the express written consent of NetReach, 
   Inc.  Any organization that attempts to reuse any portion of these materials without 
   consent will be prosecuted to the fullest extent allowed by law. 
   This Application includes a licensed copy of telerik r.a.d.editor, copyright 2003 telerik.  
   All rights reserved.  Use of telerik r.a.d.editor outside of this Application is a 
   violation of the Bulgarian and International Copyright Laws and other applicable laws.
   \== NetReach Copyright Block ==/ */

function popupMenu(level, item) {
	closePopups(level);
	activePopups[level] = item;
	item.style.visibility = 'visible';
    document.onclick = function() {closePopups(0)};
}
function closePopups(level) {
	for (var i = 0; i < activePopups.length; i++) {
		if (activePopups[i] != null) {
			activePopups[i].style.visibility = (i < level) ? 'visible' : 'hidden';
		}
	}
}
var activePopups = new Array();

