function myVoid() {;}

/* ShowHide script */

function showHide(eID, action, holderID) {

	var vNum = navigator.appVersion;
	var vVer = navigator.appName;
	
	//NSonly is to count for 4.73 and 4.78 on windows 2000 (NT5.0)
	var nsOnly = (vNum.indexOf("5.0") == -1 != vNum.indexOf("NT 5.0") == 1);

	//Netscape did something weird with 6.2....this fixes it.
	var ns6 = (vNum.indexOf("5.0") == 0 && vVer.indexOf("Netscape") == 0 && vNum.indexOf("4") == -1);
	
	// if its not IE and not NS6
	if (navigator.appName.indexOf("Microsoft") == -1 && nsOnly && !ns6) {
		// Netscape 4 Code
		if (action) {
			action = "show";
		} else {
			action = "hide";
		}
		eval("document."+holderID+".layers['" + eID + "'].visibility='" + action + "';");
	} else {
	//IE and NS 6 code
		if (action) {
			action = "visible";
		} else {
			action = "hidden";
		}

		if (ns6) {
			// Netscape 6 Code
			eval("document.getElementById('" + eID + "').style.visibility='" + action + "';");
		} else {
			// Microsoft Code
			eval(eID + ".style.visibility='" + action + "';");
		}
	}
}

/* Image preload script */

function newImage(arg) {
	if (document.images) {
	rslt = new Image();
	rslt.src = arg;
	return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

/* Glossary nav system */
function getResNav()
{
	var ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
	t = '<p align="center">'
	for(var c = 0 ; c < ch.length ; c++)
	{
		t += '<a title="Go to items starting with '
		+ ch.charAt(c) + '" href="#' + ch.charAt(c) + '" '
		+ 'onMouseOver="window.status=\'Go to items starting with ' 
		+ ch.charAt(c) + '\'; return true;" '
		+ 'onMouseOut="window.status=\'\'" '
		+ ' class="glossary-nav">' + ch.charAt(c) + '</a>'
		if(c < 25) {
		t +=  ' - '
		}
	}
	t += '</p>'
	return t
}


// Open window function
function openWin(url,name,w,h,p)
{
	if(url != null)
	{
		if(name == null) name = "iti";
		if(w == null) w = 640;
		if(h == null) h = 400;
		
		if(p){
		var s = p
		} else {
		var s = "scrollbars,resizable,menubar";
		}
		
		s += ",height=" + h + ",innerHeight=" + h;
		s += ",width=" + w + ",innerWidth=" + w;
		
		if(window.screen)
		{
			var aH = screen.availHeight;
			var aW = screen.availWidth;
			var cY = Math.round((aH - h)/2);
			var cX = Math.round((aW - w)/2);
			s += ",left=" + cX + ",screenX=" + cX;
			s += ",top=" + (cY-30) + " ,screenY=" + (cY-30);
		}
		childWindow = window.open(url,name,s);
		childWindow.focus();
	}
}