This g3 rest script is an excellent embed option for Gallery 3.
The black or blank problem stems from the galleries have to be set to view full size at the g3 site.
My g3 structure and planning is set to have full size turned off for the public to allow printing for users.
The page on Flash your Web.
The topic on the Gallery 3 Forums