// Sets up the flyouts
/**
 * @author jheaven@acromediainc.com
 */
 
function setupFlyouts () {
	dropdowns = $$('li.flyout');
	dropdowns.each(function(dropdown, i) {
		dropdown.menu = dropdown.getElementsBySelector('ul')[0];
		dropdown.onmouseover = function () { 
			this.menu.style.display = 'block';
		}
		dropdown.onmouseout = function () { 
			this.menu.style.display = 'none';
		}
	});
}

addLoadEvent(setupFlyouts);