function initPage()
{
	var nav = document.getElementById("navigation");
	if (nav)
	{
		var nodes = nav.getElementsByTagName("li");
		for (var i = 0; i < nodes.length; i++)
		{		
				nodes[i].onmouseover = function () 
				{
					this.className += " hover";
				}
				nodes[i].onmouseout = function ()
				{
					this.className = this.className.replace(" hover", "");
				}
		}
	}
	var nav = document.getElementById("topMenu");
	if (nav)
	{
		var nodes = nav.getElementsByTagName("li");
		for (var i = 0; i < nodes.length; i++)
		{		
				nodes[i].onmouseover = function () 
				{
					this.className += " hover";
				}
				nodes[i].onmouseout = function ()
				{
					this.className = this.className.replace(" hover", "");
				}
		}
	}
}
if (window.attachEvent)
	window.attachEvent("onload", initPage);


function initMain() {
    var _div = document.getElementsByTagName("ul");
    for(j=0; j<_div.length; j++){
        if (_div[j].className.indexOf("tabset") !=-1) {
            var _li = _div[j].getElementsByTagName("li");
            for (var i=0; i<_li.length; i++) {
                if (_li[i]) {
                    _li[i].onclick = function() {
                        var _link = this.getElementsByTagName('a')[0];
                        window.location = _link.href;
                    }
                }
            }
        }
    }
}
if (window.addEventListener)
{
    window.addEventListener("load", initMain, false);
}
else if (window.attachEvent)
{
    window.attachEvent("onload", initMain);
}