FaceBook AutoComplete

i want to do autocomplete like Facebook Autocomplete search

for example if i want to show friends and Group for certain user

i want wedgit to show like that :


name of friend 1

name of friend 2

name of friend 3

name of friend 4


name of Group 1

name of Group 2

name of Group 3

i am really need to help