/* installed file=/include/centerContentSimple.js
 *
 *	Copyright (c) 2010 by FKE Internet.  All rights reserved.
 *
 *	$Id: /include/centerContentSimple.js,v $
 */
/**
*	Routine to center the "content" element horizontally on the HTML page
*	@	centerContent()
*
*	Routines marked with '@' are called when the page loads.
*
*	Author:			Fred Koschara
*	Creation Date:	July twelfth, 2010
*	Last Modified:	July 16, 2010 @ 1:56 pm
*
*	Revision History:
*	   Date		  by		Description
*	2010/07/12	wfredk	declare content variable using "var" (IE fails)
*	2010/07/12	wfredk	original development, extracted from PbF test code
*/

/**
* centers the "content" element horizontally on the HTML page
*
* The element should have 'style="visibility:hidden"' asserted to avoid having
* the browser draw the element in its default position before the page load is
* completed, then have it redrawn in the centered position.
*/
function centerContent()
{
	var content=document.getElementById("content");
	if (content)
	{
		content.align="center";
		content.style["visibility"]="";
	}
}

addLoadEvent(centerContent);
//
// EOF: centerContentSimple.js

