//	alert ("loading .js file")
	var list_of_ids = ""		
	var list_of_menu_items = ""		

	var idList = ""		
	var objectList = ""		

	function addToIdList(objId)	{
		// creates a list of the object ids and the corresponding object names
		if (idList.length){
			idList += ","
			objectList += ","
			}
		var objName = "o" + objId
		idList += objId
		objectList += objName
	}

	function initialize2()	{
		initialize()
		
		var arrIds = new Array()
		var cnt = 0

		addToIdList ("menuOutline")
		addToIdList ("contentOutline")
		addToIdList ("upcoming")
		addToIdList ("hotTopics")
		addToIdList ("emerging")
		addToIdList ("hlthNutrition")
		addToIdList ("riskAnalysis")
		addToIdList ("caseStudies")
		addToIdList ("currentProjects")
//		addToIdList ("reducedRisk")
		addToIdList ("otherProjects")
		addToIdList ("menuStudies")
		addToIdList ("menuWorkshops")
		addToIdList ("menuLine1")
		addToIdList ("menuRegister")
		addToIdList ("menuDonate")
		addToIdList ("bottomSpace")
		addToIdList ("tablewrapper")
		addToIdList ("googleWrap")
		addToIdList ("srchBtnWrap")
		addToIdList ("pageTitle")
		addToIdList ("subtitle")
		addToIdList ("contentBody")
		addToIdList ("contentBodyHomepage")
		addToIdList ("bottomMenu")
		addToIdList ("dtr")
		addToIdList ("goed")
		addToIdList ("cholesterol")


//	Create an object for each item in the arrIds list
//		Object name is arrIds[] name preceeded by lowercase "o"
	var arrIds = new Array
	var arrObjects = new Array
	arrIds = idList.split(",")
	arrObjects = objectList.split(",")
	for (i=0; i<arrIds.length; i++)	{
		idString = arrIds[i]
		objString = arrObjects[i]
		cmd = "var " + objString + "= document.getElementById('" + idString + "')"
		eval (cmd)
	}

// position google logo
		var trL = parseInt (otablewrapper.style.left)
		var trT = otablewrapper.offsetTop
		gL = trL + 728
		ogoogleWrap.style.left = gL + "px"
		gH = trT + 109
		ogoogleWrap.style.top = gH + "px"
		ogoogleWrap.style.visibility = "visible"

// position search button
		sbL = trL + 793
		osrchBtnWrap.style.left = sbL + "px"
		sbH = trT + 108
		osrchBtnWrap.style.top = sbH + "px"
		osrchBtnWrap.style.visibility = "visible"

// position outline for left (menu) column
		var trH = parseInt (otablewrapper.offsetHeight)
		var lcT = trH + trT - 1
		omenuOutline.style.top = lcT + "px"
		omenuOutline.style.visibility = "visible"

// position outline for right (page content) column
		ocontentOutline.style.top = omenuOutline.style.top
		menuWidth = omenuOutline.offsetWidth
		menuLeft = parseInt (omenuOutline.style.left)
		menuRight = menuLeft + menuWidth
		ocontentOutline.style.left = menuRight - 1 + "px"
		var fullpageLeft = parseInt(otablewrapper.style.left)
		var fullpageWidth = otablewrapper.offsetWidth
		var fullpageRight = fullpageLeft + fullpageWidth
		contentW = fullpageRight - menuRight + 1
		ocontentOutline.style.width = contentW + "px"

		// Do this because offsetWidth differs from style.width,
		//		and needs to be equal to difference between
		//		fullpageRight and menuRight; 
		//		because offsetWidth cannot be set directly, use this
		//		reiterative method of successive adjustment
		var cnt = 0
		//	[cnt] is a safety valve
		while ( (ocontentOutline.offsetWidth != contentW) && (cnt <100) )	{
			var i = 1
			if (ocontentOutline.offsetWidth > contentW){i = -1}
			ocontentOutline.style.width = parseInt(ocontentOutline.style.width) + i + "px"	
			cnt++
		}

		ocontentOutline.style.visibility = "visible"
		
// set the minimum height of the menu outline
//		Note: not all pages show the Gift Donation link
		var lastobject_inmenu
		if (omenuDonate)	{lastobject_inmenu = omenuDonate}
		else 	{lastobject_inmenu = omenuRegister}
		var lastBottom = lastobject_inmenu.offsetTop + lastobject_inmenu.offsetHeight
		menuOutlineTop = omenuOutline.offsetTop
		menuBottom = lastBottom + 20
		menuOutlineMinimumHeight = menuBottom - menuOutlineTop
		omenuOutline.style.height = menuOutlineMinimumHeight + "px"
		
/* Position Page contents */

	// Position title
		var pageTitleBottom = ocontentOutline.offsetTop + 15
		var subtitleBottom = ocontentOutline.offsetTop + 15
		
		if (opageTitle)	{
			opageTitle.style.top = ocontentOutline.offsetTop + 15 + "px"
			opageTitle.style.left = (ocontentOutline.offsetWidth - opageTitle.offsetWidth)/2 + ocontentOutline.offsetLeft + "px"
			pageTitleBottom = opageTitle.offsetTop + opageTitle.offsetHeight
		}
		
	// Position subtitle
		if (osubtitle)	{
		osubtitle.style.top = pageTitleBottom + 15 + "px"
		osubtitle.style.left = (ocontentOutline.offsetWidth - osubtitle.offsetWidth)/2 + ocontentOutline.offsetLeft + "px"
		subtitleBottom = osubtitle.offsetTop + osubtitle.offsetHeight
		}

	// Position contentBody
	
		if (ocontentBody)	{  // Homepage lacks a contentBody <div>
			var contentHorizOffset = 25
			ocontentBody.style.left = ocontentOutline.offsetLeft + contentHorizOffset + "px"
			ocontentBody.style.top = subtitleBottom + 25 + "px"
			ocontentBody.style.width = ocontentOutline.offsetWidth - (2 * contentHorizOffset) + "px"
			contentBodyBottom = ocontentBody.offsetTop + ocontentBody.offsetHeight + 2
			ocontentOutline.style.height = (contentBodyBottom - ocontentOutline.offsetTop) + "px"
		}
		if (ocontentBodyHomepage)	{	// Homepage has contentBodyHomepage <div>
									 	//	used to position the content image
 			ocontentBodyHomepage.style.top = ocontentOutline.offsetTop + 1 + "px"
			ocontentBodyHomepage.style.left = ocontentOutline.offsetLeft + 1 + "px"
			contentBodyBottom = ocontentBodyHomepage.offsetTop + ocontentBodyHomepage.offsetHeight + 2
			ocontentOutline.style.height = (contentBodyBottom - ocontentOutline.offsetTop) + "px"

			// set page contents outline background color to the lowest fade color of the
			//		home page image
			ocontentOutline.style.backgroundColor = "fcfcfc"
		}
/* END: Position Page contents */


// set page contents outline and menu outlines to the height of the higher of the two
		if (menuBottom > contentBodyBottom)	{
				x = omenuOutline.offsetHeight
		}
		else {
				x = ocontentOutline.offsetHeight
		}
		ocontentOutline.style.height = x + "px"
		omenuOutline.style.height = x + "px"

		adjust_bottom_menu()

//  make all menu items visible
		for (i=0; i<arrObjects.length; i++){
			x = 0
			cmd = "if (" + arrObjects[i] + ") {x=1}"
			eval (cmd)
			if (x)	{
				cmd = arrObjects[i] + ".style.visibility = 'visible'"
				eval (cmd)
			}
		}
		obottomMenu.style.visibility = "visible"
		
//		alert ()
		// call function specific for the page, located on the page
		specific_page_functions ()
	}

	function adjust_bottom_menu()	{
		var ocontentOutline = document.getElementById ('contentOutline')		
		var oMenuOutline = document.getElementById ('MenuOutline')		
		var obottomMenu = document.getElementById ('bottomMenu')		
		var obottomSpace = document.getElementById ('bottomSpace')		
		var otablewrapper = document.getElementById ('tablewrapper')		
		var fullpageLeft = parseInt(otablewrapper.style.left)
		var fullpageWidth = otablewrapper.offsetWidth

		// place the bottom menu 25px below the menu and content outlines
		var contentBodyBottom = ocontentOutline.offsetTop + ocontentOutline.offsetHeight
		var bottomMenuTop = contentBodyBottom + 25
		obottomMenu.style.top = bottomMenuTop + "px"

		// center the bottom menu
		btmMenuWidth = obottomMenu.offsetWidth
		btmMenuMarginWidth = (fullpageWidth - btmMenuWidth)/2
		obottomMenu.style.left = fullpageLeft + btmMenuMarginWidth + "px"

		// set the top of the bottom spacer 25px below the bottom menu
		obottomSpace.style.top = obottomMenu.offsetTop + obottomMenu.offsetHeight + 25 + "px"
	}