does it work?
if not, try move first two lines to <head></head> in header.html
and/or replace var cfg = {height:"250", width:"470", file:'/.{media_src}',windowless:'true'};
with var cfg = {height:"250", width:"470", file:'{media_src}',windowless:'true'};