BuildMenu builds the top-level menu. It is called from the OnDataBinding method as well as from CreateChildControls. It has code to check if the top-level menu should be laid out horizontally or vertically.
Menu Class | skmMenu Namespace