function sets(val){
  elt = document.getElementById('mys'); elt.value=val;
  elt = document.getElementById('winname'); elt.value=window.name;
  elt = document.getElementById('myform'); elt.submit();
}
function NewAddThis() {
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('AddThis2.redirect()',2000);
//var scr=document.createElement('script');
//scr.type='text/javascript';
//scr.src='http://AddThis.ru/save2/?domain='+this.domain+'&system='+i;
//document.body.appendChild(scr);
}
this.url=function(system) {
var title=encodeURIComponent(document.title);
var url=encodeURIComponent(location.href);
switch (system) {
case 1: return 'http://bobrdobr.ru/addext.html?url='+url+'&title='+title;
case 2: return 'http://memori.ru/link/?sm=1&u_data[url]='+url+'&u_data[name]='+title;
case 3: return 'http://www.mister-wong.ru/index.php?action=addurl&bm_url='+url+'&bm_description='+title;
case 4: return 'http://del.icio.us/post?v=4&noui&jump=close&url='+url+'&title='+title;
case 5: return 'http://zakladki.yandex.ru/userarea/links/addfromfav.asp?bAddLink_x=1&lurl='+url+'&lname='+title;
case 6: return 'http://www.google.com/bookmarks/mark?op=add&bkmk='+url+'&title='+title;
case 7: return 'http://text20.ru/add/?source='+url+'&title='+title+'&text='+this.selection();
case 8: return 'http://pisali.ru/load_article/';
case 9: return 'http://news2.ru/add_story.php?url='+url;
case 10: return 'http://smi2.ru/add/';
case 11: return 'http://myscoop.ru/add/?URL='+url+'&title='+title;
case 12: return 'http://moemesto.ru/post.php?url='+url+'&title='+title;
case 13: return 'http://www.ruspace.ru/index.php?link=bookmark&action=bookmarkNew&bm=1&url='+url+'&title='+title;
case 14: return 'http://www.100zakladok.ru/save/?bmurl='+url+'&bmtitle='+title;
case 15: return 'http://rumarkz.ru/bookmarks/?action=add&popup=1&address='+url+'&title='+title;
case 16: return 'http://www.vaau.ru/submit/?action=step2&url='+url;
}
}
this.hide=function() {
if (this.timeout) clearTimeout(this.timeout);
document.getElementById('AddThis').style.visibility='hidden';
}
this.show=function(element) {
if (this.timeout) clearTimeout(this.timeout);
var left=0,top=0;
var style=document.getElementById('AddThis').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() {

if (!document.getElementById('AddThis')) {
var div=document.createElement('div');
var style=div.style;
div.id='AddThis';

div.innerHTML+=''
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(1);return false" href="http://bobrdobr.ru/addext.html?url=&title="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) 0px" title="БобрДобр" alt=" #" src="/img/blank.gif"/> Сохранить страницу на БобрДобр</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(2);return false" href="http://memori.ru/link/?sm=1&u_data%5Burl%5D=&u_data%5Bname%5D="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -16px" title="Memori" alt=" #" src="/img/blank.gif"/> Сохранить страницу на Memori</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(3);return false" href="http://www.mister-wong.ru/index.php?action=addurl&bm_url=&bm_description="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -32px" title="Мистер Вонг" alt=" #" src="/img/blank.gif"/> Сохранить страницу на Мистер Вонг</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(4);return false" href="http://del.icio.us/post?v=4&noui&jump=close&url=&title="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -48px" title="del.icio.us" alt=" #" src="/img/blank.gif"/> Сохранить страницу на del.icio.us</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(5);return false" href="http://zakladki.yandex.ru/userarea/links/addfromfav.asp?bAddLink_x=1&lurl=&lname="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -64px" title="Яндекс.Закладки" alt=" #" src="/img/blank.gif"/> Сохранить страницу на Яндекс.Закладки</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(6);return false" href="http://www.google.com/bookmarks/mark?op=add&bkmk=&title="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -80px" title="Закладки Google" alt=" #" src="/img/blank.gif"/> Сохранить страницу на Закладки Google</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(7);return false" href="http://text20.ru/add/?source=&title=&text="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -96px" title="Текст 2.0" alt=" #" src="/img/blank.gif"/> Сохранить страницу на Текст 2.0</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(8);return false" href="http://pisali.ru/load_article/"><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -112px" title="Писaли" alt=" #" src="/img/blank.gif"/> Сохранить страницу на Писaли</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(9);return false" href="http://news2.ru/add_story.php?url="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -128px" title="News2" alt=" #" src="/img/blank.gif"/> Сохранить страницу на News2</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(10);return false" href="http://smi2.ru/add/"><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -144px" title="СМИ 2" alt=" #" src="/img/blank.gif"/> Сохранить страницу на СМИ 2</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(11);return false" href="http://myscoop.ru/add/?URL=&title="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -160px" title="AddScoop" alt=" #" src="/img/blank.gif"/> Сохранить страницу на AddScoop</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(12);return false" href="http://moemesto.ru/post.php?url=&title="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -176px" title="МоёМесто" alt=" #" src="/img/blank.gif"/> Сохранить страницу на МоёМесто</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(13);return false" href="http://www.ruspace.ru/index.php?link=bookmark&action=bookmarkNew&bm=1&url=&title="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -192px" title="RuSpace" alt=" #" src="/img/blank.gif"/> Сохранить страницу на RuSpace</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(14);return false" href="http://www.100zakladok.ru/save/?bmurl=&bmtitle="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -208px" title="Сто Закладок" alt=" #" src="/img/blank.gif"/> Сохранить страницу на Сто Закладок</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(15);return false" href="http://rumarkz.ru/bookmarks/?action=add&popup=1&address=&title="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -224px" title="RUmarkz" alt=" #" src="/img/blank.gif"/> Сохранить страницу на RUmarkz</a></div>'
 + '<div style="margin:0;padding:0;width:100%;background:#fff;text-align:left;color:#666;font:normal 12px arial;line-height:20px;" onmouseover="this.style.background=\'#f0f0f0\'" onmouseout="this.style.background=\'#fff\'"><a onclick="AddThis2.go(16);return false" href="http://www.vaau.ru/submit/?action=step2&url="><img width="16" height="16" style="border:0;background:url(/img/icons.gif) -240px" title="Ваау!" alt=" #" src="/img/blank.gif"/> Сохранить страницу на Ваау!</a></div>'
 + '</form>';
div.onmouseover=function() {if (AddThis2.timeout) clearTimeout(AddThis2.timeout)}
div.onmouseout=function() {AddThis2.timeout=setTimeout('AddThis2.hide()',500)};
style.position='absolute';
style.visibility='hidden';
style.width='260px';
//style.maxWidth='640px';
style.border='3px solid #B1CFED';
style.background='#F2F9FF';
style.font='normal 12px arial';
style.lineHeight='20px';
style.margin='4px 0 0 0';
style.padding='1px 0px 0px 4px';
style.overflow='hidden';
style.zIndex='1000';

document.body.insertBefore(div,document.body.firstChild);
}
document.write('<img onmouseover="AddThis2.show(this);" onmouseout="AddThis2.timeout=setTimeout(\'AddThis2.hide()\',500);" src="/img/button.gif"  alt="Закладки" title="Закладки" style="border:0;margin:0;padding:0">');
}
}
AddThis2=new NewAddThis();
AddThis2.init();