// Javascript copyright 1999-2002 Specific Impulse, Inc.

// This opens the Virtual Corporate Lobby child window at any time

var thisWindow
var thisPort

function openSesameHome() {
	if (!thisWindow || thisWindow.closed) {
	   thisWindow = window.open("vcl/vclnav.html","sesameseed","resizeable=no,alwaysRaised=yes,height=152,width=394");
	} else {
	thisWindow.focus();
	}
}

function hiLite(imgName,imgArrayName) {
    	document.images[imgName].src = eval(imgArrayName + ".src");
}

var isNav=false;
var isIE=false;
var isCompatible=false; // compatible with W3C standards
var supported = (((navigator.appName == "Netscape") &&
(parseInt(navigator.appVersion) >= 4 )) || ((navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)>=4)));

if (!(supported)) {
        if (navigator.appName == "Netscape"){
                document.location = "legacy_home.html";}
        if (navigator.appName == "Microsoft Internet Explorer"){
                document.location.href = "legacy_home.html";}
}

if (supported) {
	if (parseInt(navigator.appVersion) >= 4) {
		if (navigator.appName == "Netscape") {
			isNav = true;
		} else {
			isIE = true;
		}
	}
	if (parseInt(navigator.appVersion) >= 5) {
		isCompatible=true;
		// Believe it or not, the appVersion of IE 5 is "4", not "5", so IE 5 runs the V4 code, even though it would work with the V5.
	}
}



var coll = "";
var closeparen = "";
var styleObj = "";
var rapperdiv = "";
if (isNav && (!isCompatible)) {
        	rapperdiv = "document.parentdiv." // use "document.parentdiv." if divs inside a div
        } else {

        if (isCompatible) {

       coll = "getElementById('";
       closeparen = "')";
       styleObj = ".style";

  	} else {
                isIE = true;
                coll = "all.";
                styleObj = ".style";
        }
}

/* ELEMENT1 */
var hoo = new Array("one", "two", "three", "four");
/* ELEMENT2 */
var com = new Array("two", "one", "three", "four");
/* ELEMENT3 */
var ser = new Array("three", "one", "two", "four");
/* ELEMENT4 */
var lob = new Array("four", "one", "two", "three");


// Rollover enabled via visibility property
function RollOver(name) {
	// alert(name[1]);
	 //if (isNav && (isCompatible)) {
      //  var foo = rapperdiv + "document." + coll + name[0] + closeparen + styleObj;
      //   alert(foo);
	//}
        var obj = eval(rapperdiv + "document." + coll + name[0] + closeparen + styleObj);
        obj.visibility = "visible";
        var obj = eval(rapperdiv + "document." + coll + name[1] + closeparen + styleObj);
        obj.visibility = "hidden";
        var obj = eval(rapperdiv + "document." + coll + name[2] + closeparen + styleObj);
        obj.visibility = "hidden";
        var obj = eval(rapperdiv + "document." + coll + name[3] + closeparen + styleObj);
        obj.visibility = "hidden";
       // var obj = eval(rapperdiv + "document." + coll + name[4] + closeparen + styleObj);
       // obj.visibility = "hidden";
       // var obj = eval(rapperdiv + "document." + coll + name[5] + closeparen + styleObj);
       // obj.visibility = "hidden";
}


