Подскажите, есть ли какая-то возможность изменить путь к папке с картинками в скрипте на массив PHP:
<script type="text/javascript">
    window.onload = init;
    var product;
    function init(){
      car = $('.product1').ThreeSixty({
        totalFrames: 10,
        endFrame: 50,
        currentFrame: 1,
        imgList: '.threesixty_images',
        progress: '.spinner',
        imagePath:'http://site.com/files/products/',
        filePrefix: '',
        ext: '.png',
        height: 400,
        width: 400
      });
      $('.custom_previous').bind('click', function(e) {
        car.previous();
      });
      $('.custom_next').bind('click', function(e) {
        car.next();
      });
      $('.custom_play').bind('click', function(e) {
        car.play();
      });
      $('.custom_stop').bind('click', function(e) {
        car.stop();
      });
    }
Путь к папке в скрипте:  imagePath:'http://site.com/files/products/',
Массив PHP: 
{foreach $product->images}
<img src="{$image->filename|resize:500:500}"/>
{/foreach}