var bm={domain:location.href+"/",location:false,timeout:false,init:function(e,a,g){this.domain=this.domain.substr(this.domain.indexOf("://")+3);this.domain=this.domain.substr(0,this.domain.indexOf("/"));var c=new Array("Закладки Google","Яндекс.Закладки","БобрДобр","Memori","МоёМесто","LinkStore","Rumarkz","Сто Закладок","Technorati","del.icio.us","Digg","StumbleUpon","Reddit","Yahoo MyWeb","SlashDot","Spurl","Twitter","News2","Мистер Вонг","СМИ 2","Ваау!","AddScoop");if(!document.getElementById("hcbm")){var f=document.createElement("div");f.id="hcbm";f.style.position="absolute";f.style.visibility="hidden";f.style.width="265px";f.style.height="216px";f.style.background="url("+static_url+"/img/bm.gif) transparent no-repeat";f.style.border="0";f.style.margin="0";f.style.padding="15px 5px";f.style.overflow="hidden";f.style.zIndex="1000";f.style.font="normal 12px arial";f.style.lineHeight="20px";f.style.color="#666";html="";for(var b=0;b<22;b++){html+='<a href="'+this.url(b+1)+'" style="float:left;padding:0 0 0 24px;width:108px;display:block;height:16px;overflow:hidden;margin:1px 0;background:url('+static_url+"/img/ico-bkms.gif) transparent 0 "+(-b*16)+'px no-repeat;font:normal 12px arial;color:#6A6A6A;text-decoration:none;text-align:left" onmouseover="this.style.textDecoration=\'underline\'" onmouseout="this.style.textDecoration=\'none\'" onclick="return bm.go('+(b+1)+');">'+c[b]+"</a>"}f.innerHTML=html;f.onmouseover=function(){if(bm.timeout){clearTimeout(bm.timeout)}};f.onmouseout=function(){bm.timeout=setTimeout("bm.hide()",500)};document.body.insertBefore(f,document.body.firstChild)}document.write('<li><a class="b" title="Добавить в Закладки" href="#" onclick="return false;" onmouseover="bm.show(this);" onmouseout="bm.timeout=setTimeout(\'bm.hide()\',500);"><span>b</span></a></li>')},show:function(a){if(this.timeout){clearTimeout(this.timeout)}var d=0,c=0;var b=document.getElementById("hcbm").style;while(a){d+=a.offsetLeft;c+=a.offsetTop;a=a.offsetParent}d+=-128;c+=12;b.left=d+"px";b.top=c+"px";b.visibility="visible"},hide:function(){if(this.timeout){clearTimeout(this.timeout)}document.getElementById("hcbm").style.visibility="hidden"},redirect:function(){if(this.location){location.href=this.location}this.location=false},url:function(b){var c=encodeURIComponent(document.title);var a=encodeURIComponent(location.href);switch(b){case 1:return"http://www.google.com/bookmarks/mark?op=add&bkmk="+a+"&title="+c;case 2:return"http://zakladki.yandex.ru/userarea/links/addfromfav.asp?bAddLink_x=1&lurl="+a+"&lname="+c;case 3:return"http://bobrdobr.ru/addext.html?url="+a+"&title="+c;case 4:return"http://memori.ru/link/?sm=1&u_data[url]="+a+"&u_data[name]="+c;case 5:return"http://moemesto.ru/post.php?url="+a+"&title="+c;case 6:return"http://www.linkstore.ru/servlet/LinkStore?a=add&url="+a+"&title="+c;case 7:return"http://rumarkz.ru/bookmarks/?action=add&popup=1&title="+c+"&address"+a;case 8:return"http://www.100zakladok.ru/save/?bmurl="+a+"&bmtitle="+c;case 9:return"http://www.technorati.com/faves?add="+a+"&title="+c;case 10:return"http://del.icio.us/post?v=4&noui&jump=close&url="+a+"&title="+c;case 11:return"http://digg.com/submit?phase=2&url="+a+"&title="+c;case 12:return"http://www.stumbleupon.com/submit?url="+a+"&title="+c;case 13:return"http://reddit.com/submit?url="+a+"&title="+c;case 14:return"http://myweb2.search.yahoo.com/myresults/bookmarklet?u="+a+"&t="+c;case 15:return"http://slashdot.org/bookmark.pl?url="+a+"&title="+c;case 16:return"http://www.spurl.net/spurl.php?url="+a+"&title="+c;case 17:return"http://twitter.com/home?status="+c+" "+a;case 18:return"http://news2.ru/add_story.php?url="+a;case 19:return"http://www.mister-wong.ru/index.php?action=addurl&bm_url="+a+"&bm_description="+c;case 20:return"http://smi2.ru/add/?url="+a+"&precaption="+c;case 21:return"http://www.vaau.ru/submit/?action=step2&url="+a;case 22:return"http://myscoop.ru/add/?URL="+a+"&title="+c}},go:function(){this.location=this.url(i);this.redirect()}};bm.init();