Code
<script type="text/javascript">
forum = "http://адрес форума"
str = document.getelementbyid("navpm").innerhtml
loc = new string(document.location)
if( (str.indexof("(") != -1) && document.referrer.indexof(forum)==-1 && loc.indexof('messages.php')==-1)
{document.write("<embed src='http://fantasyflash.ru/music/midi/midi1.mid' autostart=true >") }
</script>