Actually the palantiri were created by the elves as communication tools, even before the sun and moon were created, and used by the good guys for several thousand years before they fell in the hands of the bad guys about halfway through the third age.