Here’s some Arabic RTL text to get you started: الولايات المتحدة الأمريكية
Read the related article (or view the page source to see the not-so-gory Javascript details).
Please Note: As stated within the accompanying article, it’s the Google engineers that should take all the credit for this script, not me!