/*
 * http://share42.com
 * Date: 16.10.2011
 * (c) 2011, 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('"http://www.blogger.com/blog_this.pyra?t&u='+u+'&n='+t+'" title="Опубликовать в Blogger.com"','"http://www.facebook.com/sharer.php?u='+u+'&t='+t+'" title="Поделиться в Facebook"','"http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+u+'&title='+t+'" title="Сохранить закладку в Google"','"http://www.liveinternet.ru/journal_post.php?action=n_add&cnurl='+u+'&cntitle='+t+'" title="Опубликовать в LiveInternet"','"http://www.livejournal.com/update.bml?event='+u+'&subject='+t+'" title="Опубликовать в LiveJournal"','"http://connect.mail.ru/share?url='+u+'&title='+t+'" title="Поделиться в Моем Мире@Mail.Ru"','"http://share.yandex.ru/go.xml?service=moikrug&url='+u+'&title='+t+'" title="Поделиться в Мой Круг"','"http://www.myspace.com/Modules/PostTo/Pages/?u='+u+'&t='+t+'" title="Добавить в MySpace"','"http://www.odnoklassniki.ru/dk?st.cmd=addShare&st._surl='+u+'&title='+t+'" title="Добавить в Одноклассники"','"http://pikabu.ru/add_story.php?story_url='+u+'" title="Добавить в Pikabu"','"http://twitter.com/share?text='+t+'&url='+u+'" title="Добавить в Twitter"','"#" 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://bookmarks.yahoo.com/toolbar/savebm?u='+u+'&t='+t+'" title="Добавить в Yahoo! Закладки"','"http://zakladki.yandex.ru/newlink.xml?url='+u+'&name='+t+'" title="Добавить в Яндекс.Закладки"');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*15+'px 50%;outline:none;"></a><style>#s42t,#s42b{display:block;width:32px;height:0;background:url('+f+'icons.png) -'+32*14+'px 50%}</style></div>');var iNum=14;var c=0;var iShow=14;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;}}
