var bsAgent = navigator.userAgent.toLowerCase();
var bsOpera = (bsAgent.indexOf('opera') != -1);
var bsIE = (bsAgent.indexOf('msie') != -1) && !bsOpera;
var bsSafari = (bsAgent.indexOf('safari') != -1);

/* === MENU -- ONLY FOR IE6 === */
function startList()
{
	var navRoot = document.getElementById('navlist');
	for (i=0; i<navRoot.childNodes.length; i++)
	{
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI")
		{
			node.onmouseover=function()
			{ this.className+="over"; }
			node.onmouseout=function()
			{ this.className=this.className.replace("over", ""); }
		}
	}
	
	var subnavRoot = navRoot.getElementsByTagName('UL');
	for (k=1; k<subnavRoot.length; k++)
	{
		for (j=0; j<subnavRoot[k].childNodes.length; j++)
		{
			subnode = subnavRoot[k].childNodes[j];
			if (subnode.nodeName=="LI")
			{
				subnode.onmouseover=function()
				{ this.className+="over"; }
				subnode.onmouseout=function()
				{ this.className=this.className.replace("over", ""); }
			}
		}
	}
}
window.onload = function() {
	if (bsIE && (parseInt(navigator.appVersion) < 5))
	{ startList(); }
};