public TabsAdapter(SherlockFragmentActivity activity, ViewPager pager) {
   super(activity.getSupportFragmentManager());
   mContext = activity;
   mActionBar = activity.getSupportActionBar();
   mViewPager = pager;
   mViewPager.setAdapter(this);
   mViewPager.setOnPageChangeListener(this);
 }
 @Override
 public boolean onNavigationItemSelected(int itemPosition, long itemId) {
   // the above is only for LiveReservations...
   CustomNavigationListReturns_SDR parentactivity = (CustomNavigationListReturns_SDR) m_activity;
   if (itemPosition == 0) {
     parentactivity.CustomNavListRet(LiveReservations.CustNavListItem_SAMEDATE);
   } else if (itemPosition == 1) {
     // m_activity.getSupportActionBar().setSelectedNavigationItem(0);
     parentactivity.CustomNavListRet(LiveReservations.CustNavListItem_TODAYVIEWDATE);
   } else {
     m_activity.getSupportActionBar().setSelectedNavigationItem(0);
     parentactivity.CustomNavListRet(LiveReservations.CustNavListItem_CHANGEDATE);
   }
   return true;
   /*
    * else if (m_content.equals(m_titlearray[itemPosition])){ return true;
    * }
    */
 }