function popme(ShowPage, intwidth, intheight) {	
	var leftpos = (screen.width - intwidth) / 2;
	var toppos = (screen.height - intheight) / 2;	
	var winprops = 'toolbar=1, scrollbars=1, location=0, statusbars=0, menubar=0, width=' + intwidth + ', height=' + intheight + ', left=' + leftpos + ', top=' + toppos + ', resizable=1';    
	var popupwindow = window.open(ShowPage, 'poppage', winprops);
}

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];		
		}	
	}
}

var preloadFlag = false;

function preloadImages() {	
	if (document.images) {		
		menu0_o = newImage("imgs/enter_on.gif");		
		preloadFlag = true;
	}
}

function stdStatus() {    
	window.status = "Lighthouse Family";
	return true;
}

function newWin(theUrl,tHeight,tWidth) {
	/* set up vars */
	var me = parent.window;
	var	win_x = tWidth;
	var	win_y = tHeight;
	var	pos_x = ((screen.width - win_x)/ 2);
	var pos_y = ((screen.height - win_y)/ 2);
	var plat = navigator.platform;
	var bName = navigator.appName;
	var bvers = navigator.appVersion;
	
	if (bName=="Microsoft Internet Explorer") {
		child = window.open(theUrl,'win', 'width='+tWidth+',height='+tHeight+',scrollbars=no');
		child.moveTo (pos_x, pos_y);
	} else {
		child = window.open(theUrl,'netnav', 'width='+tWidth+',height='+tHeight+',scrollbars=no');
		child.moveTo (pos_x,pos_y);
	}
}


function MM_callJS(jsStr) { //v2.0  
	return eval(jsStr)
}