Here is a good gravity script that i use in alot of my projects...just Download it and take a look at it...its really easy and great!