        if (document.images) {            // Active Images
            img1on = new Image();      
            img1on.src = "/images/Homepage/home_topnav/aboutncg_on.gif"; 			
            img1off = new Image();      
            img1off.src = "/images/Homepage/home_topnav/aboutncg_off.gif"; 
            img2on = new Image();      
            img2on.src = "/images/Homepage/home_topnav/solutions_on.gif"; 			
            img2off = new Image();      
            img2off.src = "/images/Homepage/home_topnav/solutions_off.gif"; 
            img3on = new Image();      
            img3on.src = "/images/Homepage/home_topnav/ourclients_on.gif"; 			
            img3off = new Image();      
            img3off.src = "/images/Homepage/home_topnav/ourclients_off.gif"; 
            img4on = new Image();      
            img4on.src = "/images/Homepage/home_topnav/newsresources_on.gif"; 			
            img4off = new Image();      
            img4off.src = "/images/Homepage/home_topnav/newsresources_off.gif"; 
            img5on = new Image();      
            img5on.src = "/images/Homepage/home_topnav/contactus_on.gif"; 			
            img5off = new Image();      
            img5off.src = "/images/Homepage/home_topnav/contactus_off.gif"; 

            button1on = new Image();      
            button1on.src = "/images/Homepage/clientlogin_button_on.gif"; 			
            button1off = new Image();      
            button1off.src = "/images/Homepage/clientlogin_button_off.gif"; 

            button2on = new Image();      
            button2on.src = "/images/ClientLogin/logout_button_on.gif"; 			
            button2off = new Image();      
            button2off.src = "/images/ClientLogin/logout_button_off.gif"; 
        }

function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "on.src");
        }
}

function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "off.src");
        }
}

//BROWSER CHECK
function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.v = parseInt(navigator.appVersion)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ns6 = (this.b=="ns" && this.v==6)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	this.ie55 = (navigator.userAgent.indexOf('MSIE 5.5')>0)
	this.ie6 = (navigator.userAgent.indexOf('MSIE 6')>0)
	if (this.ie5) this.v = 5
	if (this.ie55) this.v = 5.5
	if (this.ie6) this.v = 6
	var p = navigator.platform
	this.mac = (navigator.appVersion.indexOf("Mac") != -1)
	this.win = (navigator.appVersion.indexOf("Win") != -1)
	this.otherOS = (!this.mac && !this.win )
	this.min = (this.ns||this.ie)
	this.what = navigator.appName + ' Ver. ' + this.v
	this.dom = (document.getElementById) ? true : false;
}

// automatically create the "is" object
var is = new BrowserCheck()

//MOUSE CAPTURE

var mouse_X;
var mouse_Y;

document.onmousemove  = captureMouse;
if (is.ns4)
{
	document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE);
}

function captureMouse(e) 
{
	if (is.ie)
	{
		mouse_X = event.clientX;
		mouse_Y = event.clientY;
	}
	else 
	{
		mouse_X = e.pageX;
		mouse_Y = e.pageY;
	}
}

//MouseOver Scripts

fit_sections = null;
fit_sections = new Array("dummy");
itv = null;
xt = 800; 
xp = 750; 

function popup( strId ){
	this.id = strId;
	this.activeId = null;
}

function swapDisplay( dispId,xt ){
	if( dispId == this.activeId ) return;
	var titleDisp = document.getElementById( this.id + "title" + dispId);
	var contentDisp = document.getElementById( this.id + "content" + dispId);
	var oldTitleDisp = document.getElementById( this.id + "title" + this.activeId);
	var oldContentDisp = document.getElementById( this.id + "content" + this.activeId);
	var oldArr = document.getElementById( this.id + this.activeId + "arrow");
	var newArr = document.getElementById( this.id + dispId + "arrow");
	this.activeId = dispId;
	//if(is.ns4) {
	//	titleDisp.style = titleDisp;
	//	oldTitleDisp.style = oldTitleDisp;
	//	contentDisp.style = contentDisp;
	///	oldContentDisp.style = oldContentDisp;
	//}
	if(titleDisp)titleDisp.style.visibility = "visible";
	if(oldTitleDisp)oldTitleDisp.style.visibility = "hidden";
	if(contentDisp)
	{
		
			contentDisp.style.top = mouse_Y - 10;
			contentDisp.style.left = mouse_X + 10;
			contentDisp.style.visibility = "visible";
							
	}
	if(oldContentDisp)oldContentDisp.style.visibility = "hidden";
	if(oldArr)oldArr.src = arrowOff;
	if(newArr)newArr.src = arrowOn;
	return;
}

popup.prototype.swap = swapDisplay;

function getObjRef( strId ) {
	if(is.dom) return document.getElementById( strId );
	else if(is.ie) return document.all[strId];
	else if(is.ns4) {
		return eval("document." + strId);
	} else return null;
}


var fit = new popup( "fit" );
fit.activeId = fit_sections[0];


// SH_Utils_getElementById: function to get a reference to the layer object
// Arguments:
//  strId - string id of the layer
// Return value: 
// 	objLyr - the reference to the layer
function SH_Utils_getElementById( strId ){
	if(document.all) return document.all[ strId ];
	else return null;
}
// SH_Utils_getElementByIdNav4:  ns4 specific function to get a reference to the layer object
// NOTE: this will only retrieve an object ref if it corresponds to a NAMED layer, image or link
// Arguments:
//  strId - string id of the layer
// Return value: 
// 	objLyr - the reference to the layer
function SH_Utils_getElementByIdNav4( strId ){
	var objRef = null;
	objRef = SH_Utils_getLayerNav4( strId );
	if(! objRef ) objRef = SH_Utils_getImageNav4( strId );
	// Create a reference to a style object to mimic dom type behavior
	if(objRef)objRef.style = objRef;
	return objRef;
}

if(!is.dom) document.getElementById =  ( is.ns4 ? SH_Utils_getElementByIdNav4 : SH_Utils_getElementById );

// SH_Utils_getLayerNav4: function to get a reference to the layer object
// Arguments:
//  strId - string id of the layer
//  parentLyr - reference to the parent layer
// Return value: 
// 	objLyr - the reference to the layer
function SH_Utils_getLayerNav4( strId, parentLyr ){
	var objLyr;
	var parentObj = (parentLyr ? parentLyr : document );
	for( var i =0; i < parentObj.layers.length && !objLyr; i++) {
		if(parentObj.layers[i].id == strId) 
			objLyr = parentObj.layers[i];
		else 
			objLyr = SH_Utils_getLayerNav4( strId, parentObj.layers[i] );
	}
	return objLyr;
}
// SH_Utils_getImageNav4: NS4 specific function to get an image object reference
// Arguments:
//  strId - the string id of the image
// 	parentLyr - the parent layer to look in
// Return value: 
// 	imgObj - reference to the image object
function SH_Utils_getImageNav4( strId, parentLyr ) {
	var imgObj = null;
	var parentObj = (parentLyr ? parentLyr : document );
	imgObj = parentObj.images[ strId ];
	if(! imgObj ){
	for( var i =0; i < parentObj.layers.length && !imgObj; i++) 
		imgObj = SH_Utils_getImageNav4( strId, parentObj.layers[i].document );
	}
	return imgObj;
}

//TOGGLE

		function toggleDiv (div) {
			oDiv = eval(div+".style");
			if (oDiv.display == 'none') {
				oDiv.display = 'block';
			} else {
				oDiv.display = 'none';
			}
		}
