function fGetMailButton(vlz1)
{
	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='',
			CLASS_DEF='button_count',
			DEF_BUTTON_BG_POS1 = 50,
			DEF_BUTTON_BG_POS2 = '100% -19px',
			CLASS_VIEW={
				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',
					'<small style="overflow: hidden; vertical-align: bottom;white-space:nowrap;text-align:left;line-height:17px;position:relative;width:auto;padding:0;margin:0;outline:0; text-decoration:none; display:inline-block; height:18px;background:url('+IMGURL+'new_share_buttons_sprite.gif) no-repeat 0 0; padding-left: 22px;line-height: 9px;"><i title="" style="vertical-align:top;float: none; white-space:nowrap;text-align:left;font-size:11px;line-height:9px;position:relative;width:auto;color:white;padding:0;margin:0;font-weight: bold; display:inline-block;background:url('+IMGURL+'new_share_buttons_sprite.gif) no-repeat right -19px; height: 14px; padding: 4px 5px 0 0; font-family: \'Lucida Grande\',Tahoma,Verdana,Arial,sans-serif; font-szie: 11px; font-style: normal;cursor: pointer; line-height: 9px; *line-height: 13px; *padding-top: 2px; *height: 18px; ">##CAPTION##</i><span title="Уже поделились" style="float: none; width:auto;color:black;padding:0;margin:0;display:none;background:url('+IMGURL+'new_share_buttons_sprite.gif) no-repeat left -123px; height: 13px; font-family: Tahoma; color: #000; padding: 5px 5px 0 10px; border-right: 1px solid #ffc70d; margin-left: 1px; cursor: pointer; font-weight: normal; font-style: normal; line-height: 8px; *line-height: 100%; *padding-top: 3px; *height: 18px">&nbsp;</span></small>'
				]
			},
			COUNTFOR={button_count:1},
			CL=vlz1,
			d=document, a=d.getElementById('mail_button'),
			p=[], u=[], count_req={}, type, innerHTML, newHTML, ca, share_url;
			
			if(a && a.className.indexOf(BUTTON_CLASS_MARKER) != -1 && a.className.indexOf(BUTTON_DONE_CLASS_MARKER) == -1){
			ca = a;
			ca.className = ca.className + ' ' + BUTTON_DONE_CLASS_MARKER;
					type = ca.getAttribute('type')||CLASS_DEF;
			if(!CLASS_VIEW[type])
			{
				type = "button_count";
			}
			ca.style.cssText = CLASS_VIEW[type][0];
			share_url = (ca.href.match(/\?share_url=(.*)/i )||[0,''])[1];
			
			if(share_url.length==0){
				ca.href = CONNECT_URL+ '?share_url='+ CL;
				share_url = CL;
			}
			
			newHTML = CLASS_VIEW[type][1];

			if(ca.innerHTML.length)
				newHTML = newHTML.replace('##CAPTION##', ca.innerHTML);
			else
				newHTML = newHTML.replace('##CAPTION##', 'В Мой Мир');

			ca.innerHTML = newHTML;
			ca.onmouseover = function(){
				var bigFix = 0;
				if(this.tagName == 'A'){
					this.getElementsByTagName('small')[0].style.backgroundPosition = '0 -38px';
					this.getElementsByTagName('i')[0].style.backgroundPosition = '100% -57px';
				}
			}
			ca.onmouseout = function(){
				var bigFix = 0;
				if(this.tagName == 'A'){
					this.getElementsByTagName('small')[0].style.backgroundPosition = '0 0';
					this.getElementsByTagName('i')[0].style.backgroundPosition = DEF_BUTTON_BG_POS2;
				}
			}
				ca.onclick = (function(ca){
					return function(){
						window.open(ca.href, '_blank', 'width=540,height=360');
						return false;
					}
				})(ca)

				if(COUNTFOR[type]){
					if(!count_req[share_url])
			u[u.length] = share_url;
					p[p.length] = ca;
					ca.share_url = unescape(share_url);
		  count_req[share_url] = 1;
				}
			}
			if(u.length > 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';
			  }
						p[i].onclick = (function(c, p){
							return function(){
								p.getElementsByTagName('span')[0].innerHTML = c+1;
				  p.getElementsByTagName('span')[0].style.display = 'inline-block';
								window.open(p.href, '_blank', 'width=540,height=360');
								return false;
							}
						})(+c, p[i])
					}
				}
				var current_location = vlz1;
				
				with(document.getElementsByTagName('head')[0].appendChild(document.createElement('script'))){
					type = 'text/javascript';
					src = SHARE_URL+encodeURIComponent(vlz1);
				}
			}
		});
			
		if(false == false)
		{
			mrc__shareStart();	
			var scanner  = setInterval('mrc__shareStart()', 60000);
	  }
		
		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();
			})();
		})()
	}
}