Absolute Paths

If i’ve built a site with all links to images and scripts using absolute paths /images/img.gif and now i’ve found out the client is not going to be housing this site with folders to images and scripts, etc in the root directory but in subfolders of the root directory is there a way i can make sure everything points where it should without having to change all the code?