var _destoon_message = {$_message}; var _destoon_chat = {$_chat}; var _destoon_cart = get_cart(); if(typeof destoon_member == 'undefined') { $('#destoon_message em').remove(); $('#message em').remove(); if(_destoon_message) { $('#destoon_message').append(''+_destoon_message+''); $('#message').append(''+_destoon_message+''); } if(_destoon_message > destoon_message && {$_sound}) { $('#destoon_space').html(sound('message_{$_sound}')); destoon_message = _destoon_message; } {if $DT[im_web]} $('#destoon_chat em').remove(); $('#chats em').remove(); if(_destoon_chat) { $('#destoon_chat').append(''+_destoon_chat+''); $('#chats').append(''+_destoon_chat+''); } if(_destoon_chat > destoon_chat) { $('#destoon_space').html(sound('chat_new')); destoon_chat = _destoon_chat; } {/if} } else { $('#destoon_message').html(_destoon_message ? ''+_destoon_message+'' : 0); if(_destoon_message > destoon_message && {$_sound}) { $('#destoon_space').html(sound('message_{$_sound}')); destoon_message = _destoon_message; } {if $DT[im_web]} $('#destoon_chat').html(_destoon_chat ? ''+_destoon_chat+'' : 0); if(_destoon_chat > destoon_chat) { $('#destoon_space').html(sound('chat_new')); destoon_chat = _destoon_chat; } {/if} {if $DT[max_cart]} $('#destoon_cart').html(_destoon_cart > 0 ? ''+_destoon_cart+'' : 0); {/if} }