var Menus = 
{
	initialize : function(tabsElement)
	{
		if(document.all && document.getElementById)
		{
			navRoot = tabsElement ? tabsElement : document.getElementById("tabs");
			if(navRoot.childNodes)
			{
				for(i=0; i<navRoot.childNodes.length; i++)
				{
					node = navRoot.childNodes[i];

					if(node.nodeName == "LI")
					{
						node.onmouseover = function() { this.className += " show"; }
						node.onmouseout = function() { this.className = this.className.replace(" show", ""); }
					}
				}
			}
		}
	}
}


if(document.getElementById("tabs"))
{
	Menus.initialize();
} 


function daID(fieldID)
{
	if(document.getElementById(fieldID) == undefined) return false; else return document.getElementById(fieldID);
}


function isIE()
{
	if(navigator.userAgent.toLowerCase().indexOf("msie") != -1) return true; else return false;
}


function chk(nme, inum, che, chkn)
{
	var pre_st = false;
	if(document.all[nme + inum + '_' + che].checked == true) pre_st = true;
	for(i=1; i<chkn; i++) document.all[nme + inum + '_' + i].checked = false;
	if(pre_st == true) document.all[nme + inum + '_' + che].checked = true;
}

function trim(s)
{
	return s.replace(/^\s+|\s+$/g, '');
}


