for foam i would use Neoprene Rubber or close cell foam, you can pick this stuff up really cheap at
www.mcmaster.com for glue i would use either Silicone II from GE, you can get it at walmart for like 2 bucks and it can do multiple computers, I like using to to hide wires, it holds them up in tight places once it cures and then if i want to i can tear them down. or if you are just looking for sealant,
www.octools.com has Dow Corning Conformal stuff, they send it in a neat packaging with a fine tip to get it in tight places.
------------------
Blah Blah Blah
Overclocked Dual PIII 933
sitting on a VP6 mobo featuring liquid intercooling.
AIM[SN]: PhreeNET