// LEGACY BROWSER DETECTION & REDIRECTION

var supported = (((navigator.appName == "Netscape") &&
(parseInt(navigator.appVersion) >= 4 )) || ((navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)>=4)));

if (!(supported)) {
	document.location.href = "legacy_home.html";
}

// BEGIN MENU JAVASCRIPT CODE

if (supported) {
	var isNav, isIE;
	var coll = "";
	var styleObj = "";
	if (parseInt(navigator.appVersion) >= 4) {
		if (navigator.appName == "Netscape") {
			isNav = true;
		} else {
			isIE = true;
			coll = "all.";
			styleObj = ".style";
		}
	}
}


// Rollover enabled via visibility property
function showMe(name) {
	var obj = eval("document." + coll + name + styleObj);
	obj.visibility = "visible";
}

// Click close popup enabled via visibility property
function hideMe(name) {
	var obj = eval("document." + coll + name + styleObj);
	obj.visibility = "hidden";
}


function setCookie(name, value, expire) {
          document.cookie = name + "=" + escape(value)
          + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()))
    }

    function register() {
          var today = new Date()
          var expires = new Date()
          var okuser = "haspassword"
          expires.setTime(today.getTime() + 1000*60*60*24*30);
          setCookie("SI_visitor", okuser, expires);
    }

    function getCookie(Name) {
          var search = Name + "="
          if (document.cookie.length > 0) { // if there are any cookies
                    offset = document.cookie.indexOf(search)
                    if (offset != -1) { // if cookie exists
                              offset += search.length
                              // set index of beginning of value
                              end = document.cookie.indexOf(";", offset)
                              // set index of end of cookie value
                              if (end == -1)
                                        end = document.cookie.length
                              return unescape(document.cookie.substring(offset, end))
                    }
            }
    }

function hiLite(imgDocID,imgObjName) {
    document.images[imgDocID].src = eval(imgObjName + ".src")
}

    function validateUser() {
        var path = getCookie("SI_visitor")
        if (path == null)   {
            var location = "altindex.html";
            this.location.href = location;
            }
        else    {
            }
     }