Looking at the php code in the file cb.profilegallery.php i note that the html of the popup window is generated using this kind of code ...
[code:1]$htmltext2 .= "newWindow.document.writeln(\"<div align='center' >\"«»);\n";[/code:1]
Then i beleave that calling an external javascript in that lines could be the sollution.
[code:1](\"<script src='
mysite.com/adsense.js'>
</script>\"«»);\n";[/code:1]
But it doesnt works, maybe because i dont know a s**** of javascript

Anybody with any idea about it ?, if it just cant be done please tell me

Thanks in advance.