I've got a situation that has turned my mind to mush and could use some real help.
I'm pulling in an ad from Google's ad management system, Doubleclick For Publishers (DFP), using this code:
<script type='text/javascript'>
    GA_googleFillSlot("TEST_960x300");
</script>
Apparently Google auto-generates a DIV around said ad. I'm detecting if an ad exists (therefore above DIV) with this:
<script type='text/javascript'>
if(document.getElementById('google_ads_div_TEST_960x300_ad_container')){
    document.getElementById('google_ads_div_TEST_960x300_ad_container').setAttribute("class", "billboard");
}
//For IE since it seems DFP outputs a different div for IE.
if(document.getElementById('google_ads_div_TEST_960x300')){
    document.getElementById('google_ads_div_TEST_960x300').setAttribute("class", "billboard");
}
</script>
When an ad is present I need to put the following line inside this elusive DIV element
<input type="image" id="expand_button" src="test_btn_expand.png" />
which will show a button on top of the ad allowing a user to shrink/expand the ad with said button. Everything is working like a champ but I cannot figure out how to get the above button inside Google's DIV.
Any thoughts?

container.appendChild(element)or.innerHTML = "<input ...>". Pick and choose.