/* Мигалка */ var showdivtimer = new Array(); function showdiv(id,cmd,repet,opacity,n) { repet=repet||11;//сколько раз мигать +1 opacity=opacity||100; n=n||-10; if (opacity==100){n=-10;repet--} if (opacity==0){n=10;} var div = parent.left.document.getElementById(id); if(cmd==1 && privatok==1) {div = document.getElementById(id)}; if (window.ActiveXObject) {var h=div.offsetHeight; div.style.height=h; div.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity="+opacity+")";} else {div.style.opacity = opacity/100}; opacity+=n; showdivtimer[id] = setTimeout("showdiv('"+id+"',"+cmd+","+repet+","+opacity+","+n+")",100); if (repet==0)clearTimeout(showdivtimer[id]); }
var timeremove = ""; if (text.search(/см\.\s(\d\d.\d\d.\d\d)/g)>=0) {timeremove = RegExp.$1} ; if (timeremove) {var obj=parent.left.document; if(cmd==1 && privatok==1) {obj=document.getElementById("privatdiv")};var div=obj.getElementsByTagName('div'); for (var i=0; i<div.length; i++) {if (div[i].innerHTML.search(timeremove)>=0) {timeremoveid=timeremove.replace(":", ""); text=text.replace(timeremove,"<span onclick=\"parent.showdiv('"+timeremoveid+"','"+cmd+"');\">"+timeremove+"</span>");div[i].id=timeremoveid;if (loaded==1&&mynick==tonick) showdiv(timeremoveid,cmd)}}};