function NewOdnaknopka2() {
this.domain=location.href+'/';
this.domain=this.domain.substr(this.domain.indexOf('://')+3);
this.domain=this.domain.substr(0,this.domain.indexOf('/'));
this.location=false;
this.selection=function() {
var sel;
if (window.getSelection) sel=window.getSelection();
else if (document.selection) sel=document.selection.createRange();
else sel='';
if (sel.text) sel=sel.text;
return encodeURIComponent(sel);
}
this.redirect=function() {
if (this.location) location.href=this.location;
this.location=false;
}
this.go=function(i) {
this.location=this.url(i);
setTimeout('odnaknopka2.redirect()',2000);
var scr=document.createElement('script'); 
scr.type='text/javascript'; 
scr.src=knopkaURL+'/save2/?domain='+this.domain+'&system='+i; 
document.body.appendChild(scr);
return false;
}
this.url=function(system) {
var title=encodeURIComponent(document.title);
var url=encodeURIComponent(location.href);
switch (system) {
case 1: return unescape('%68%74%74%70%3a%2f%2f%62%6f%62%72%64%6f%62%72%2e%72%75%2f%61%64%64%65%78%74%2e%68%74%6d%6c%3f%75%72%6c%3d')+url+'&title='+title;
case 2: return unescape('%68%74%74%70%3a%2f%2f%6d%65%6d%6f%72%69%2e%72%75%2f%6c%69%6e%6b%2f%3f%73%6d%3d%31%26%75%5f%64%61%74%61%5b%75%72%6c%5d%3d')+url+'&u_data[name]='+title;
case 3: return unescape('%68%74%74%70%3a%2f%2f%77%77%77%2e%6d%69%73%74%65%72%2d%77%6f%6e%67%2e%72%75%2f%69%6e%64%65%78%2e%70%68%70%3f%61%63%74%69%6f%6e%3d%61%64%64%75%72%6c%26%62%6d%5f%75%72%6c%3d')+url+'&bm_description='+title;
case 4: return unescape('%68%74%74%70%3a%2f%2f%64%65%6c%2e%69%63%69%6f%2e%75%73%2f%70%6f%73%74%3f%76%3d%34%26%6e%6f%75%69%26%6a%75%6d%70%3d%63%6c%6f%73%65%26%75%72%6c%3d')+url+'&title='+title;
case 5: return unescape('%68%74%74%70%3a%2f%2f%7a%61%6b%6c%61%64%6b%69%2e%79%61%6e%64%65%78%2e%72%75%2f%75%73%65%72%61%72%65%61%2f%6c%69%6e%6b%73%2f%61%64%64%66%72%6f%6d%66%61%76%2e%61%73%70%3f%62%41%64%64%4c%69%6e%6b%5f%78%3d%31%26%6c%75%72%6c%3d')+url+'&lname='+title;
case 6: return unescape('%68%74%74%70%3a%2f%2f%77%77%77%2e%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%62%6f%6f%6b%6d%61%72%6b%73%2f%6d%61%72%6b%3f%6f%70%3d%61%64%64%26%62%6b%6d%6b%3d')+url+'&title='+title;
}
}
this.hide=function() {
if (this.timeout) clearTimeout(this.timeout);
document.getElementById('odnaknopka').style.visibility='hidden';
}
this.show=function(element) {
if (this.timeout) clearTimeout(this.timeout);
var left=0,top=0;
var style=document.getElementById('odnaknopka').style;
while (element) {
left+=element.offsetLeft;
top+=element.offsetTop;
element=element.offsetParent;
}
style.left=left+'px';
style.top=(top+16)+'px';
style.visibility='visible';
}
this.init=function() {
var titles=new Array('&#1041;&#1086;&#1073;&#1088;&#1044;&#1086;&#1073;&#1088;','Memori','&#1052;&#1080;&#1089;&#1090;&#1077;&#1088; &#1042;&#1086;&#1085;&#1075;','del.icio.us','&#1071;&#1085;&#1076;&#1077;&#1082;&#1089;.&#1047;&#1072;&#1082;&#1083;&#1072;&#1076;&#1082;&#1080;','&#1047;&#1072;&#1082;&#1083;&#1072;&#1076;&#1082;&#1080; Google');
if (!document.getElementById('odnaknopka')) {
var div=document.createElement('div');
div.id='odnaknopka';
div.style.position='absolute';
div.style.visibility='hidden';
div.style.width='260px';
div.style.border='1px solid #aaa';
div.style.background='#fff';
div.style.margin='0';
div.style.padding='0';
div.style.overflow='hidden';
div.style.zIndex='1000';
div.style.font='normal 12px arial';
div.style.lineHeight='20px';
div.style.color='#666';
html='';
html+='<ul style="overflow:hidden;width:130px;float:left;list-style:none;margin:0;padding:0;text-align:left">';
html+='<li style="overflow:hidden;height:20px;margin:0;padding:0;background:#ddd">&nbsp;&nbsp;&#1044;&#1086;&#1073;&#1072;&#1074;&#1080;&#1090;&#1100; &#1074;:</li>';
for (var i=0;i<3;i++) {
html+='<li style="overflow:hidden;height:20px;margin:0 0 '+(/MSIE/.test(navigator.userAgent)&&!window.opera?'-3px':'0')+' 2px;padding:0 0 0 16px;background:url('+knopkaURL+'/images/icons.gif) -'+(i*32)+'px 2px no-repeat"><a style="background:#fff;line-height:20px;float:left;width:100%;text-decoration:none;color:#666" href="'+this.url(i+i+1)+'" onclick="return odnaknopka2.go('+(i+i+1)+');" onmouseover="this.style.background=\'#f0f0f0\';" onmouseout="this.style.background=\'#fff\';" title="'+titles[i+i]+'">&nbsp;'+titles[i+i]+'</a></li>';
}
html+='</ul>';
html+='<ul style="overflow:hidden;width:130px;float:left;list-style:none;margin:0;padding:0;text-align:left">';
html+='<li style="overflow:hidden;height:20px;margin:0;padding:0;background:#ddd;text-align:right">&nbsp;</li>';
for (var i=0;i<3;i++) {
html+='<li style="overflow:hidden;height:20px;margin:0 0 '+(/MSIE/.test(navigator.userAgent)&&!window.opera?'-3px':'0')+' 2px;padding:0 0 0 16px;background:url('+knopkaURL+'/images/icons.gif) -'+(i*32+16)+'px 2px no-repeat"><a style="background:#fff;line-height:20px;float:left;width:100%;text-decoration:none;color:#666" href="'+this.url(i+i+2)+'" onclick="return odnaknopka2.go('+(i+i+2)+');" onmouseover="this.style.background=\'#f0f0f0\';" onmouseout="this.style.background=\'#fff\';" title="'+titles[i+i+1]+'">&nbsp;'+titles[i+i+1]+'</a></li>';
}
html+='</ul>';
div.innerHTML=html;
div.onmouseover=function() {if (odnaknopka2.timeout) clearTimeout(odnaknopka2.timeout)}
div.onmouseout=function() {odnaknopka2.timeout=setTimeout('odnaknopka2.hide()',500)};
document.body.insertBefore(div,document.body.firstChild);
}
document.write('<a href="'+knopkaURL+'/add/" onclick="window.open(\''+knopkaURL+'/add/?url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title),\'odnaknopka\',\'scrollbars=yes,menubar=no,width=600,height=500,left='+(document.body.clientWidth/2-300)+',top='+(document.body.clientHeight/2-250)+',resizable=yes,toolbar=no,location=no,status=no\');return false;"><img src="'+knopkaURL+'/images/button.gif" width="136" height="16" alt="&#1054;&#1076;&#1085;&#1072;&#1050;&#1085;&#1086;&#1087;&#1082;&#1072;" title="&#1054;&#1076;&#1085;&#1072;&#1050;&#1085;&#1086;&#1087;&#1082;&#1072;" style="border:0;margin:0;padding:0" onmouseover="odnaknopka2.show(this);" onmouseout="odnaknopka2.timeout=setTimeout(\'odnaknopka2.hide()\',500);"></a>');
}
}
var knopkaURL = unescape('%68%74%74%70%3a%2f%2f%6f%64%6e%61%6b%6e%6f%70%6b%61%2e%72%75');
odnaknopka2=new NewOdnaknopka2();
odnaknopka2.init();