I've been having a lot of trouble with a Google Maps mashup because the API only lets you set a z-order for specific item types (e.g. marker, or overlay). For example, you can set a marker's z-order, but that only affects the z-order relative to other markers. I have a map with polygons and markers, but at certain times, I want to make sure that the polygons beat the markers, and the default seems to be the other way around.
Is there some other way to do this without hacking up the rendered DIVs? Or an easy way to get the IDs of the rendered DIVs so I can hack around it with Javascript?