function initPage()
{
var navRoot = document.getElementById("main");
var uls = navRoot.getElementsByTagName("ul");
for (var i=0; i<uls.length; i++)
{
lis = uls[i].getElementsByTagName("li");
for (var j=0; j<lis.length; j++) {
lis[j].onmouseover = function()
{
this.className += " hover";
}
lis[j].onmouseout = function()
{
this.className = this.className.replace(new RegExp("hover"),"");
}
}
}

var navRoot = document.getElementById("header");
var uls = navRoot.getElementsByTagName("ul");
for (var i=0; i<uls.length; i++)
{
lis = uls[i].getElementsByTagName("li");
for (var j=0; j<lis.length; j++) {
lis[j].onmouseover = function()
{
this.className += " hover";
}
lis[j].onmouseout = function()
{
this.className = this.className.replace(new RegExp("hover"),"");
}
}
}
}
if (window.attachEvent && !window.opera)
    attachEvent("onload", initPage);


function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
    var rv = -1; // Return value assumes failure.
    if (navigator.appName == 'Microsoft Internet Explorer') {
        var ua = navigator.userAgent;
        var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
        if (re.exec(ua) != null)
            rv = parseFloat(RegExp.$1);
    }
    return rv;
}

function checkVersion() {
    var ver = getInternetExplorerVersion();

    if (ver != -1 && ver <= 6) {
        window.location = '/upgrade-browser.htm';

    }
}