search div function by depth