//этот файл нужно сохранять в UTF-8 с BOM(byte order mark), чтобы избежать проблем с кодировкой в Internet Explorer window.mrc__sharePreload = function() { var p = new Image(); p.src = 'http://img1.imgsmail.ru/r/new_share_buttons_sprite.gif'; }; mrc__sharePreload(); if(!window.mrc__shareStart) { window.mrc__shareStart = (function(){ var SHARE_URL='http://connect.mail.ru/share_count?func=mrc__shareInit&callback=1&url_list=', BUTTON_CLASS_MARKER='mrc__share', BUTTON_DONE_CLASS_MARKER='mrc__share_done', MICRO_REVERSE='mrc__share_reverse', CONNECT_URL='http://connect.mail.ru/share', IMGURL='http://img1.imgsmail.ru/r/', IEFIX='',//(/*@cc_on!@*/false && !(document.compatMode=='CSS1Compat' && +navigator.userAgent.match(/msie\s(\d+)/i )[1]>=8))?' top:0px;':'', CLASS_DEF='button_count', DEF_BUTTON_BG_POS1 = 50, DEF_BUTTON_BG_POS2 = '100% -19px', CLASS_VIEW={ micro: [ 'background: none;width:auto;vertical-align:middle; outline:0; text-decoration:none;', 'Поделиться ссылкой с друзьями', '### ' ], button: [ 'overflow: hidden; white-space:nowrap;text-align:left;line-height:17px;position:relative;width:auto;outline:0; text-decoration:none; height:18px; font-size: 11px; line-height: 17px;overflow: hidden', '##CAPTION##' ], button_count: [ 'overflow: hidden; white-space:nowrap;text-align:left;line-height:17px;position:relative;width:auto;outline:0; text-decoration:none; height:18px; font-size: 11px; line-height: 17px;overflow: hidden; font-weight: normal', '##CAPTION## ' ], big: [ 'display: inline-block; white-space:nowrap;text-align:left;line-height:17px;position:relative;width:auto;outline:0; text-decoration:none; height:18px; font-size: 11px; line-height: 17px;position: relative', ' 
Уже поделились
##CAPTION##' ] }, COUNTFOR={micro_count:1, button_count:1, big:1}, CL=escape(document.location.toString()), d=document, a=d.getElementsByTagName('a'), p=[], u=[], count_req={}, type, innerHTML, newHTML, ca, share_url; for(var i=0; i 0){ window.mrc__shareInit = function(list){ var s, c; for(var i=p.length; i--; ){ s = list[p[i].share_url]; c=(s && s.shares)||'0'; if(c > 0){ p[i].getElementsByTagName('span')[0].innerHTML = c; p[i].getElementsByTagName('span')[0].style.display = 'inline-block'; if(p[i].type == "big") { p[i].getElementsByTagName('b')[0].style.display = 'block'; p[i].style.paddingTop = '50px'; if(p[i].getElementsByTagName('b')[0].clientWidth < p[i].clientWidth) p[i].getElementsByTagName('b')[0].style.width = p[i].clientWidth + 'px'; if(p[i].getElementsByTagName('b')[0].clientWidth > p[i].clientWidth) p[i].style.marginRight = p[i].getElementsByTagName('b')[0].clientWidth - p[i].clientWidth + 'px'; } } p[i].onclick = (function(c, p){ return function(){ p.getElementsByTagName('span')[0].innerHTML = c+1; p.getElementsByTagName('span')[0].style.display = 'inline-block'; if(p.type == "big") { p.getElementsByTagName('b')[0].style.display = 'block'; p.style.paddingTop = '50px'; if(p.getElementsByTagName('b')[0].clientWidth < p.clientWidth) p.getElementsByTagName('b')[0].style.width = p.clientWidth + 'px'; if(p.getElementsByTagName('b')[0].clientWidth > p.clientWidth) p.style.marginRight = p.getElementsByTagName('b')[0].clientWidth - p.clientWidth + 'px'; } window.open(p.href, '_blank', 'width=540,height=360'); return false; } })(+c, p[i]) } } var current_location = window.document.location.href; for (var i = 0, l = u.length; i < l; i++) { if (!u[i].length) { u[i] = current_location; } } with(document.getElementsByTagName('head')[0].appendChild(document.createElement('script'))){ type = 'text/javascript'; src = SHARE_URL+ encodeURIComponent(u.join(',')); } } }); if(/*@cc_on!@*/false == false) { mrc__shareStart(); var scanner = setInterval('mrc__shareStart()', 500); } function onInit(){ if(scanner) clearInterval(scanner); if ( window.addEventListener ) window.removeEventListener( "DOMContentLoaded", onInit, false ); mrc__shareStart(); } (function(){ if ( document.addEventListener ) { document.addEventListener( "DOMContentLoaded", onInit, false ); } else if ( document.attachEvent && window == top) (function(){ try { document.documentElement.doScroll("left"); } catch(e) { setTimeout(arguments.callee, 0); return; } onInit(); })(); })() }