/* Home page - Operations executed when the page loads
 * 
 * University of Ottawa
 * Computing and Communications Services
 */
 
 /* require modern browser by checking for required features */
if (document.getElementById 
	&& document.getElementsByTagName 
	&& document.createElement
	&& document.createTextNode
	&& typeof window.addDOMLoadEvent == 'function') {
	
	/* initialize quickpicks/fac/dept drop-down lists */
    addDOMLoadEvent(initHomePageDropDownLists);
	
}

function initHomePageDropDownLists() {
	var objFacultiesList = new dropDownList(document.getElementById('list-faculties'));
	var objDepartmentsList = new dropDownList(document.getElementById('list-departments'));
	initCollapseOnPageBodyClick();
	
	/* if javascript if enabled, display the dropdowns */
	window.cssjs('add',document.getElementsByTagName('body')[0],cssClasses.jsEnabled);
}
