there are scripts to help you out see wp js for more info talk