function siteInit() {
	attachEpochHandlers();
	menuSizing();
}

function attachEpochHandlers(){
	var epochDateFields = $$('.formDateSelector');
    for(i=0; i<epochDateFields.length; i++){
        new Epoch('epoch_popup','popup',epochDateFields[i]);
	}
}

function menuSizing() {
	//Get the height of the menu container
	menuHeight = $('menu').getHeight();
	
	//Get pixel height of standard font
	var temp_div = new Element('div');
	temp_div.setStyle({
		height: '1em'
	});
	$('layoutContainer').insert(temp_div);
	
	//Get pixel height of menu font
	var menu_size_div = new Element('div');
	var menu_size = $$('.menulist');
	menu_size = menu_size[0].getStyle('font-size');
	menu_size_div.setStyle({
		height: menu_size
	});
	
	//create the measurement divs so we can get their heights
	$('layoutContainer').insert(temp_div);
	$('layoutContainer').insert(menu_size_div);
	
	//calculate the difference between the size of the menu container and the size of the menu font
	menuFontHeight = menu_size_div.getHeight();
	emHeight = temp_div.getHeight();
	
	paddingHeight = ((menuHeight - menuFontHeight) / 2) * 0.8;
	
	//Set height of the menu links and their vertical position
	$$("ul.menulist>li>a").each(function(s) {
  		s.setStyle({
  			height: (menuHeight-paddingHeight)+'px',
			paddingTop: paddingHeight+'px'
  		});
	});
	
	//Set location of sub-menu dropdown
	$$(".menulist ul").each(function(s) {
  		s.setStyle({
  			top: menuHeight +'px'
		});
	});
}
