/* share42.com | 13.11.2011 | (c) Dimox */
function share42(f,u,t,m1,m2){if(!u)u=location.href;if(!t)t=document.title;u=encodeURIComponent(u);t=encodeURIComponent(t);if(!m1)m1=150;if(!m2)m2=20;document.write('<div id="share42" style="width:32px"><a href="#" id="s42t" style="outline:none"></a><div id="s42w" style="overflow:hidden;position:relative;margin:0 0 6px;"><div id="s42i" style="position:relative">');var s=new Array('"#" onclick="window.open(\'http://vkontakte.ru/share.php?url='+u+'\', \'_blank\', \'scrollbars=0, resizable=1, menubar=0, left=200, top=200, width=554, height=421, toolbar=0, status=0\');return false" title="Поделиться В Контакте"','"http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+u+'&title='+t+'" title="Сохранить закладку в Google"','"#" onclick="window.open(\'http://twitter.com/share?text='+t+'&url='+u+'\', \'_blank\', \'scrollbars=0, resizable=1, menubar=0, left=200, top=200, width=550, height=440, toolbar=0, status=0\');return false" title="Добавить в Twitter"','"#" onclick="window.open(\'http://www.facebook.com/sharer.php?u='+u+'&t='+t+'\', \'_blank\', \'scrollbars=0, resizable=1, menubar=0, left=200, top=200, width=550, height=440, toolbar=0, status=0\');return false" title="Поделиться в Facebook"','"#" onclick="window.open(\'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st._surl='+u+'&title='+t+'\', \'_blank\', \'scrollbars=0, resizable=1, menubar=0, left=200, top=200, width=550, height=440, toolbar=0, status=0\');return false" title="Добавить в Одноклассники"','"http://connect.mail.ru/share?url='+u+'&title='+t+'" title="Поделиться в Моем Мире@Mail.Ru"','"http://www.livejournal.com/update.bml?event='+u+'&subject='+t+'" title="Опубликовать в LiveJournal"','"http://www.juick.com/post?body='+t+' - '+u+'" title="Добавить в Juick"','"http://share.yandex.ru/go.xml?service=moikrug&url='+u+'&title='+t+'" title="Поделиться в Мой Круг"','"http://zakladki.yandex.ru/newlink.xml?url='+u+'&name='+t+'" title="Добавить в Яндекс.Закладки"','"http://my.ya.ru/posts_add_link.xml?URL='+u+'&title='+t+'" title="Поделиться в Я.ру"','"#" onclick="window.open(\'http://www.blogger.com/blog_this.pyra?t&u='+u+'&n='+t+'\', \'_blank\', \'scrollbars=0, resizable=1, menubar=0, left=200, top=200, width=550, height=440, toolbar=0, status=0\');return false" title="Опубликовать в Blogger.com"','"http://bobrdobr.ru/add.html?url='+u+'&title='+t+'" title="Забобрить"','"http://memori.ru/link/?sm=1&u_data[url]='+u+'&u_data[name]='+t+'" title="Сохранить закладку в Memori.ru"','"http://www.feedburner.com/fb/a/emailFlare?loc=ru_RU&itemTitle='+t+'&uri='+u+'" title="Отправить на e-mail другу"');for(i=0;i<s.length;i++)document.write('<a rel="nofollow" style="display:block;width:32px;height:32px;margin:0 0 6px;outline:none;background:url('+f+'icons.png) -'+32*i+'px 0" href='+s[i]+' target="_blank"></a>');document.write('</div></div><a href="#" id="s42b" style="background-position:-'+32*16+'px 50%;outline:none;"></a><style>#s42t,#s42b{display:block;width:32px;height:0;background:url('+f+'icons.png) -'+32*15+'px 50%}</style></div>');var iNum=15;var c=0;var iShow=10;var iPages=Math.ceil(iNum/iShow)-1;var offset=2;var s42w=document.getElementById('s42w');var s42i=document.getElementById('s42i');var s42t=document.getElementById('s42t');var s42b=document.getElementById('s42b');function s42bCSS0(){with(s42b.style){height=0;margin=0}}function s42bCSS1(){with(s42b.style){height='6px';margin='6px 0'}}s42bCSS1();if(iPages==0)s42bCSS0();s42w.style.height=(32+6)*iShow-6+'px';s42t.onclick=function(){if(c!=0){var goal=(32+6)*iShow;var result=parseInt(s42i.style.top)+goal;var timer=setInterval(function(){s42i.style.top=parseInt(s42i.style.top)+offset+'px';if(parseInt(s42i.style.top)==result){clearInterval(timer);s42bCSS1();if(c<1){with(s42t.style){height=0;margin=0}}}},7);--c;}return false;};s42b.onclick=function(){if(c<iPages){c++;var goal=(32+6)*c*iShow;var timer=setInterval(function(){s42i.style.top=parseInt(s42i.style.top||0)-offset+'px';if(parseInt(s42i.style.top)==-goal){clearInterval(timer);with(s42t.style){height='6px';margin='0 0 6px'}if(c==iPages){with(s42b.style){height=0;margin=0}}}},7)}return false;}; window.onload=function(){var p=document.getElementById('share42');function m(){var top=Math.max(document.body.scrollTop,document.documentElement.scrollTop);if(top+m2<m1){p.style.top=m1-top+'px';}else{p.style.top=m2+'px';}}m();window.onscroll=m;}}
