//page setuponresize = centerContent;//Mouse Over Scriptsfunction mOver ( el ) {	//change image to be image name plus _over	var imgPath = el.src;		var filePath = string_getFilePath ( imgPath );	var fileName = string_getFileName ( imgPath );	var ext = string_getFileExt ( imgPath );	//add _over if fileName does not already contain _over	el.src = filePath + fileName + "_over" + ext;}function mOut ( el ) {	//change image to be image name plus _over	var imgPath = el.src;		var filePath = string_getFilePath ( imgPath );	var fileName = string_getFileName ( imgPath );	var ext = string_getFileExt ( imgPath );		//remove _over	var fileName2 = fileName.replace("_over", "");	el.src = filePath + fileName2 + ext;}	// Easy Image Preloadingfunction loadImages() {	//load all mouseovers	loadMouseOvers();		if (document.getElementById) {  // DOM3 = IE5, NS6		document.getElementById('pageContent').style.visibility = 'visible';	}	else {	if (document.layers) {  // Netscape 4		document.pageContent.visibility = 'visible';	}	else {  // IE 4		document.all.pageContent.style.visibility = 'visible';		  }	}}//preload all images that may be mouseOvers and their counterpartsfunction loadMouseOvers () {	var els = document.getElementsByTagName("IMG");	var elsCount = els.length;	for (var i=0; i < elsCount; i++) {		//alert(els[i].onmouseover);		if ( els[i].onmouseover ) {			//change image to be image name plus _over			var imgPath = els[i].src;						var filePath = string_getFilePath ( imgPath );			var fileName = string_getFileName ( imgPath );			var ext = string_getFileExt ( imgPath );				//add _over			var temp = newImage(filePath + fileName + "_over" + ext);		}			}}function newImage(arg) {	if (document.images) {		rslt = new Image();		rslt.src = arg;		return rslt;	}}//centeringfunction centerContent () {//return;	var el = document.getElementById('main');   if(document.all){      availH = document.body.clientHeight;	  availW = document.body.clientWidth;   }else{      availH = innerHeight;      availW = innerWidth;   }	var newY = (availH /2) - (el.offsetHeight / 2); 	var newX = (availW /2) - (el.offsetWidth / 2); 		if (newY >1 ) {		el.style.top = newY + "px";	} 	if (newX >1 ) {		el.style.left = newX + "px";	} }//String manipulation scriptsfunction string_getFilePath ( fullPath ) {	var endOfPath = fullPath.lastIndexOf("/") + 1;	var filePath = fullPath.substring(0, endOfPath);	return filePath;}function string_getFileName ( fullPath ) {	var endOfPath = fullPath.lastIndexOf("/") + 1;	var fileFullName = fullPath.substring(endOfPath);	//var filePath = imgPath.substr(0, endOfPath);	//get extension	var endOfName = fileFullName.lastIndexOf(".");	var ext = fileFullName.substring( endOfName );	//get file name	var fileName = fileFullName.substring( 0, endOfName );	//add _over	return fileName;}function string_getFileExt ( fullPath ) {	var endOfPath = fullPath.lastIndexOf("/") + 1;	var fileFullName = fullPath.substring(endOfPath);	//get extension	var endOfName = fileFullName.lastIndexOf(".");	var ext = fileFullName.substring( endOfName );	return ext;}var newwin;function launchwin(winurl,winname,winfeatures){       //This launches a new window and then       //focuses it if window.focus() is supported.       newwin = window.open(winurl,winname,winfeatures);       if(javascript_version > 1.0)       {               //delay a bit here because IE4 encounters errors               //when trying to focus a recently opened window               setTimeout('newwin.focus();',250);       }}
