--- templates/CRM/common/openFlashChart.tpl
+++ templates/CRM/common/openFlashChart.tpl
@@ -28,7 +28,7 @@
 {literal}
 <script type="text/javascript">
     function createSWFObject( chartID, divName, xSize, ySize, loadDataFunction ) {
-       var flashFilePath = {/literal}"{$config->resourceBase}packages/OpenFlashChart/open-flash-chart.swf"{literal};
+       var flashFilePath = "{/literal}{$config->resourceBase}{literal}packages/OpenFlashChart/open-flash-chart.swf";
 
        //create object.
        swfobject.embedSWF( flashFilePath, divName,
