swfObject looses path to file with permalinks

Hi, i’m using swfObject in my header to output my swf, so that lightbox plugin can overlay it in FF and Safari3
i have a problem where the script cant find a path to file.
works on the .htaccess designated homepage, but those urls that are generated by the permalinks makes the script loose the swf file.