Having selection problems only with "div" and div-

Having selection problems only with "div" and div-

Here's my htm - http://www.stjohnhistoricalsociety.org/Maps7.htm
my js in "Includes/Maps7.js"
and my ajax data is in "Data/Placemarks.htm"

For security reasons Google Maps and Earth browser plugin APIs strip out javascript, css, <object>, <embed> from input KML files. So in order have audio/video content in my Feature Ballons/InfoWindows, I plan to load a .htm data file with the additional content I need, and when my app is notified that a placemark has been added/created from the kml file, I can add the additional content to the overlay (see http://www.stjohnhistoricalsociety.org/Maps7.htm for a non-ajax version - when you click on a yellow placemark, then you have two tabs - the 2nd one being dynamically added to the kml tab). Each placemark has a "overlay.name" which I try to match up with a ajax container id or class. Sounds simple -- #1 rewrite the Google maps InfoWindowTabs, and #2 trigger FlowPlayer to initialize its flash player containers.

...after 10 hours of flaying I need help!

#1. I can't select the ajax <div class="abc"> by either tag ("abc"), or by class (".abc) [tried coding using "id", too] BUT I can select all its children!??? I log the results to the console log and I hover around Maps7.js/line 196 in futile desperation.

For what it's worth-
If I render the ajax content page standalone and "inspect the element" with Firebird the dom structure is a little different that what JQuery produces by $(ajaxHTMLtext) in my app -- JQ doesn't show the <head> and <body> element and shows some extra "text-nodes" interleaved among the <div>. Significant?

#2. At Maps7.js lines 306-308 try to do the magic selection/flowplay expansion/and binding of new InfoWindowTabs. Everything fails here.



I would appreciate any help you may offer. Thank you