/*
Nav images - utilOn, utilOff
NN4 resize bug - resizeFix
*/

/*
Utility nav image swap
*/

// Initialize utility nav images
if (document.images) {
/*
	siteOff = new Image(50, 50);
	siteOff.src = s_dbNm + "site.jpg";
    
    siteOn = new Image(50, 50);
	siteOn.src = s_dbNm + "site_on.jpg";
*/
}


function utilOn(imgName) {
    if (document.images) { 
        imgOn = eval(imgName + "On.src");
        document [imgName].src = imgOn;
	}
}

function utilOff(imgName) {
	if (document.images) {
        imgOff = eval(imgName + "Off.src");
        document [imgName].src = imgOff;
	}
}


/*
Code for Netscape 4 Resize bug 
This is a workaround for a Netscape 4 bug that causes 
stylesheets to be corrupted when the window is resized.
*/

if (document.layers) {
	var widthCheck = window.innerWidth;
	var heightCheck = window.innerHeight;
	window.onResize = resizeFix;
}

function resizeFix() {
	with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)){
	if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
	document.location.href = document.location.href;
	}}
	
}
