
$(document).ready(function(){Pps=new Image();Pps.src='/tpl/img/m3ps.gif';});var MP3Vol='50';function MP3Go(id){var oid='';if($('.m3d .b object').length)oid=$('.m3d .b object').attr('id').substr(3);else if($('.m3d .b embed').length)oid=$('.m3d .b embed').attr('id').substr(3);if(oid!='')$('#mb'+oid+' .m3b').html('<img src="/tpl/img/m3pl.gif" onclick="MP3Go('+oid+')">');$('.m3d .b').html('');var so=new SWFObject("/tpl/flash/mp3p.swf","m3p"+id+"","350","10","8");so.addParam("allowScriptAccess","sameDomain");so.addParam("wmode","transparent");so.addVariable("url3","/audio/?id="+id);so.addVariable("vlm3",MP3Vol);so.write('mp'+id);$('#mb'+id+' .m3b').html('<img src="/tpl/img/m3ps.gif" onclick="MP3Send('+id+',\'pause\')">');}
function MP3Send(id,c){if(c=='pause')$('#mb'+id+' .m3b').html('<img src="/tpl/img/m3pl.gif" onclick="MP3Send('+id+',\'play\')">');else if(c=='play')$('#mb'+id+' .m3b').html('<img src="/tpl/img/m3ps.gif" onclick="MP3Send('+id+',\'pause\')">');var movie=(navigator.appName.indexOf("Microsoft")!=-1?window:document)["m3p"+id];movie.MP3sJS(c);}
function MP3Volume(v3){MP3Vol=v3;}
function MP3Complete(v3){var oid='';if($('.m3d .b object').length)oid=$('.m3d .b object').attr('id').substr(3);else if($('.m3d .b embed').length)oid=$('.m3d .b embed').attr('id').substr(3);if(oid!=''){var next=false;$('.m3d .b').each(function(n,element){if(next){MP3Go($(element).attr('id').substr(2));next=false;}
if(oid==$(element).attr('id').substr(2))next=true;});}}