jQuery(document).ready(function(){

    var scripts = document.getElementsByTagName("script");

    var jsFolder = "";

    for (var i= 0; i< scripts.length; i++)

    {

        if( scripts[i].src && scripts[i].src.match(/initaudioplayer-1\.js/i))

            jsFolder = scripts[i].src.substr(0, scripts[i].src.lastIndexOf("/") + 1);

    }

    jQuery("#amazingaudioplayer-1").amazingaudioplayer({

        jsfolder:jsFolder,

        skinsfoldername:"",

        titleinbarwidthmode:"fixed",

        timeformatlive:"%CURRENT% / LIVE",

        volumeimagewidth:24,

        barbackgroundimage:"",

        showvolumebar:true,

        showtime:false,

        titleinbarwidth:80,

        showprogress:true,

        random:true,

        titleformat:"%TITLE%",

        height:999,

        imageheight:700,

        volumebarpadding:8,

        prevnextimage:"prevnext-48-48-1.png",

        showinfo:true,

        tracklistitem:10,

        skin:"DarkBox",

        loopimage:"loop-24-24-0.png",

        loopimagewidth:24,

        showstop:false,

        prevnextimageheight:48,

        infoformat:"%ARTIST% %ALBUM%<br />%INFO%",

        stopotherplayers:true,

        showloading:false,

        forcefirefoxflash:false,

        preloadaudio:true,

        tracklistarrowimagewidth:48,

        stopimagewidth:24,

        imagefullwidth:true,

        skinsfoldername:"",

        width:999,

        showtitleinbar:false,

        showtracklist:true,

        volumeimage:"volume-24-24-0.png",

        playpauseimagewidth:48,

        loopimageheight:24,

        tracklistitemformat:"%ID%. %TITLE% <span style='position:absolute;top:0;right:0;'>%DURATION%</span>",

        prevnextimagewidth:48,

        tracklistarrowimage:"tracklistarrow-48-16-0.png",

        forceflash:false,

        playpauseimageheight:48,

        showbackgroundimage:true,

        stopimage:"stop-24-24-0.png",

        showvolume:true,

        defaultvolume:100,

        forcehtml5:false,

        showprevnext:true,

        backgroundimage:"lv_krmsk1.gif",

        loadingformat:"Loading...",

        progressheight:8,

        showtracklistbackgroundimage:false,

        showtitle:true,

        tracklistarrowimageheight:16,

        heightmode:"fixed",

        titleinbarformat:"%TITLE%",

        stopimageheight:24,

        volumeimageheight:24,

        showbarbackgroundimage:false,

        volumebarheight:72,

        noncontinous:false,

        tracklistbackgroundimage:"",

        showloop:true,

        showimage:true,

        imagewidth:700,

        timeformat:"%CURRENT% / %DURATION%",

        autoplay:true,

        fullwidth:true,

        loop:1,

        playpauseimage:"playpause-48-48-1.png"

    });

});