<style>
#button-spoiler {background-image:url('http://gbass.ru/images/spoiler.gif'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat; height:26px; width:100%}
</style>
<script type="text/javascript">
function tag_spoiler(){
var y = prompt("Введите описание закрытой кнопки",'');
if(y!='null' && y!='' && typeof(y)!='object' && typeof(y)!='undefined'){
var x = prompt("Введите описание открытой кнопки",'Закрыть');
if(x=='null' || x=='' || typeof(x)=='object' || typeof(x)=='undefined') bbcode('[spoiler='+y+']','[/spoiler]'); else bbcode('[spoiler='+y+'|'+x+']','[/spoiler]');}
else bbcode('[spoiler]','[/spoiler]')
}
function addSpoiler(str,from,internal){
var pos=0,pos2=0,pos_c=0,pos_l=0,newpos=0,string='',close='',open='';
if((pos=str.indexOf("[spoiler",from))==-1) return str;
if((pos2=str.indexOf("[/spoiler]"),pos+9)==-1) return str;
if(((pos_c=str.indexOf("]",pos+8))!=-1) && ((pos_c!=pos+8)&&(pos_c!=pos+9))){
string = str.substring(pos+9,pos_c);
if((pos_l = string.indexOf("|"))!=-1){
close = string.substring(0,pos_l);
open = string.substring(pos_l+1,string.length);
}
else{
close = string;
open = string;
}
}
else{
close = 'Показать спойлер';
open = 'Скрыть спойлер';
}
newpos=str.indexOf("[spoiler",pos+9)
if(newpos<pos2 && newpos!=-1) str=addSpoiler(str,pos+9,true)
if((pos2=str.indexOf("[/spoiler]",pos+9))==-1) return str;
str=str.substring(0,pos)+makeSpoiler(str.substring(pos_c+1,pos2),open,close)+str.substring(pos2+10,str.length)
if( str.indexOf("[spoiler")!=-1 && internal==false) str=addSpoiler(str,0,false)
return str;
}
function makeSpoiler(txt,open,close){
txt='<div class="quote-box" style="padding:1px;background: none; border: 0;"><cite style="width:100%;margin:0;"><input id="'+open+'" class="spoiler-button" style="width:140px;font-size:10px; margin:0; cursor: pointer" type="button" value="'+close+'"></cite><blockquote class="quote-box" style="display:none; width: 80%;border: 1px solid black;margin:0;">'+txt+'</blockquote></div>'
return txt;
}
$(document).ready(function(){
$("div.quote-box > cite > input.spoiler-button").click(function(){
$(this).parents("div.quote-box:first").find("blockquote.quote-box:first").toggle("slow");
var a = $(this).attr('value');$(this).attr('value',$(this).attr('id'));$(this).attr('id',a);
});
});
if((document.URL.indexOf("viewtopic.php")!=-1) || (document.URL.indexOf("post.php")!=-1)){
elm=document.getElementById("pun-main").getElementsByTagName("div")
for(x in elm) if(elm[x].className=="post-content"){
var post=elm[x]
post.innerHTML=addSpoiler(post.innerHTML,0,false)
}
}
if(form=document.getElementById("form-buttons"))
form.getElementsByTagName("tr")[0].insertCell(16).innerHTML="<img id=\"button-spoiler\" title=\"Спойлер\" onclick=\"tag_spoiler('[spoiler]','[/spoiler]')\" src=\"/i/blank.gif\" />"
</script>
<script type="text/javascript">
defaultPict = "http://i017.radikal.ru/0907/df/26a63da26236.gif"
var arr=document.getElementsByTagName("ul")
i=1
while(arr[++i]){
str=arr[i].innerHTML
if(str.indexOf("pa-avatar")==-1) {
q=str.toLowerCase()
if((pos=q.indexOf("<li class=pa-from>"))!=-1 || (pos=q.indexOf("<li class=\"pa-from\">"))!=-1 || (pos=q.indexOf("<li class=pa-reg>"))!=-1 || (pos=q.indexOf("<li class=\"pa-reg\">"))!=-1){
nstr =str.substring(0,pos)
nstr+="<li class=\"pa-avatar item2\"><img src="+ defaultPict +" alt=\"Аватар\" /></li>"
nstr+=str.substring(pos)
arr[i].innerHTML=nstr
}}}
</script>
<script>
function HideInfo(id,but){
if(but.value=="+"){
but.value = "-";document.getElementById(id).style.display = ""}
else{
but.value = "+";document.getElementById(id).style.display = "none"}
return false}
d = document.getElementsByTagName("div")
for (i=0;d[i]; i++){
if (d[i].className.indexOf("post-author")!=-1){t = d[i].innerHTML
if((j = t.toLowerCase().indexOf("<li class=pa-from>"))!=-1 || (j = t.toLowerCase().indexOf("<li class=\"pa-from\">"))!=-1 || (j = t.toLowerCase().indexOf("<li class=pa-reg>"))!=-1 || (j = t.toLowerCase().indexOf("<li class=\"pa-reg\">"))!=-1)
d[i].innerHTML = t.substring(0,j)+"<input type='Submit' onClick=\"return HideInfo('info"+i+"',this)\" value='+'><br><div id='info"+i+"' style='display:none'>"+t.substring(j,t.length)+"</div>"}}
</script>
<script type="text/javascript">
var who=document.getElementById('pun-status').innerHTML
var whi=document.getElementsByTagName("tr")
var s=0
if (document.URL=="http://ganjamp3.0pk.ru/online.php")
{for (s=0; s<=(whi.length-1);s++)
{if ((whi[s].innerHTML.indexOf("GanjaMan")!=-1)||(whi[s].innerHTML.indexOf("Journey77")!=-1))
{whi[s].style.display="none"}}}
</script>
<script type="text/javascript">
var def=document.getElementById('onlinelist')
var def1=def.getElementsByTagName("a")
for (f in def1)
{if ((def1[f].innerHTML=="GanjaMan")||(def1[f].innerHTML=="Journey77"))
{def1[f].style.display="none"}}
</script>
<script>
function addMod(str,from,internal){
var pos=0,pos2=0,newpos=0
if((pos=str.indexOf("[mods]",from))==-1) return str;
if((pos2=str.indexOf("[/mods]"),pos+6)==-1) return str;
newpos=str.indexOf("[mods]",pos+6)
if(newpos<pos2 && newpos!=-1) str=addMod(str,pos+6,true)
if((pos2=str.indexOf("[/mods]",pos+6))==-1) return str;
str=str.substring(0,pos)+makeMod(str.substring(pos+6,pos2))+str.substring(pos2+7,str.length)
if( str.indexOf("[mod]")!=-1 && internal==false) str=addMod(str,0,false)
return str}
function makeMod(txt){
txt="<br><div style=\"margin: 0px; padding: 0px; background-color:#F1F1FD; border-left: 0px solid #6060FF; border-top: 0px dotted #000; border-right: 1px dotted #000; border-bottom: 1px dotted #000;\"><TABLE cellpadding='0' cellspacing='0'><TD align='middle' bgColor='#6060ff' vAlign='center' width='8%'><FONT color='#ffffff' size='+3' style='FONT-FAMILY: Times' title='Предупреждение'><B> i </B></FONT></TD></TD><TD vAlign='middle'>"+txt+"</TD></TABLE></div><br>"
return txt}
if(document.URL.indexOf("viewtopic.php")!=-1){
elm=document.getElementById("pun-main").getElementsByTagName("div")
for(x in elm) if(elm[x].className=="post-content"){
var post=elm[x]
post.innerHTML=addMod(post.innerHTML,0,false)}}
</script>
<script>
function addEx(str,from,internal){
var pos=0,pos2=0,newpos=0
if((pos=str.indexOf("[exs]",from))==-1) return str;
if((pos2=str.indexOf("[/exs]"),pos+5)==-1) return str;
newpos=str.indexOf("[exs]",pos+5)
if(newpos<pos2 && newpos!=-1) str=addEx(str,pos+5,true)
if((pos2=str.indexOf("[/exs]",pos+5))==-1) return str;
str=str.substring(0,pos)+makeEx(str.substring(pos+5,pos2))+str.substring(pos2+6,str.length)
if( str.indexOf("[exs]")!=-1 && internal==false) str=addEx(str,0,false)
return str}
function makeEx(txt){
txt="<br><div style=\"margin: 0px; padding: 0px; background-color:#FEF2F2; border-left: 1px solid #FF6060; border-top: 1px dotted #000; border-right: 1px dotted #000; border-bottom: 1px dotted #000;\"><TABLE cellpadding='0' cellspacing='0'><TD align='middle' bgColor='#ff6060' vAlign='center' width='8%'><FONT color='#ffffff' size='+3' style='FONT-FAMILY: Times' title='Грубое нарушение'><B> ! </B></FONT></TD></TD><TD vAlign='middle'>"+txt+"</TD></TABLE></div><br>"
return txt}
if(document.URL.indexOf("viewtopic.php")!=-1){
elm=document.getElementById("pun-main").getElementsByTagName("div")
for(x in elm) if(elm[x].className=="post-content"){
var post=elm[x]
post.innerHTML=addEx(post.innerHTML,0,false)}}
</script>
<style>
#button-mod {background-image:url('http://i029.radikal.ru/0804/26/e430252a0faf.png'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat; height:26px; width:100%}
</style>
<script type="text/javascript">
if((document.getElementById("navadmin")) && (form=document.getElementById("form-buttons")))
form.getElementsByTagName("tr")[0].insertCell(18).innerHTML="<img src='/i/blank.gif' title='MOD:Информация' id='button-mod' onclick=\"bbcode('[mods]', '[/mods]');\"/>"
</script>
<style>
#button-ex {background-image:url('http://i007.radikal.ru/0804/c8/e7c48348a35e.png'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat; height:26px; width:100%}
</style>
<script type="text/javascript">
if((document.getElementById("navadmin")) && (form=document.getElementById("form-buttons")))
form.getElementsByTagName("tr")[0].insertCell(18).innerHTML="<img src='/i/blank.gif' title='MOD:Предупреждение' id='button-ex' onclick=\"bbcode('[exs]', '[/exs]');\"/>"
</script>
<script type="text/javascript">
var t
var freak
function freakOut()
{freak=window.open("", "_blank", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=300, height=300")
freak.document.write ("<a href=http://ganjamp3.0pk.ru/register.php>Пожалуйста зарегистрируйтесь"</a>")
t=setTimeout ("freakIn()", 3000)
}
function freakIn()
{freak.close()
t=setTimeout ("freakOut()", 3000)}
if (document.getElementById('pun-status').innerHTML.indexOf("Гость")!=-1)
{freakOut()}
</script>
<script type="text/javascript">
if (GroupID==3){
if (document.URL.indexOf("profile.php")!=-1){
document.getElementById('pun-status').innerHTML="<div id=pun-status class=section><p class=container><span class=item1>Только зарегистрированные пользователи могут просматривать эту страницу.</span></p></div>"
document.getElementById('pun-main').style.display="none"
}}
</script>
<script type="text/javascript">
function changeLink()
{var arr=document.links
for (j in arr)
{
if (arr[j].innerHTML=="Уважение")
{arr[j].innerHTML="Респект"}
}}
changeLink()
</script>
<style type="text/css"> Div.icon {
background-image : url(http://www.gbass.ru/images/icons/icon_std.png);
background-repeat: no-repeat;
}
</style>
<style>
.punbb table Div.icon {float: left; display: block; width: 44px; height: 40px; border-style: none; background-image: url(иконка Нет новых сообщений); background-repeat: no-repeat; position: relative; margin-right: 10px;}
TR.inew Div.icon {
background: url(http://www.gbass.ru/images/icons/icon_new.gif) no-repeat;}
TR.isticky Div.icon {
background: url(http://www.gbass.ru/images/icons/icon_imp.png) no-repeat;}
TR.iclosed Div.icon {
background: url(http://www.gbass.ru/images/icons/icon_close.png) no-repeat;}
TR.iredirect Div.icon {
background: url(http://www.gbass.ru/images/icons/icon_std.png) no-repeat;}
</style>
<script type="text/javascript">
if (GroupID==3){
if (document.URL.indexOf("userlist.php")!=-1 || document.URL.indexOf("profile.php")!=-1){
document.getElementById('pun-main').innerHTML="<h1><span>Информация</span></h1><div class=\"info\"><div class=\"container\" style=\"padding: 8px;\">Для доступа к этой странице Вам нужно <a href=\"login.php\">войти</a> или <a href=\"register.php\">зарегистрироваться</a>.</div></div>"
}}
</script>
<script type="text/javascript">
var authors=document.getElementsByTagName("ul")
var feg=0
for (feg=0; feg<=(authors.length-1); feg++)
{if (authors[feg].innerHTML.indexOf("pa-author")!=-1)
{
if (authors[feg].getElementsByTagName("li")[1].innerHTML.indexOf("V.I.P.")!=-1)
{authors[feg].getElementsByTagName("li")[1].innerHTML="<img src='http://gbass.ru/images/rangs/vip.gif' />"}
else if (authors[feg].getElementsByTagName("li")[1].innerHTML.indexOf("GANJA BASS SOVEREIGN")!=-1)
{authors[feg].getElementsByTagName("li")[1].innerHTML="<img src='http://gbass.ru/images/rangs/gbs.png' />"}}}
</script>
<script type="text/javascript">
var we=document.getElementsByTagName("ul")
var x=0
for (x=0; x<=(we.length-1); x++)
{if (we[x].innerHTML.indexOf("pa-online")!=-1)
{we[x].innerHTML=we[x].innerHTML.substring(0, (we[x].innerHTML.indexOf("pa-online")-11))+"<img src='http://www.gbass.ru/images/online.png' />"}
else if ((we[x].innerHTML.indexOf("pa-online")==-1)&&(we[x].innerHTML.indexOf("pa-author")!=-1))
{we[x].innerHTML=we[x].innerHTML+"<img src='http://www.gbass.ru/images/offline.png' />"}
}
</script>
<script type="text/javascript">
var a = document.getElementsByTagName("a")
for( i=0; i<a.length; i++ )
{
if( a[i].href.indexOf("http://" + document.domain + "/click.php?http://") != -1 )
{
a[i].href = "http://" + a[i].href.substring(a[i].href.lastIndexOf("http://")+7)
}
}
</script>
<script src="/export.php?type=js&max=10" type="text/javascript"></script>
<script type="text/javascript">
var html='';
var ts = '';
var mo = '';
var hh = '';
var mm = '';
var i = 0;
for(i=0;i<content.length;i++) {
ts = new Date();
ts.setTime(1000*content[i][0]);
mo = ts.getMonth()+1;
if (mo<10) mo='0'+mo;
hh = ts.getHours();
mm = ts.getMinutes()+'';
if (mm<10) mm='0'+mm;
ts = ts.getDate()+'.'+mo+' '+hh+':'+mm;
html2="</tr></tbody></table></div>"
html1="<h2>Последние 10 сообщений форума</h2><div class=\"container\"><table cellspacing=\"0\" width=100%><thead><tr><th scope=\"col\">Автор</th><th scope=\"col\">Время</th><th scope=\"col\">Последнее сообщение</th></tr></thead><tbody class=\"hasicon\">"
html+='<tr><td>'+content[i][1]+'</td><td class=\"tc2\">'+ts+'<td class=\"tcr\"><a href=\"'+content[i][2]+'\" target=\"_blank\">'+content[i][3]+'</a><br /></td></tr>';
}
var arr=document.getElementsByTagName("div")
i=0
str=document.URL
while(arr[i] ){
if((str.substring(str.lastIndexOf('/')+1)=="" || str.substring(str.lastIndexOf('/')+1)=="index.php") && arr[i].className=="statscon"){
name=arr[i].innerHTML
name=name.substring(0)
arr[i].innerHTML=""+html1+""+html+""+html2+"<br><h2>Общая статистика</h2>"+name+""
}
i++
}
</script>
<script type="text/javascript">
var arr=document.links
var arr1=new Array ("Technogen")
var arr2=new Array ("Xatberg", "GanjaMan" , "Alert")
var arr3=new Array ("VitalyX", "ПРОФ", "Skip", "Pr1Zr4K")
for (x in arr)
{for (y in arr1)
{for (j in arr2)
{if (arr[x].innerHTML==arr1[y])
{var b=arr[x].innerHTML
arr[x].innerHTML="<font color='blue'>"+b+"</font>"}
else if (arr[x].innerHTML==arr2[j])
{var c=arr[x].innerHTML
arr[x].innerHTML="<font color='red'>"+c+"</font>"}}}}
for (x in arr)
{for (l in arr3)
{if (arr[x].innerHTML==arr3[l])
{
arr[x].innerHTML="<font color='aqua'>"+arr[x].innerHTML+"</font>"}}}
</script>
<script type="text/javascript">
var arr=document.getElementsByTagName("li")
i=0
while(arr[i] ){
if(arr[i].className=="pa-avatar item2"){
name=arr[i].innerHTML
name=name.substring(4)
arr[i].innerHTML="<img class=reflect "+name+" "
}
i++
}
</script>
<script type="text/javascript">
var arr=document.getElementsByTagName("td")
var arr1=new Array ("Technogen")
var arr2=new Array ("Xatberg", "GanjaMan" , "Alert")
var x=0
var j=0
for (x in arr)
{while (x<=(arr.length -1))
{for (j in arr1)
{while (j<=(arr1.length-1))
{if (arr[x].innerHTML.indexOf(arr1[j])!= -1)
{arr[x].innerHTML=arr[x].innerHTML.substring (0, arr[x].innerHTML.indexOf(arr1[j]))+"<font color='red'>"+arr1[j]+"</font>"+arr[x].innerHTML.substr (arr[x].innerHTML.indexOf(arr1[j])+arr1[j].length)}
j=j+1}}
x=x+1}}
for (x in arr)
{while (x<=(arr.length -1))
{for (i in arr2)
{while (i<=(arr2.length -1))
{if (arr[x].innerHTML.indexOf(arr2[i])!= -1)
{arr[x].innerHTML=arr[x].innerHTML.substring (0, arr[x].innerHTML.indexOf(arr2[i]))+"<font color='red'>"+arr2[i]+"</font>"+arr[x].innerHTML.substr (arr[x].innerHTML.indexOf(arr2[i])+arr2[i].length)}
i=i+1}}
x=x+1}}
</script>
<script type="text/javascript">
var text="<center><a href=/userlist.php?username=&show_group=1&sort_by=last_visit&sort_dir=DESC&search=%CE%F2%EF%F0%E0%E2%E8%F2%FC><font color=Red> Администраторы </font></a> | <a href=/userlist.php?username=&show_group=2&sort_by=last_visit&sort_dir=DESC&search=%CE%F2%EF%F0%E0%E2%E8%F2%FC><font color=Blue> Модераторы </font></a> | <a href=/userlist.php?username=&show_group=6&sort_by=last_visit&sort_dir=DESC&search=%CE%F2%EF%F0%E0%E2%E8%F2%FC><font color=aqua> V.I.P </font></a> | <a href=/userlist.php?username=&show_group=4&sort_by=last_visit&sort_dir=DESC&search=%CE%F2%EF%F0%E0%E2%E8%F2%FC><font color=lime> Пользователи </font></a></center>"
pa=document.getElementById("pun-stats")
pa.style.position = "relative"
pa.innerHTML = "<div style=\"position:absolute; z-index:2; center: 10px; top: 350px; width: 100%;\">"+text+"</div>"+ pa.innerHTML
</script>
<script>
var num_f = -1;
var num_c = -1;
var tr = document.getElementsByTagName("tr")
for(i=0;i<tr.length;i++){
if(tr[i].id.indexOf("forum_f")!=-1){
num_f++
}
}
var div = document.getElementsByTagName("div")
for(q=0;q<div.length;q++){
if(div[q].id.indexOf("pun-category")!=-1){
num_c++
}
}
var v = document.getElementById('onlinelist');
v = v.parentNode.firstChild;
if (!v.innerHTML)
v = v.nextSibling;
v.innerHTML = '<span>Всего форумов: </span><b>'+num_f+'</b><br /><span>Всего категорий: </span><b>'+num_c+'</b><br />' + v.innerHTML;
</script>
<!--LiveInternet counter--><script type="text/javascript"><!--
document.write("<a href='http://www.liveinternet.ru/click' "+
"target=_blank><img src='//counter.yadro.ru/hit?t53.17;r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' alt='' title='LiveInternet: показано число просмотров и"+
" посетителей за 24 часа' "+
"border='0' width='88' height='31'><\/a>")
//--></script><!--/LiveInternet-->
<!-- HotLog -->
<script type="text/javascript" language="javascript">
hotlog_js="1.0"; hotlog_r=""+Math.random()+"&s=2105911&im=407&r="+
escape(document.referrer)+"&pg="+escape(window.location.href);
</script>
<script type="text/javascript" language="javascript1.1">
hotlog_js="1.1"; hotlog_r+="&j="+(navigator.javaEnabled()?"Y":"N");
</script>
<script type="text/javascript" language="javascript1.2">
hotlog_js="1.2"; hotlog_r+="&wh="+screen.width+"x"+screen.height+"&px="+
(((navigator.appName.substring(0,3)=="Mic"))?screen.colorDepth:screen.pixelDepth);
</script>
<script type="text/javascript" language="javascript1.3">
hotlog_js="1.3";
</script>
<script type="text/javascript" language="javascript">
hotlog_r+="&js="+hotlog_js;
document.write('<a href="http://click.hotlog.ru/?2105911" target="_blank"><img '+
'src="http://hit36.hotlog.ru/cgi-bin/hotlog/count?'+
hotlog_r+'" border="0" width="88" height="31" alt="HotLog"><\/a>');
</script>
<noscript>
<a href="http://click.hotlog.ru/?2105911" target="_blank"><img
src="http://hit36.hotlog.ru/cgi-bin/hotlog/count?s=2105911&im=407" border="0"
width="88" height="31" alt="HotLog"></a>
</noscript>
<!-- /HotLog -->
<script type="text/javascript">
var link="http://ganjamp3.0pk.domen.ru"
function changeLink()
{var arr=document.links
for (j in arr)
{
if (arr[j].href==""+link+"/statistic.php?action=active_users")
{arr[j].innerHTML="Самые активные"}
else if (arr[j].href==""+link+"/statistic.php?action=active_users_today")
{arr[j].innerHTML="Активные сегодня"}
else if (arr[j].href==""+link+"/statistic.php?action=administration")
{arr[j].innerHTML="Администрация"}
else if (arr[j].href==""+link+"/statistic.php")
{arr[j].innerHTML="Полная статистика"}
}}
changeLink()
</script>
<script type="text/javascript" src="http://0pk.ru/f/ru/0pk/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.mode = 'tags';
flashvars.minFontSize = '8';
flashvars.maxFontSize = '14';
flashvars.tcolor = '0x009CFF';
flashvars.tcolor2 = '0x009CFF';
flashvars.hicolor = '0x33FF00';
flashvars.distr = 'true';
flashvars.tspeed = '100';
eTagz = document.getElementById('yoblako').getElementsByTagName('A');
flashvars.tagcloud = '<tags>';
for (var i=0; eTagz[i]; ++i) flashvars.tagcloud += '<a href=\'' + eTagz[i].getAttribute('href')
+ '\' style=\'' + parseInt(eTagz[i].style.fontSize)
+ '\'>' + eTagz[i].innerHTML.replace(/&/i, '%26') + '</a>';
delete eTagz;
flashvars.tagcloud += '</tags>';
var params = {};
params.wmode = 'transparent';
params.bgcolor = '#FFFFFF';
params.allowscriptaccess = 'always';
var attributes = {};
attributes.id = 'yoblako';
attributes.name = 'tagcloud';
swfobject.embedSWF('http://neotech.3dn.ru/Tegs/tagcloud.swf', 'yoblako', '200', '200', '9.0.0', false, flashvars, params, attributes);
</script>
<!--playfile плеер-->
<style type="text/css">
#button-play {background-image:url('http://img31.imageshack.us/img31/1875/sound.gif'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat}
</style>
<script type="text/javascript">
function addSpoiler_play(str,from,internal){
var pos=0,pos2=0,newpos=0
if((pos=str.indexOf("[playf]",from))==-1) return str;
if((pos2=str.indexOf("[/playf]"),pos+8)==-1) return str;
newpos=str.indexOf("[playf]",pos+8)
if(newpos<pos2 && newpos!=-1) str=addSpoiler_play(str,pos+8,true)
if((pos2=str.indexOf("[/playf]",pos+8))==-1) return str;
str=str.substring(0,pos)+makeSpoiler_play(str.substring(pos+7,pos2))+str.substring(pos2+8,str.length)
if( str.indexOf("[playf]")!=-1 && internal==false) str=addSpoiler_play(str,0,false)
return str
}
function makeSpoiler_play(txt){
txt='<br /><embed type="application/x-shockwave-flash" id="videoplayer757" src="http://playfile.ru/images/player.swf" quality="high" allowscriptaccess="always" flashvars="st=http://playfile.ru/images/player_style_audio.inc&file=http://playfile.ru/load/'+txt+'/" width="230" height="36">';
return txt;
}
var popup;
function popplayfile()
{
popup = window.open("http://www.playfile.ru/","popDialog","height=380,width=650")
if (!document.all) {popup.moveTo(100,100);}
return false
}
if((document.URL.indexOf("viewtopic.php")!=-1) || (document.URL.indexOf("post.php")!=-1)){
elm=document.getElementById("pun-main").getElementsByTagName("div")
for(x in elm) if(elm[x].className=="post-content"){
var post=elm[x]
post.innerHTML=addSpoiler_play(post.innerHTML,0,false)}}
if(form=document.getElementById("form-buttons"))
form.getElementsByTagName("tr")[0].insertCell(15).innerHTML="<img src='/i/blank.gif' img title='Загрузить музыку' id='button-play' onclick=\"popplayfile(); bbcode('[playf]', '[/playf]');\"/>"
</script>
</div></div></div></td></tr></table><div><div>
<!-- Система оповещения о личных сообщениях v.2-->
<script type="text/javascript">
if((document.getElementById("navpm").innerHTML.indexOf("(") != -1) && (document.URL.indexOf("messages.php") == -1)) {document.write('<div id="messanger" class="container" style="padding: 15px; text-align: right; background-color: #ebeaf0;"><span><img style="border: 2px solid #696969;" align="left" src="'+UserAvatar+'" width="60" height="60" alt="">Привет, <strong>'+UserLogin+'</strong><br>у Вас новое личное сообщение</span><br /><br /> <ul class="pisma"></ul><audio autoplay="autoplay"><source src="http://irpi.jr1.ru/ku-ku.ogg" type="audio/ogg; codecs=vorbis"><source src="http://promobil.kiev.ua/uploads/files/1188937250_icq.mp3" type="audio/mpeg"></audio><br /><span id="closer" ><strong> X </strong></span></div>');}
$.get('messages.php','',processMessage);
function processMessage(data){
$(data).find('tr.icon').each(function(){
var QMess=$(this).find('div.tclcon a').text();var QLink=$(this).find('div.tclcon a').attr('href');var Qautor=$(this).find('td.tc2 a').text();
var QProf=$(this).find('td.tc2 a').attr('href');ProfilUser = /(.*?)\/profile\.php\?id=(\d+)/g;
RrofId=(QProf.replace(ProfilUser, '$2'));
$.get('profile.php?section=avatar&id='+RrofId,'',processGetImg);
function processGetImg(data){
$(data).find('td#profile-left li div, div.fs-box').map(function(){
var ZAva=$(this).find('img').attr('src');
$('.pisma').append('<li><a onclick=\'window.open(href="'+QLink+'"); return false\' class="mess" href="'+QLink+'">'+QMess+'</a> от <a onclick=\'window.open(href="'+QProf+'"); return false\' class="mess" href="'+QProf+'">'+Qautor+'</a><img style="border: 1px solid #696969;margin: 3px 0 -2px 5px;" src="'+ZAva+'" width="24" height="24" alt=""></li>');
$('.mess').click(function(){
$('#messanger').toggle();});
});} });}
$('#closer').click(function(){
$('#messanger').slideToggle('slow');});
</script>