Exhibit (d)(31) INVESTMENT ADVISORY AGREEMENT AGREEMENT made as of November 30, 2006, between THE RBB FUND, INC., a Maryland corporation (herein called the "Fund"), and BEAR STEARNS ASSET MANAGEMENT INC. (herein called the "Investment Adviser")....