function fOnLoad() {
	if (!gbW3C) return gfW3C_Failed();
	
	if (gsShowEmgergency == "show") {
		oLayerAnchorPoint = document.getElementById('tdFlash');
		if (!oLayerAnchorPoint) return gfMissingObj('tdFlash');
	
		fMoveLayer(oLayerAnchorPoint,'boxEmergency',71,20)
	
		oLayerAnchorPoint.className = 'emergency';

//		oFlash = document.getElementById('flashHome');
//		if (!oFlash) return gfMissingObj('flashHome');

//		oFlash.style.visibility = 'hidden';

		oMenu = document.getElementById('menuBG');
		if (!oMenu) return gfMissingObj('menuBG');

		oMenu.style.display = 'none';

		oDropdownTrain = document.getElementById('Table1');
		if (!oDropdownTrain) return gfMissingObj('Table1');

		oDropdownTrain.style.display = 'none';
	}
}
function fCloseEmergency() {
	if (!gbW3C) return gfW3C_Failed();
	
	oLayer = document.getElementById('boxEmergency');
	if (!oLayer) return gfMissingObj('boxEmergency');

	oLayer.style.visibility = 'hidden';

	oTdFlash = document.getElementById('tdFlash');
	if (!oTdFlash) return gfMissingObj('tdFlash');

	oTdFlash.className = '';

//	oFlash = document.getElementById('index');
//	if (!oFlash) return gfMissingObj('index');

//	oFlash.style.visibility = 'visible';

		oMenu = document.getElementById('menuBG');
		if (!oMenu) return gfMissingObj('menuBG');

		oMenu.style.display = 'block';

		oDropdownTrain = document.getElementById('Table1');
		if (!oDropdownTrain) return gfMissingObj('Table1');

		oDropdownTrain.style.display = 'block';
}
function fMoveLayer(oHTML_Anchor, sLayerName, sX_Offset, sY_Offset) { // v1.3.0 2006-09-15; like:; req:fFindPos(v1.1);
	if (!gbW3C) return gfW3C_Failed();
	
	oLayer = document.getElementById(sLayerName);
	if (!oLayer) return gfMissingObj(sLayerName);
	
	
	iX_Offset = parseInt(sX_Offset);
	iY_Offset = parseInt(sY_Offset);
	
	if (isNaN(sX_Offset))
		if (sX_Offset == 'center') {
			alert(oLayer.style.width); /* INCOMPLETE */
		}
	
	var aCoords = fFindPos(oHTML_Anchor);
	oLayer.style.left = (aCoords[0] + iX_Offset ) + 'px';
	oLayer.style.top = (aCoords[1] + iY_Offset) + 'px';
	
	oLayer.style.visibility = 'visible';
}
function fFindPos(oHTML) { // v1.1.0 2006-09-15; like:fMoveLayer(v1.3); req:;
	var iCurLeft = iCurTop = 0;
	if (oHTML.offsetParent) {
		iCurLeft = oHTML.offsetLeft;
		iCurTop = oHTML.offsetTop;
		while (oHTML = oHTML.offsetParent) {
			iCurLeft += oHTML.offsetLeft;
			iCurTop += oHTML.offsetTop;
		}
	}
	return [iCurLeft,iCurTop];
}

// Call the following with your function as the argument
fSafeAddOnload(fOnLoad);