<div class="reitingwebo4karu">
<?if($RATE_FORM$)?><a href="javascript://" onclick="rateForm(-1,$ID$,1,<?if($CID$)?>$CID$<?else?>nullRate<?endif?>); setTimeout(reitingwebo4karu$ID$, 2000); return false;"><div class="minuswebo4karu"></div></a><?endif?>
<?if($RATE_FORM$)?><a href="javascript://" onclick="rateForm(1,$ID$,1,<?if($CID$)?>$CID$<?else?>nullRate<?endif?>); setTimeout(reitingwebo4karu$ID$, 2000); return false;"><div class="pluswebo4karu"></div></a><?endif?>
<div id="reitingwebo4karu$ID$" class="<?if(($RATING$*$RATED$-2*$RATED$)=0)?>nulltxtwebo4karu<?else?><?if(($RATING$*$RATED$-2*$RATED$)<0)?>minustxtwebo4karu<?else?>plustxtw ebo4karu<?endif?><?endif?>"><script type="text/javascript">document.write(Math.round(<?($RATING$*$RATED$)?>)-<?2*$RATED$?>)</script></div>
</div>
<!-- Вёрстка кнопки рейтинга материала by dedicated.3dn..ru -->
<style>
.reitingwebo4karu {background: url('http://dedicated.3dn.ru/_fr/1/2257357.png') 0px 0px no-repeat; width:323px; height:67px;}
.minuswebo4karu {background: url('http://dedicated.3dn.ru/_fr/1/2257357.png') 0px -67px no-repeat; width:81px; height:95px; float:left; position:relative; bottom:8px; left:5px;}
.pluswebo4karu {background: url('http://dedicated.3dn.ru/_fr/1/2257357.png') -88px -67px no-repeat; width:81px; height:95px; float:left; position:relative; bottom:8px; left:5px;}
.minuswebo4karu:hover {background: url('http://dedicated.3dn.ru/_fr/1/2257357.png') 0px -162px no-repeat; width:81px; height:95px; float:left; position:relative; bottom:8px; left:5px;}
.pluswebo4karu:hover {background: url('http://dedicated.3dn.ru/_fr/1/2257357.png') -88px -162px no-repeat; width:81px; height:95px; float:left; position:relative; bottom:8px; left:5px;}
.plustxtwebo4karu {color:green; font:40px "normal Arial", "Tahoma", "Verdana"; float:left; font-weight: bold; position:relative; top:5px; left:35px;}
.minustxtwebo4karu {color:red; font:40px "normal Arial", "Tahoma", "Verdana"; float:left; font-weight: bold; position:relative; top:5px; left:30px;}
.nulltxtwebo4karu {color:#cacaca; font:40px "normal Arial", "Tahoma", "Verdana"; float:left; font-weight: bold; position:relative; top:5px; left:35px;}
</style>
<script type="text/javascript">
//Автор:
B@rmaley.e ><e
//http://dedicated.3dn.ru/
rateForm=function(c,d,f,g,q){if(typeof c=='undefined'||typeof d=='undefined'||(c!=1&&c!=-1))return;c+=2;var h,m=['publ','load','dir','board','blog','news','photo'],i;if(!f&&f!=0){h=location.href.match(new RegExp(location.host+'/(\w+)/?','i'));if(!h)return;f=m.indexOf(h[1])}switch(f){case 0:case 1:case 2:case 3:h='/'+m[f]+'/0-1-'+c+'-'+d+'-3';break;case 4:h='/blog/0-0-'+c+'-'+d+'-14-1';break;case 5:h='/news/0-0-'+c+'-'+d+'-15-1';break;case 6:h='/photo/'+g+'-1-'+d+'-13-'+c;break}if(!h)return;i=$('#rate_'+d);if(typeof q!='function'){}else q(i);$.get(h,function(a){a=$('cmd:first',a).text();var b=a.match(/рейтинг:\s*([0-9.]+)\/(\d+)/i);if(!b){try{(new Function('',a))()}catch(e){};return}b=Math.round(b[1]*b[2])-2*b[2];i.html(b).addClass(b>0?'positiveRate':(b==0?'nullRate':'negativeRate'));_uWnd.alert('Оценка засчитана!')};)}
</script>