Adding Flash Player Files

I need to do this in my in my js file:

var so = new SWFObject('player.swf','ply','470','30','9','#ffffff');

The actual js file loads fine, however the player.swf file won't load unless I hardcode the full path http://my.prog.org/plugins/Greatplugin/shared/javascripts/player.swf. Is there a way to get to get the swf file path internally in Omeka?

src will let you get the URL to a given plugin/theme file:

$path = src('player', 'javascripts', 'swf');