Thanks Jay and Nextdesign for the tips, but I actually tried this but for some reason the shadows don't work on the use background shader when I am using mental ray or FG.