Using Google Earth in HTML pages with KML, load progress bar, ballons, placemarkers and events

This is to share our recent work with Google Earth. The procedure we describe below works with HTML as well as with PrimeFaces/JSF pages. This is based on Google Code playground excercises. You may also want to get an Google API key if you don't have it already.