soundManager.url = '/wp-content/themes/soundmap/carnaval/swf/'; var songChanged = function(evt){ var target = evt.info.target; var id = target.dataset.id; var data = { action: 'soundmap_theme_get_post', post_id: id, }; // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php jQuery.post(WP_Params.ajaxurl + '?lang=' + WP_Params.language, data, function(response) { jQuery('#info-wrapper').empty().append(response); }); } jQuery(document).ready(function(){ jQuery('body').jKit(); jQuery('.antiscroll-wrap').antiscroll(); hotsPlayer.draw(); hotsPlayer.registerEvent('startPlay', songChanged); //hotsPlayer.registerEvent('startPlay', onSongStarted); });